logoalt Hacker News

groundzeros2015yesterday at 2:19 PM1 replyview on HN

What I meant is that most commercial software has a large number of code paths. Because it’s built incrementally, not holistically. This creates complexity and cost.

If you’ve only worked on that kind of software it’s hard to know the alternative which is to aggressively prune code paths and rework your main code.

And open source example is Quake. I rarely come across software whose inherent complexity is more than quake.


Replies

habinerotoday at 12:06 AM

Yeah, that's not what the person you were replying to is talking about. I was explaining the jargon.

Complexity and LoC has nothing to do with "only coding for the happy path". Both complex and simple software can be written this way.

A great example is the moltbook hilarity. They slapped together something that looked good and did function -- in the happy case only. They put together an "authorization" flow but exposed their entire database because they didn't know how to secure Supabase. They had no rate limiting on account creation -- so one dude created 1M in an hour.

Even putting aside adversarial usage, you have to code for, like, normal stuff going wrong or your app will lose data, crash, leak information, fall over, etc, etc.

show 1 reply