HN user

q-rews

79 karma
Posts0
Comments125
View on HN
No posts found.

Apollo is the answer. Reddit’s properties are a dumpster fire. Heck even the desktop version regularly starts playing some random video I scrolled past a minute ago… good luck finding it. Absolutely embarrassing “bugs” everywhere on Reddit, even before getting to the dark patterns.

In developing this interpreter they eliminated some of the languages features to make it simpler.

That means you can't run general-purpose code safely, which means you should probably write/rewrite/adapt it, which means you might as well use a different language.

I'm a JS developer, but the parent might have a point here. Why run something like this in production when you're likely to end up in unexpected situations? Either a runtime is compliant, or you're going to have a bad time.

The project is cool, but I wouldn't use it as an example for what JS can do.

By law the hotel has to register your arrival online, as a foreigner.

Obviously this is easily skirted by having another person do the check in and you arriving later. I've also stayed in some guest houses in Thailand last month and they did not register me, but that doesn't mean they should have done so.

If they don't, technically you're on the hook for not registering.

Wow, that is amazing. The picture dictionary is incredibly useful when learning a language and it's the first time I see it, in a general-purpose tool too!

When learning a language I have to keep a dictionary, Google Translate, and Google Images open at the same time, and it's frustrating to find that neither language tool includes direct access to the other 2.

This is like the comment “Who needs the iPhone 13’s faster CPU” I read yesterday on a random forum, except you’re on HN and you should probably know better.

The reason is simple: IPv4 addresses are getting more rare and therefore more costly.

Excel as Code 5 years ago

I don’t know why you would say that.

Excel is democratizing tool for programming. It’s a true WYSIWYG for databases, calculations, plotting, and more. And it’s just a regular app that every PC has.

Everyone needs a table. Hey did you know your table can do math automatically? It actually can fetch live forex data too. And infinitely more.

Currying makes it implicit, but it's the same thing.

    const one = curriedSum(1)
    one(2)
is the same as
    const one = sum.bind(null, 1)
    one(2)
with the exception that the latter is explicit and not as slow as `curriedSum`.

Both `sum` and `curriedSum` can be used the same way:

    curriedSum(1)(2)
    sum.bind(null, 1)(2)
or just:
    curriedSum(1, 2)
    sum(1, 2)
One of the advantages is that non-curried functions make the return value explicit. You can't implement `sum(...addends)` with currying because curried functions have a fixed number of parameters. Once past that, a call will not return a function anymore.
    sum.bind(null, 1).bind(null, 2).bind(null, 3).bind(null, 4) // Still not called
    curriedSum(1)(2)(3)(4) // Maybe it works, maybe undefined is not a function

I think details did in fact replace many of those checkbox hacks, but people also say it’s still the wrong tool for accordions and such, which confuses me.

Probably not. A few requests surely got cached, but the vast majority likely did not. jQuery has its own official CDN URL so that probably had a chance at being deduplicated.

It already exists, but it’s mostly about hacks that aren’t very accessible, like using checkboxes to simulate interactivity.

True but also the amount of code React requires (even putting the library itself aside) is ridiculous. I’m working on a React project (but not directly on React) and the file length for ridiculously-basic stuff is mindboggling. Vue and Svelte are much saner.

Is this sarcasm? I wish publishers gave a damn about page weight. I’m sure some big names do, but most don’t, and it’s easy to see if you open any monetized website at all.

I want to wake up at 8:00 regardless of my timezone. I don’t want to wake up at “8:00 NYC” when I’m in Europe nor should I need to adjust the alarm every time I change timezone.

I have no experience with those, but the complaint is that there are a myriad of commands and flags and overloads that could basically amount to a handful of common operations and simple resolutions.

I myself have “no issues” with git but conflict resolutions are still a guessing game when they’re for middle commits

No, more like what the parent said. People hated visa with passion but I had been running its beta as my main driver for 6 months before it was released. Imagine that, Windows Vista beta.

The only advantage I had over the majority is that it was a brand new computer (with 2GB of RAM, wow) so I did not experience slowdowns.

Vista was better than XP in every way except performance on the low-end.

Windows 8 was an exciting change from Microsoft, but yeah some things weren't fixed until 8.1 and the damage was done.

your body still used up 1800 calories

If you don't eat enough, you'll feel lethargic and unable to perform normally, so I doubt it will still use 1800 calories. According to the article, if you eat 800 calories and your body stores them all, you'll feel as hungry as if you never ate at all.

Of course this likely isn't so drastic ("50%") but it would explain why many people keep gaining weight over their lifetime (or until the body reaches a balance).

It is physically impossible to gain weight while eating a caloric deficit.

Is it? As much as I want to agree, what if my body decides that 50% of calories input must be stored? It might mean that I will have to eat 200% of my daily required input just to be functional.

Not saying that this is the case, but I think it’s what the article is arguing.

AMule 2.3.3 5 years ago

Popularity has absolutely nothing to do with centralized search sites. Nothing technical ever prevented "ed2k-based Pirate Bays" to take off the same way, it's just that eMule included search so sites were never required

15 years ago, when I was using eMule, I made the switch to Torrent because Torrent was way faster for me. That's all.

Do you really need Python for this? I would implement what you describe in SwiftUI (which is native to my OS) code.

I don’t understand what you care for other people’s personal projects. Not everyone knows your favorite language.