gitremote
Joined 2 years ago
Joined 2 years ago
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.
Jussi Kangasharju, head of computer science at the University of Helsinki, said that while datacentres brought a limited number of jobs, potentially boosting the local economy, the benefits on a national level were minimal. “Really, for Finland, there are no benefits,” he said. “They are international companies serving international customers. Very little corporate taxes go to Finland. Datacentres ultimately have very little benefit for others except the datacentre operator.”