118 karma · joined Jun 4, 2020 (6y ago) · 58 submissions
comment 6y ago · link · parent
Why are they making other people’s lives miserable? It’s not fair and the law doesn’t protect you.
This won’t change their opinion, but it might very well stop them from acting out again.
IMHO. I have no psychology background.
comment 6y ago · link · parent
I understand that it’s not TypeScript’s job at the moment, but it’d be great to enable runtime checks with the flick of a switch without typing extra code.
function upper(s: string) {
return s.toUpperCase();
}
This function could have a nice implicit TypeError instead of “undefined is not a function”comment 6y ago · link · parent
Conformism helps us think less. Imagine if every website had their own way of scrolling or logging in. Press T to login. Triple click here.
Semver helps me update 10 dependencies in 5 seconds without opening any release notes.
Developers are under no obligations, but one should not go out of their way to make others’ lives harder. Just use semver.
comment 6y ago · link · parent
I never punched anyone, but people who ruin your life as described by the commenter deserve it, maybe they’ll become better people.
comment 6y ago · link · parent
I think that’s why many don’t like remote: They can’t see you working and they’re not as comfortable video-chatting.
I’m a remote-only developer, but if I could, at any time, turn to my coworker and ask about something, I’d be more efficient.
comment 6y ago · link · parent
I think it’s pretty clear that if you plan your life in a secondary country, and they allow you to via permanent residency, you would not want them to lock you out at a whim.
comment 6y ago · link · parent
> Requesting an image should be requesting a image, not a specific representation of that image.
This is exactly what I’m saying. The image is one, it’s the browser that decides how much of it to load.
It’s the current picture/srcset-based situation that is “a specific representation of that image”
> For sizes we'd need a similar way to mime types to ask for a size
Now that is complicating things. Suddenly the server has to produce/return different resources based on a header. The solution I described could be delivered by any dumb HTTP2 server, without preprocessing.
Technically what I’m describing is already possible with any progressive format like JPEG; The only missing part is that the browser should pause/resume the loading as it sees fit.
All I want for Christmas is:
<img src="you.jpg" progressive>
The obvious advantage is that if the window size changes, the browser only has to fetch the missing data, not a whole new file.comment 6y ago · link · parent
It’s 2020 and its mind-boggling that this isn’t a standard behavior already.
Imagine right-clicking on a thumbnail and being able to natively save a 4MB file from it.
Imagine having a single <img> that can be zoomed in all the way to 100% just like your phone’s Photos app can do, without loading the whole image beforehand.
comment 6y ago · link · parent
It would benefit in some way (like being able to subscribe to Audible in the app) but also it could be less safe (because if Amazon can, anyone else also can, possibly without supervision)