Filesystem devs should aim to make “badly written” app code “just work” (2009)
1–10 of 117 posts
Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#2Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#3> Linus: Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
His point seems to be more about accepting reality and allowing the practice (which in this case is theoretically "badly written" code) to "just work".
As the title stands now:
> Linus: People should aim to make "badly written" code "just work"
One might incorrectly assume Linus is suggesting that defensive programming should be practiced heavily -- but that does not appear to be what he is saying here.
Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#4Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#5I think there is a more universal truism here - that "complex and subtle" are sources of pain, problems and headaches.
I want to write "cool" and "magical" code as much as the next person, but that's the stuff that I look at later WTF because I am no longer in the same state of mind. Clear, simple, straight forward, plain as day are better than anything else.
And if you do have to do something "magical" something "odd" or hard to understand for the love of god please leave notes explaining what, why and how you did what you did. And if you are replacing a "clean" and "readable" version leave it there commented out. Sure it is "in the repo" but almost no one ever looks and you are just making it harder for me to figure out the original intent of whatever was there.
Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#6Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#7Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#8Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#9Suggestion: I think the title should be: > Linus: Theory and practice sometimes clash. And when that happens, theory loses. Every single time. His point seems to be more about accepting reality and allowing the practice (which in this case is theoretically "badly written" code) to "just work". As the title stands now: > Linus: People should aim to make "badly written" code "just work" One might incorrectly assume Lin…
Re: Filesystem devs should aim to make “badly written” app code “just work” (2009)
#10The reason "badly written" works for Open Source is that if code is useful - there will be someone in the future who will refactor it. In proprietary setting that only happens when the fate of the company itself (or a large chunk of the business) is at stake. Otherwise stagnation is king.