News for hackers. Stuff that matters.
Re:Things I’ve learned in 20 years of programming by wintorez on Friday November 22, 2019 @07:48PM (#21611621)
Regarding avoiding copy-paste; I'm a JavaScript developer, and from time to time, I run `npx jsinspect src` in the root of my projects to detect copy-paste. The results are always interesting.
Re:Things I’ve learned in 20 years of programming by dehrmann on Saturday November 23, 2019 @12:14AM (#21612601)
I've got slightly mixed feeling on copy-paste because sometimes it leads to lots of dependencies--some with conflicts--and you would have been better off writing if (s != null && !s.isEmpty()
Re:Things I’ve learned in 20 years of programming by picod on Friday November 22, 2019 @09:48PM (#21612104)
cool, if this is reliable enough to be part of CI process it will be super useful
Re:Things I’ve learned in 20 years of programming by wintorez on Saturday November 23, 2019 @03:01AM (#21613010)
Never ran into a problem with it myself but ¯\_(ツ)_/¯