Readit News logoReadit News
oneoverten commented on N-Params vs. Single Param   carlos-menezes.com/single... · Posted by u/carlos-menezes
hwpythonner · 5 months ago
Not an expert in JS, but maybe this makes sense in JS where everything is passed as objects anyway and having a single param is often more readable there.

But in native languages like C/C++/etc, this pattern usually hurts performance. Separate arguments go into registers (faster but depends on number of arguments), while structs often involve indirection, and sometimes alignment/padding issues. Also, passing a const struct doesn’t guarantee the fields inside are truly const.

That said, it's context dependent. If you're passing stuff through multiple layers or want a more stable function signature, using a struct can be cleaner. Just not something I’d generalize to any language or any use case.

oneoverten · 5 months ago
Yes. This is true for JS too, object-wrapping parameters just to make them named will add runtime overhead.
oneoverten commented on N-Params vs. Single Param   carlos-menezes.com/single... · Posted by u/carlos-menezes
hyperhello · 5 months ago
Neither really addresses the issue. Making a type for a single kind of string seems like an abuse of types just to shoehorn the documentation in. Documentation can be used directly of course, but that moots all of this -- just document? Yeah, but naming the variable is super quick compared to either.
oneoverten · 5 months ago
Variable names is just documentation. Having types that can assert some condition on the underlying value is not even comparable to "having a named return variable". (just document? just name variables?) You don't care about what the name of the returned value is, you care about what *it is*.
oneoverten commented on Making Software   makingsoftware.com/... · Posted by u/calme_toi
pier25 · 5 months ago
How were the animations done?

From inspecting the DOM it's just animated SVGs but I'm guessing these were authored with some other tool.

Initially I thought these were made with Rive but AFAIK their engine runs on <canvas>.

oneoverten · 5 months ago
Just figma apparently, it's disclosed in the FAQ.
oneoverten commented on Making Software   makingsoftware.com/... · Posted by u/calme_toi
Narishma · 5 months ago
> There are numerous animations that never stop. This is highly distracting and makes it very difficult to read the text.

And pegs the CPU and drains the battery.

oneoverten · 5 months ago
Those animations wont "peg" any relevant CPU, and they clearly had a purpose that was not about wasting cycles or battery.
oneoverten commented on You might not need WebSockets   hntrl.io/posts/you-dont-n... · Posted by u/hntrl
oneoverten · 5 months ago
What does this solve? Genuine question. You still have to manage connectivity, and synchronization. Also not so sure that stream reading will necessarily be quantized chunks of your updates sent from the server.
oneoverten commented on Leaked software engineering recruiter selection guideline   twitter.com/deedydas/stat... · Posted by u/ericzawo
givemeethekeys · 5 months ago
In 2025, your programming interviews will require you to use an AI programming assistant.

Learn them. Get used to them. Become one with the machine. Or, go find another job.

oneoverten · 5 months ago
That seems very unlikely, why would you think that will be a requirement?
oneoverten commented on Leaked software engineering recruiter selection guideline   twitter.com/deedydas/stat... · Posted by u/ericzawo
oneoverten · 5 months ago
So.. For which company? The sentence "there are scam profiles all around the IT world" would not be on any real company of scale guidelines, and no company would put that much liability in one "slide" even if they had them.
oneoverten commented on Show HN: A recommendation system to explore the non-commercial web   browserbuddy.com/... · Posted by u/alien0006
jeremysuh · 5 months ago
It's a bit opaque right now, but we rank up content from authors we know are real people that write online...working to make this clearer in the interface.

The feed is ordered primarily by the what you've specified as interests and the salience of authors. As we find new essays that score high "relevance" when compared to the topics you've selected, your feed will be updated with more recent content.

In our personal use, we use it as a hybrid between feed of our favorite topics and exploring (stumbling upon) new things. The "prompt your feed" aspect definitely adds some search engine-like capabilities, while still letting you surf through the things you don't know about.

oneoverten · 5 months ago
Thank you for expanding on it!
oneoverten commented on Show HN: A recommendation system to explore the non-commercial web   browserbuddy.com/... · Posted by u/alien0006
oneoverten · 5 months ago
Pretty fun, but how can you tell the content you link to is from "real people"?

How is the feed ordered, I saw a pretty wide timerange?

Is it supposed to be used as a search engine, feed, or more like "stumble!"?

oneoverten commented on Show HN: I made a CLI and web app for managing and reusing code snippets   snippetkit.vercel.app... · Posted by u/rishanr
oneoverten · 5 months ago
Congrats, but why not just share code as usual, like via libs and so on?

u/oneoverten

KarmaCake day6March 11, 2025View Original