HNHacker News
TopNewBestAskShowJobs

wonderlg

118 karma · joined June 4, 2020

submissionscomments
wonderlg··on Wirecard hired actors to fool auditors
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.

wonderlg··on TypeScript 4.0
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”
wonderlg··on TypeScript 4.0
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.

wonderlg··on Wirecard hired actors to fool auditors
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.

wonderlg··on Math.min(Math.max(num, min), max)
There’s an obvious solution to this:

    require('clamp')(num, min, max)
1 million monthly downloads
wonderlg··on Apple becomes first U.S. company to reach a $2T market cap
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.

wonderlg··on Ask HN: Why is Reddit on mobile so obsessed with making me use their app?
Lol why do you donate to a company that made $120 million in ads last year?
wonderlg··on Most “mandatory requirements” in corporations are imaginary
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.

wonderlg··on Show HN: Handwritten.js – Convert typed text to realistic handwriting
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.
wonderlg··on I’m A Teapot – HTTP status code 418
I kind of agree. I remember having to deal with T_PAAMAYIM_NEKUDOTAYIM

Sure the solution is still one search away, but…

wonderlg··on Show HN: Photo Realistic QR-Codes
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)
wonderlg··on Helping people spot the spoofs: a URL experiment
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.

wonderlg··on Git: Deletion of merged branches taken beyond shell hacks
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)

wonderlg··on Never use a dependency that you could replace with an afternoon of programming
“Almost never” is still more frequent than “never,” so it’s still positive.
wonderlg··on Never use a dependency that you could replace with an afternoon of programming
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.
wonderlg··on How I got my Japanese permanent residency
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.

wonderlg··on Make the best of bad reviews by leveraging consumer empathy
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.
wonderlg··on How to use the next-gen open-sourced .Avif image format, 50% smaller than JPEG
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.
wonderlg··on 20GB leak of Intel data: whole Git repositories, dev tools, backdoor mentions
I’m completely ignorant about this but is it possible that they’re referring to a “debugging backdoor”?
wonderlg··on How to use the next-gen open-sourced .Avif image format, 50% smaller than JPEG
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.

wonderlg··on Twitter web app now runs ES6+, reducing polyfill bundle size by 83%
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.
wonderlg··on Twitter web app now runs ES6+, reducing polyfill bundle size by 83%
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?

wonderlg··on Node Modules at War: Why CommonJS and ES Modules Can’t Get Along
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

wonderlg··on Telegram files EU antitrust complaint against Apple’s App Store
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.
wonderlg··on Telegram files EU antitrust complaint against Apple’s App Store
Is that why I occasionally find random apk files in my downloads?

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

wonderlg··on Why is America stuck with bad headlights?
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.
wonderlg··on Telegram files EU antitrust complaint against Apple’s App Store
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)

wonderlg··on Telegram files EU antitrust complaint against Apple’s App Store
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.

wonderlg··on Reviewing the worst piece of code ever
Do you think this dev uses an IDE?
wonderlg··on Reviewing the worst piece of code ever
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.
Page 1 of 2Next →