967 karma · joined Jul 27, 2017 (9y ago) · 385 submissions
comment 1y ago · link · parent
Unfortunately, I don't think I have any use for a time-boxing app. Nice work though.
Is there a reason you went with localStorage rather than indexedDB?
One useful thing is supporting 3rd party sync services. One of the apps I built allowed syncing data across devices via Dropbox. I never got Google Drive working, though, their API was horrible to work with in comparison. Is sync support something you've considered?
comment 1y ago · link · parent
I've long wanted a scrollable/zoomable desktop, with a minimap that shows the overall layout. Think the UI of an RTS game, where instead of units you move around and resize windows. This seems like something in that direction, at least.
How does Karousel work with full screen applications, e.g., games?
comment 1y ago · link · parent
The the author expects the side-effect -- navigation to a new page -- of the window.location.href setter to abort the code running below it. This obviously won't happen because there is no return in the first if-statement.
comment 1y ago · link · parent
Why is this allowed? Why aren't there laws in place to hold politicians accountable for the promises they make to get elected?
comment 1y ago · link · parent
After starting my new job and coming back to Python after many years I was happy to see that they had added `match` to the language. Then I was immediately disappointed as soon as I started using it as I ran into its weird limitations and quirks.
Why did they design it so poorly? The language would be better off without it in its current hamstrung form, as it only adds to the already complex syntax of the language.
> PEP: In most other languages pattern matching is represented by an expression, not statement. But making it an expression would be inconsistent with other syntactic choices in Python. All decision making logic is expressed almost exclusively in statements, so we decided to not deviate from this.
> We've had conditional expressions for a long time.
Also, maybe most other languages represent it as an expression because it's the sane thing to do? Python doing its own thing here isn't the win they think it is.
comment 1y ago · link · parent
The only way to guarantee this is to ensure that nobody can collect your data in the first place.
While the government of today might be benevolent, the government of tomorrow might not be.
comment 2y ago · link · parent
It took maybe a week to get used to the switch but wasn't that big of a problem even though I'm both left handed and left eyed.
So you just.. do it, I guess?
comment 2y ago · link · parent
2. If said person doesn't present the bug to the company, but just goes straight to selling it to the highest bidder it's not extortion. If the company does not provide the right incentives (via e.g. bug bounties), isn't it their own fault if they get pwnd? They clearly don't value security.
comment 2y ago · link · parent
As such I agree that Firefox refusing to implement things like WebSerial and WebHID is shooting themselves in the foot, and will only drive more users towards Blink.
You could have made your point in a less inflammatory way, though.
comment 2y ago · link · parent
What are your specific pain points?
JSX is HTML-like syntactic sugar, just write normal html but put JS stuff in curly brackets.
Data management can be tricky at first, but as long as you remember that everything that isn't memoized (via e.g useState) is recomputed on every render pass, you're 90% there.
You can get into the reeds of it of course, but you really don't need to if all you want to do is just build a regular app.