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
-
I don't always agree. For me it's often:
1. Make it work
2. No time here is a new project.. -
palonE2497yDepends. I just try to make it modular af (many independent functions) that then are easy to optimize.
-
Brolls31557yThis is a fine line.
If you can do something right to start then do, even if it’s the second or third iteration.
I usually do a rough, disgusting version and then refine over a day or two.
Premature optimisation is an issue when you spend all your time on it and not building shit.
But similarly, getting it done and then delivering it tends to lead to project managers getting you to move on, and then you’ve got a lovely case of technical debt on your hands. -
I think that with experience, you tend to cultivate habits that let you write better code on the first pass, which reduces the amount of refactoring. But if you ever get so good that you write perfect code first time around and don't need to review and refactor then you'll be kidding yourself.
Related Rants
-
CowboyBebop16"Don't give your 100%. Never. Once you gave, managers will start expecting more than that." - My mentor.
-
linuswillner15(Q: How much are you allowed to Google as a developer?) βYouβre allowed to Google as much as you want. Th...
-
ripbit18Never delete code immediately. Always comment it out first.
“Get the code working first, then worry about how to clean and optimize it.”
For me when I learnt about optimization and how one thing was better than something else, I tended to focus on that. I’d have a picture of that in my mind, and would try to write as clean of code with less hacks in the middle and as optimized as I could in the first go, which slowed me the way fuck down.
After he said that to me, I realized I was stupid and just wasting time if I worried about that from the start. Would waste time, and just cause more headaches from the start than it was worth.
——
Oh also another one, I knew never to trust the client from the start but the way he said it was funny. “Never ever trust the fucking client, don’t trust them with anything. I trust Satan more than I trust the client.” π
rant
wk103