Better HN
topnewbestaskshowjobs
Log inSign up

wonderlg

118 karma · joined Jun 4, 2020 (6y ago) · 58 submissions

Submissions

comment 6y ago · link · parent

Generally I’d say that this could work on people that don't expect violence, like the racists who go around the city harassing immigrants.

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

With your library one has to write types twice.

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

The difference is that I can update all dependencies without having to verify whether they contain breaking changes, because I can just look at the number.

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 love Bill Burr’s take on this. I can’t find the clip, but the resolution was that after receiving a punch, maybe you’ll reconsider “ehh maybe i was being a bit of a dick back there.”

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

There’s an obvious solution to this:

    require('clamp')(num, min, max)
1 million monthly downloads

comment 6y ago · link · parent

Apple is doing great even if they’re not super friendly to developers. Why change?

I think that they could become better once they start losing some ground, kinda like Microsoft is all about Linux now that the desktop market isn’t improving for them.

comment 6y ago · link · parent

Lol why do you donate to a company that made $120 million in ads last year?

comment 6y ago · link · parent

Playing devil’s advocate: Is it possible that, yes, of course you can work from home, and you must do that during lockdown, but is it as efficient as working in the office?

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 don’t get this project. This is nothing special, you can very easily spot that every T is identical. You might as well just use a handwritten font.

comment 6y ago · link · parent

I kind of agree. I remember having to deal with T_PAAMAYIM_NEKUDOTAYIM

Sure the solution is still one search away, but…

comment 6y ago · link · parent

I think they’d need some hardware to verify that the transaction happened. A small business owner can use their own phone, but other businesses need a smartphone per point of sale, which might be more expensive than a card reader (that one likely has to have anyway)

comment 6y ago · link · parent

I think this is a good default, as long as one can opt to see the full URL.

A slightly better solution would be to still show the path at 50% grey or less. It might be hard to read, but it shows that something is there and that you’re not just on the homepage.

comment 6y ago · link · parent

I don’t think Node has trouble from the very first installation. A brew install will set you up with the latest version of both node and npm and they will work.

At most you’ll have trouble running the right version (rare nowadays, unlike in pre-v1 days)

comment 6y ago · link · parent

“Almost never” is still more frequent than “never,” so it’s still positive.

comment 6y ago · link · parent

Indeed, one could even automate the process, some sort of tool that automatically copies the dependency’s code, kinda like an install. I think someone already wrote such tool.

comment 6y ago · link · parent

I think that many of those with PR would rather be (first-class) citizens; it’s not always just a personal choice to not be one.

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

This is me. When I stay at cheap hotels that have bogus reviews like “small room”, I’m very inclined to leave more positive and realistic reviews, and even to be more understanding of them. Usually this leads to being treated better and it’s a win on both sides.

comment 6y ago · link · parent

I think you completely misunderstood.

> 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

I’m completely ignorant about this but is it possible that they’re referring to a “debugging backdoor”?

comment 6y ago · link · parent

Years ago I remember seeing a progressive image format that was supposed to solve the resolution issue. The loader could stop loading as soon as it figured it had enough quality. This meant that you could have a single, large image file, that could weigh a few KB when displayed as a thumbnail.

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

I’m not doubting you, but how is that even possible? How do these people visit any other website? I don’t think much works in IE8 nowadays.

comment 6y ago · link · parent

I’m sure you love the modern web and its 2MB average page load, but most people don’t.

This is code, so after it’s downloaded it needs to be parsed and executed… needlessly.

What are you complaining about exactly?

comment 6y ago · link · parent

Wait till you throw a package.json with "type": "module" in there.

Everything used to work until Node 12.15, then 12.16 started throwing when trying to require type:module packages with `require` (which is what `esm` does)

https://github.com/standard-things/esm/issues/868

comment 6y ago · link · parent

Good point. That might probably be the reason why Apple will be able to get away with it in the end. They’re not a monopoly and users do have a choice.

comment 6y ago · link · parent

Is that why I occasionally find random apk files in my downloads?

It is a problem, there’s a bunch of malware on android.

comment 6y ago · link · parent

I remember some Underground or Underground 2 cutscene or run that was identical to a run in FnF; I always assumed that they did a collab.

comment 6y ago · link · parent

To be fair, if an alternative App Store was available and popular, I’d probably have to use it to download Spotify, Audible, etc. Its existence would affect me.

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)

comment 6y ago · link · parent

So you’re saying that we don’t own Apple devices but merely rent them out for the day?

Disneyland isn’t a product, you can’t compare it to a phone.

comment 6y ago · link · parent

Do you think this dev uses an IDE?

comment 6y ago · link · parent

Great, but “don’t roll your own auth” should still be the default. I’ve seen far too many awful login systems at any level that I’d really prefer if NO ONE rolled their own, especially no single unsupervised developer.
12