Hacker Newsnew | past | comments | ask | show | jobs | submit | plopz's commentslogin

If someone is born does that mean my share of land decreases?


Funny you mention nobody uses var anymore when I just saw a post on here yesterday that perf critical code still uses var since it's faster


Bundlers will convert let/const to var, assign classes and functions to var etc but generally people don't write it themselves unless they want to (ab)use its semantics for performance reasons.


Do people often use bundlers for the backend?


is your excise tax really 375? my 2014 honda civic is only $50


Registration is usually far higher with EVs because they aren’t paying into gas taxes that go towards road work.


I wonder how road work is going to be financed once most cars are EVs


Ah you're right, it's 50, I was looking at my 2020 bill


Module support is still experimental and under a flag and doesn't have any mechanism for mocking.


The two I find most annoying

Hoisting/import order especially when trying to mock tests.

Whether or not to include extensions, and which extension to use, .js vs .ts.


i believe that secondary stream is used for picture in picture so its lower quality, like 480p or something


Maybe; I don't know anything about it. I will note that that belief could easily develop, true or not, if twitch streams start out in low resolution and increase as you buffer them.

A third-party client has room to make a dramatic improvement on the twitch experience by not dropping audio while you make the switch from the ad stream to the content stream.


its closer to empty than before you drank


I wish javascript had gone in the same direction as php with types.


Which is?


[flagged]


I was hoping to hear how are php types better than TS instead of another rant about how Rust is the greatest. Anyone?

By the way, having lived in Scala 2 for a few years, Rust is half-assed. Type system leaks through the fingers when working with async collections. Future.sequence from Scala makes great cli apps. Scala collections are a work horse. The only thing from Rust I like is the shorthand question mark return (compiler magic for Result type).


lol. i mentioned rust as being the worst typed solution, to highlight ts is even beneath that.


You haven’t mentioned anything. It’s not clear what you mean. All you said “coming from rust”. That could mean a ton of things.


The main problem with es modules is mocking in tests. How do people work around that issue?


Define an interface, mock the implementation. How people outside of JS/TS have been doing it for years.


You either use Vitest for new projects or you use jest.unstable_mockModule for old Jest tests


You don't use modules as a replacement for DI?


the big one is multiplayer games. udp is preferred and trying to work with webrtc is awful


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: