https://www.nair.sh/guides-and-opinions/communicating-your-e...
581 karma · joined March 28, 2024
https://www.nair.sh/guides-and-opinions/communicating-your-e...
If there were comments for each conditional, it should still be refactored as
return a || b // comment 1
|| c // comment 2
// long comment 3
// on multiple lines
|| d;
Many years ago, "lines of code" was the classic example of nonsense management metrics. Today, there are somehow HN users who argue that lines of code is indeed a good metric and ask "But what if the code had comments?" as if they have never seen comments interleaved with code.> In that case, it may be better in its expanded form, and you should let an optimizing compiler do the collapsing.
This is nonsense. This optimization is not about compiler optimization for efficiency. It's an optimization for human readability and maintainability.
Yes.
> That doesn't sound effective that sounds like digging ditches to fill them.
It sounds effective to me, like removing garbage from sidewalks so people can walk straight instead of walking around the trash.
> Every line of code removed is a line that was previously added.
Correct. Today I cleaned up
if (a || b)
return true;
if (c)
return true;
if (d)
return true;
return false;
to return a || b || c || d;
and contributed various other negative lines of code in multiple areas.Every line of code removed is a line that was previously added.
Do you have any experience coding before LLMs?
https://news.bloomberglaw.com/us-law-week/ice-apprehension-o...
The UK is rapidly declining as a close second, but calling it "European" (especially when UK citizens see themselves as non-European) is just a lazy generalization.
Perhaps large corporations successfully lobby the government the pass laws that boost their profits while stifling smaller competitors.
https://en.wikipedia.org/wiki/Advanced_persistent_threat#Chi...
It's very easy to think other people are being paranoid when you're ignorant about the topic.
No. Nobody here except you agrees with this. The distinction between natural languages and formal languages exists for a reason.
In my work, the bigger bottleneck to productivity is that very few people can correctly articulate requirements. I work in backend, API development, which is completely different from fullstack development with backend development. If you ask PMs about backend requirements, they will dodge you, and if you ask front-end or web developers, they are waiting for you to provide them the API. The hardest part is understanding the requirements. It's not because of illiteracy. It's because software development is a lot more than coding and requires critical thinking to discover the requirements.
False. Training happens once for a time period, but inference happens again and again every time users use the product. Inference is the main money sink.
"according to a report from Google, inference now accounts for nearly 60% of total energy use in their AI workloads. Meta revealed something even more striking: within their AI infrastructure, power is distributed in a 10:20:70 ratio among experimentation, training, and inference respectively, with inference taking the lion’s share."
https://blogs.dal.ca/openthink/the-hidden-cost-of-ai-convers...
It's called "false advertising".
Round-earthers: The earth is round.
"Reality lies in the middle" argument: The earth is oblong, not a perfect sphere, so both sides were right.
The argument to moderation/middle ground fallacy is a fallacy.
No, I did not. I tested it with questions that could not be answered by the Internet (spatial, logical, cultural, impossible coding tasks) and it failed in non-human-like ways, but also surprised me by answering some decently.
The clickbait title is about "Africa" and "bad", but it's specifically about Ghana and awesome.
https://www.huffpost.com/entry/south-korea-human-rights-inve...
How Trump’s ICE Raid Triggered Nationwide Outrage in South Korea
https://www.newsweek.com/trump-ice-raid-hyundai-outrage-sout...
'The raid "will do lasting damage to America's credibility," John Delury, a senior fellow at the Asia Society think tank, told Bloomberg. "How can a government that treats Koreans this way be relied upon as an 'ironclad' ally in a crisis?"'
2. If that's the case, why is the US trying to invest heavily into AI as well if we learned from Ukraine that AI controlled drones are shittier than human controlled drones?
"Ukraine's homegrown drones have become increasingly lethal, critical tools in war with Russia" https://www.cbc.ca/news/world/ukraine-fedorov-drones-war-rus...
"Poland turns to Ukraine for drone warfare expertise after Russian weapons enter airspace" https://www.pbs.org/newshour/world/poland-turns-to-ukraine-f...
The US needs Ukraine to exist and not be annexed by Russia.
> All that judgement was made before any of the facts besides the pilot's skin color were out.
It's worse than that. The pilot was actually white.
Trump thought the pilot must have been black just because they crashed. When asked why he thought DEI caused the crash, he said, "Because I have common sense." He claimed without any source that the Obama administration "actually came out with a directive, too white" on aviation agency standards.
Execs ask their employees to return to office, because they don't know how to measure good employee output.
Now OpenAI and Nvidia measure success by gigawatt input into AI instead of successful business outcomes from AI.