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
-
Always. I'm perfect.
Okey no, but I try to.
It's better than my colleague though. He almost tries to write bad code. "Do we really need to make this 'maintainable'? We should never have to touch it again if we make it good anyways."... -
I realized that many perfections we try to maintain manually can be fulfilled effectively via formatter.
-
Do you mean Robert Martin's clean code? Then no, never got to making my ifs and loops single line function calls.
Never got "x should have one reason to change."
Definitely not writing code that reads like well-written prose.
I am trying, sort of, to kind of write cleaner code. Never done TDD or even unit testing, though, so can't say I am asymptotically converging towards 100% test coverage. -
Root826023yAs clean and modular as I am able. Also, the cleanest code at my employer according to at least two people 🥰
… Though that means there isn’t much more for me to learn here except how to read and maintain terrible code …
And a risk management engine — which I designed at my previous employer (Hell), but wasn’t allowed to implement due to time and cost 😅. It’s neat seeing it implemented, if haphazardly. -
C0D4681383yDepends on my day.
If I'm in the mood or have time, I'll work the solution and clean up the scraps as I go, otherwise I'll just slap it on the page and future me can punch me in the face cleaning it up later. -
If you're talking about Robert Martin's masturbation on an unrealistic ideal then no, I have features to deliver, tickets to resolve and the exact problem I'm solving will probably change 4 times before release anyway.
However, I do try to make my code readable, comment on my choices and note any gotchas. -
Earu5703yIf I have the time, I usually try to make the code clean as possible it’s not always easy when you’re working with old apps though
-
-
@IntrusionCM trust me, this isn't finished code. I tossed this together on a caffeine fueled, sleep deprived rage.
Do you write clean code ?
rant