Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
RTRMS36907yNo, 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. -
lithiex4577y@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.
-
RTRMS36907y@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. -
devios157017yIf it's for work I generally couldn't care less, but for my own projects I'm meticulous about it.
-
devios157017y@RTRMS Is CDO OCD but with the letters in alphabetical order because you are OCD? 😉
-
devios157017y@RTRMS I totally agree though, it's the right way to do it if you really care about your code.
-
devios157017yI 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. 😊
-
@RTRMS you can easily break that by getting REALLY good at competitive programming
-
Kekica9487yHad 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 :)
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
question
nicecode cleanup