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
-
@mrtnrdl we have everything under version control going back like 4 years, that's the most annoying thing 😩
-
i comment out other working ways of implementimg the functionality if i'm not sure which one is going to be best in the long run #region helps a lot in this. then i don't need to spend time thinking which way is the best and feeling like i lost time by deleting one of the ways that worked and possibly having to write it again later.
(i often avoid source control because i often work alone at which point it's a needless overhead to commit any other time than at the end of the day) -
But if you're never going to use it again then isn't it just cluttering things up?
Especially if you have like 50 lines commented out -
LMagnus20637yI hate it when I see this in a project. Why is this commented out? Does it not work? Is it some crazy in class version control, is it temporary for debugging.
Don't commit this shit into my life! -
"But I always remove all the commits with non working features from all the branches. I don't want git to be cluttered"
— real comment from coworker.
Suddenly I understood why we had so many weird issues with git complaining about fucked up histories.
I made him spend a weekend in the closet with the git monster. -
Eariel19087y@wolt, I usually create a patch file named "ProjectName-WhatsSupposedToDo-YYYYMMDD" and then I store it in a Google Drive folder named "LostCodePatches".
-
IsLau67ySesh. People who dont delete unwanted codes or just prefer to comment it out are pre-historic people who have no idea that Git (and its predecessors) exists
-
crisz82367yCommenting two lines of code is 1000 times easier than version control. You just have to remember to delete them before committing
-
I keep it as reference until what I'm trying to do with the replacement is working. Simpler.
Related Rants
-
gnog1Pretty sure someone already posted it here, but I don't have the patience to check. Just want to share it. So...
-
linttrap2Me: what happens if you type 'echo PATH'? Pipe it to a file and send it to me Collaborator: *sends me a 17,238...
-
mrstebo0When you get back to the office and remember the mess you were tackling on Friday 😅
Will you PLEASE stop just commenting out code that doesn't work
Delete it
Please
undefined
messy code
begging