News for hackers. Stuff that matters.
Re:-2000 Lines of Code by veidelis on Saturday March 23, 2024 @05:56AM (#39798707)
Not much of an achievement, but I once deleted a 45k line Jest snapshot test for a React component that basically asserted that a div is rendered.
Re:-2000 Lines of Code by prettyStandard on Saturday March 23, 2024 @06:42AM (#39798881)
Maybe you are being sarcastic...

Or you've completely missed the point of the article/story. The point is lines of code are almost meaningless. In this story the person saved 2k lines of code by rewriting a rendering engine, and use somehow think that's less than deleting a 45 k line jest snapshot.

Re:-2000 Lines of Code by stuartd on Saturday March 23, 2024 @10:16AM (#39800073)
“Not much of an achievement, but” here refers to the commenter’s action, not the one in the article
Re:-2000 Lines of Code by veidelis on Saturday March 23, 2024 @12:39PM (#39801177)
Sorry, if it somehow sounded that my example is somehow more than what was mentioned in the article. Absolutely not. I think that my example also very well demonstrates that lines of code (even that isn't really "code") isn't not a good way of measuring productivity etc. My example could be considered as an example of how a code review didn't "do it's job" for what might have been a newbies mistake. But I also think that code reviewers cannot be blamed for every bad piece of code that gets through (context matters).