4 ms·
The developers , especially new ones do not understand or know all the history of the project. I remember one time in css I had to do something weird like min-
by simion314 4y ago
The developers , especially new ones do not understand or know all the history of the project.
I remember one time in css I had to do something weird like min-widht:0;
It was needed to force the css engine to apply some other rule correctly,. but this will puzzle you when you read it. And this kind of puzzling code needs comments, I prefer to just put the ticket ID there and the ticket should contain the details on what the weird bug was with all the details, so if some clever dev wants to remove the weird code he can understand stuff.
Sometimes I see in our old project code like if webkit to X else do Y ,
there is no comment with a bug link so I have no idea if this code is still needed or not (Browsers still differ in more complex stuff, like contenteditable )