21

Ah.. the beauty of clean code.

I wrote a very cleanly written program two years ago. Proper variable names, not too many, right naming, right design pattern,.. Now I come back to it and I am able to instantly figure out the code again. It only took me half a minute.

The importance of clean code... that's something the industry needs to understand more. Well, then there's the money issue. lol

Comments
  • 2
    i believe code can be written like a prose, essays or novels.

    Anybody can read it and understand like they read articles.

    Apparently someone famous also thought the same.

    Then I found out he stopped believing in this idea in his later years :(
  • 2
    For me, when I come back to code that I wrote a long time ago, the comments help me get back into it almost instantly.
  • 0
    Im beginner in coding
    How can I write a clean code
    Its somthing that happens in years?
  • 0
    @omamiirii
    From someone who has a bad habit of writing code that only they understand easily ... i advise you to start off with proper formatting and structure, variables in english that make sense to other people as to what they stand for.

    I write great code that I understand easily and well... but since i taught myself for nearly 25yrs (since before i was 7) and havent needed to work with others, my habits are a pain in the ass to break.
  • 0
    Me: "So I created these modular and dynamic libs, tried my best to document them and make it as easy as possible to understand. You guys can reuse it in your own projects. I gave you peer reviewer rights so we can improve it over time."

    Fucknugget dev: **proceeds to commit a 100 condition if branch hell directly on master for different string values because it fits their use case somehow**

    Me: **sigh** "here goes forking again... you fucks never learn."

    And yeah before you ask, asking management to force minimal standards does not work. I get served inclusivity and tolerance bullshit to mask mediocrity.

    Fuck I'm tired of working for nothing.
Add Comment