• 2 Posts
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle



  • Buttons@programming.devtoMemes@lemmy.mlliterally no clue
    ·
    edit-2
    9 months ago

    I want to make a short film / animation where aliens are approaching earth, the only thing we know about the aliens is that they plan to destroy all life and replace it with their own twisted creation. A few minutes of typical story follows, heroes assemble, go to fight, etc. The heroes lose and the ending scene shows that the aliens have succeeded and replaced all the diverse life on Earth with a perfectly manicured lawn that covers the entire planet. A biological wasteland.



  • Shorter code is almost always better.

    Should you use a class? Should you use a Factory pattern or some other pattern? Should you reorganize your code? Whichever results in the least code is probably best.

    A nice thing about code length is it's objective. We can argue all day about which design pattern makes more sense, but we can agree on which of two implementations is shorter.

    It takes a damn good abstraction to beat having shorter code.