DEV Community

Discussion on: What's the weirdest coding practice you've seen?

Collapse
 
elmuerte profile image
Michiel Hendriks

Adding your name to the code you created.

/**
 * @author Alice
 */
public class FizzBuzz {
}

Are people supposed to append their name when they add/remove/change code? What if at some point all the code was changed an nothing of Alice's work is there, is he still an author? What if Bob added more code and appended his name, how do I know if it was Alice or Bob who added the code. Maybe it was Clive do didn't sign his name.

It's even worse in the more "recent" years, because we use version control and can see who changed what up to the byte.

Collapse
 
davidrochin profile image
David Rochín • Edited

This is something Netbeans does by deafult. It takes your Windows username and puts it there like that.