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
-
The best code is the code which you don't have to write. Apparently the functionality which you need is already present and you just reused it. Win!
-
GnoeJuan5788yBut it wasn't this time. I do agree with your frustration, but it's better then never figuring out the one-liner
-
nmunro31888yI do this all the time. I've learned there's often a simpler solution, so in my code I'll scribble my obvious solution onto some paper (so noone sees it on screen/doesn't accidentally get committed). Then once I've got a handle on what the solution might be, I get a coffee, have five minutes and then think how it might be done simpler.
Eventually patterns form and when you start encountering similar problems you learn how those might be solved.
It's how we learn and become better programmers.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Just spent 20 minutes implementing a utility class.... then realized I don't need it...
The solution is actually much simpler... only takes 1 line of code...
undefined
fml