Recent submissions

Comment · 6 years ago
I'm confused about that part. There's cases of people living without food for many months, given enough stored body fat. I'm assuming there's a reason for the surgical approach (you still need water and supplements), but I think the article isn't clear on what it is.
Comment · 6 years ago
Maybe my monkey programmer brain is broken already from doing syntax parsing all day, but I can never imagine any context where this formatting makes sense. I always place quotation marks "like this". The other way is not even consistent with the conventional parentheses placement (like this).
Comment · 6 years ago
> They probably care about their bonus and how it all advances themselves on their career path.

That doesn't sound anything like the priorities of a competent CEO. I think you're missing my point, too.

Comment · 6 years ago
Take a look around this comment section. This move isn't being received well by anyone and nobody is buying his bullshit. That, and mass layoffs are typically an excellent indicator of incompetence.
Comment · 6 years ago
They're comparable in the sense that I'm guessing C# is unlikely to get yet another string declaration syntax, so we're stuck with what we've got. Regarding predictability I definitely agree, but good syntax highlighting would help with that.
Comment · 6 years ago
I wish that's how C# handled it! There are verbatim string literals that support newlines, but in practice, most of the time I see people stick to regular string concatenation because it ruins code indentation/alignment. That's how Rider chooses to refactor code when you insert a newline as well. Multi-line verbatim strings begin to get useful around the point where you should be probably loading your text from some resource instead of embedding it in the source.
Comment · 6 years ago
When it comes to picking criteria to compare languages with, performance and succinctness have the advantage of definitely having a large impact on developer productivity/happiness (same thing tbh) while being (relatively) easily measurable.

Having recently jumped ship to a language/runtime that gives up to several orders of magnitude of performance speedup while maintaining similar verbosity, I appreciate the many opportunities this opens. I can write "lazy" code that pretty much always runs (way) faster than the stuff I used to carefully optimize. Perhaps the last metric I'd be interested in is the a number of bugs in the average codebase, and while I've seen language comparisons for that, I'm not sure whether to believe that they're accurate.

Comment · 6 years ago
> AAA game developers have entire teams dedicated to engine development and multithreading

Unity has been introducing a lot of features (Job System, ECS) that make excellent use of parallelism. Additionally, a lot of the engine internals are being rewritten with that as a base (and some of the old features get patched with APIs that allow access from multithreaded jobs). It's a lot of fun when the code you write by default runs on all of the cores, with (almost) none of the usual parallel programming headaches.

Pretty soon you should start seeing all kinds of indie titles making use of those features.

Comment · 6 years ago
I still think it's very good advice. Barely anyone bothers to share their knowledge, and even less people manage to communicate it effectively. In this context, if you put any amount of effort into sharing, you're probably already "the only" among your close peers.

Just because you're "the only" doesn't mean you're the smartest person in the room. You might, however, have the knowledge in the right areas that makes you indispensable. For example, I often find myself to be the only person around with enough knowledge in the areas of graphics, design and programming to combine them effectively. I might not even be particularly talented in any of them, but very often I'll be the only person capable of knowing how to complete certain tasks.

Comment · 6 years ago
It's MIT licensed, you can port it instead of complaining.
Comment · 6 years ago
Comment · 6 years ago
I personally find the JSON configuration paradigm to be immensely usable, at least when it's done in a schema/UI-assisted way (which is how vscode did it). I'm glad Microsoft is picking it up in their other software and I wish more software did it.
Comment · 6 years ago
They could, of course, do this the way any other type of institution would do it: create an app that people would voluntarily install to gather this data. Playing by the rules isn't how governments work these days, though.
Comment · 6 years ago
The logistics of getting goods such as food and medicine into third world countries have hardly anything to do with their manufacturing price. Even once you get them there, distribution is a nightmare. Obviously I'm not referring to countries with no actual economy to speak of.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton