33

Ever had the feeling "My code is working fine but I know it's so messy and I should make it readable for others!"

-Never done anything

Comments
  • 1
    No, I have not written messy code in years, even for POC my codes all prod ready and 100% tested.

    I am physically incapable of writing messy code any more, probably a combination of experience and CDO.
  • 0
    @RTRMS Same. Whenever I write with Python, I literally force myself to use PEP8 and ask for better practices. Don't want messy and bad code to become a habit.
  • 2
    @lithiex that was me at my last job, and seniors love it. You write the code the best way you know how achieve the requirement, refactoring it as best you can and then rope them in to see if it can be made any better.

    Few weeks back I helped on of the guys on my team with an accordion I think it was, and the result was perfectly fine, clean code, absolutely nothing wrong with it, except for the bug I had in my butt for knowing it could be written simpler, about a week later on the Saturday morning the code popped into my head, swung open slack, sent him the new code so he could impliment it the Monday.

    For that and other reasons he is convinced we are writing black magic and not javascript. I turned 12 perfect lines into 3 even more perfect lines.
  • 2
    If it's for work I generally couldn't care less, but for my own projects I'm meticulous about it.
  • 0
    @RTRMS
    @devios1 i am like this too in my own projects each line has to be nice
  • 1
    @devios1 team lead at work, even if my CDO allowed, I cannot write untidy code.
  • 0
    @RTRMS Is CDO OCD but with the letters in alphabetical order because you are OCD? 😉
  • 1
    @devios1 exactly, everything in its correct place.
  • 1
    @RTRMS I totally agree though, it's the right way to do it if you really care about your code.
  • 0
    I inherited what's turning out to be a pretty terrible and huge codebase recently, so let's just say I'm not particularly motivated to be as perfectionist with my code as I usually am. But on anything I author myself, I'm just as CDO about it. 😊
  • 1
    Ya planing to restructure my code since I started coding. Maybe someday..
  • 0
    @RTRMS you can easily break that by getting REALLY good at competitive programming
  • 0
    Had the feeling 2 years ago but when I need to maintain 2 years old code I decided I will clean my code from now on. Much better :)
Add Comment