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
-
siggi706yI was once in the same situation, but then my boss allowed me to rewrite the part and this was much quicker than to debug the code.
-
@TobiSGD That‘s why I always use git blame before shouting „Who wrote this piece of crap you morons“ ;)
-
@irene There are multiple options of course, all implementing git blame(last change).
You could do something like git blame -L 5 index.php to see who changed line 5 in index.php the last time but that‘s annoying of course so I normally use my IDE for that.
At work we currently have to use phpstorm(Doing web dev atm since team needs support). There you just do a right click on the line number->annotate and there you go. -
@irene ok then I misunderstood you, sorry.
Well, I work on many projects at the same time with multiple teams and sometimes I realize that it‘s my code but it doesn‘t look exactly like it should be. Then git blame helps to see what line was changed by whom and when.
Related Rants
That feeling when you're supposed to debug code someone else wrote a decade ago but it's such a horrible mess that your brain just gives up and you end up staring at your monitor for an hour in confusion 😵
rant
spaghetti
brain
rebooting