Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Although I agree with you, less code is generally a good thing. Less code - less moving parts, less potential bugs. And possibly better performance.
Recent example: wireguard
what @netikras said.
My other thought is it's a game of degrees. I have a number of questions I have to ask myself to arrive at a meaningful answer:
Is it more efficient with an equivalent and compatible feature set?
Did the old library have too many concerns?
Was the previous library algorithmically sound?
Was the previous library lacking an essential for of abstractive comparability with up to date libraries? (Re: modularization)
Is there anything essential in the new library left on the cutting room floor?
That's the tool cycle. A tool starts out lean and mean, and easy to use. Then it gets more functionality, weird edge cases, and ends up with 200 CLI options. This isn't testable anymore, and it's overwhelming.
So people say, fuck it, I need JUST this stuff here, and I'm faster writing it myself than trying to wade through a huge swamp of outdated and/or misleading documentation. That re-starts the cycle.
It's also why there are e.g. so many static website generators.
Wireguard is better because it simply nuked everything.
VPN services are a guacamole of protocols, compatibility up-/ downwards, extensions and so on.
Wireguard throws it all away and says: Fuck it. If a new version comes out, all endpoints must be updated.
That's why it's small code wise - it's a bare, specialized solution fitting the "do one thing and do it well" principle.
To the original post....
Many people have an utter misunderstanding of software architecture.
Saying you wrote a small library which does X instead of a framework Y that does A-Z including X and getting hyped because of the LOC count... It's dumb.
It's non comparable.
I'm still not fully convinced of pico libraries consisting of eg only one function.
You'll need a ton of them... A framework usually means that certain guidelines were applied and the framework has a certain flow.
Tons of mini libraries... Tons of different flows. Tons of versions.
I guess there is no "perfect" approach, but pico libraries don't mean less hassle at all.
LOC is in my opinion a pretty dumb idea to measure code quality - too many buts and ifs if you want to get it right.
I would add another pretty important (for me) question:
- Is it written in an inherently safer language than the beast it replaces? Do i get the benefit, that it is less likely to contain exploitable bugs or are the exploitations of such bugs more likely to be of a lesser severity (like getting a DoS instead of an RCE)?
coookie6This project must have taken a toll on this guy
jdatap41% of OSS: “I came across this very common issue which is a pain in the arse, I pulled together this awesome...
linuxxx5Before anyone starts going batshit crazy, this is NOT a windows hate post. Just a funny experience imo. So I...