3 ms·
Perhaps "Refactor %" would be a better measure than LOC. Turn 1000 lines of code into 100 lines of better code. Then we can talk.
by edw519 19y ago
Perhaps "Refactor %" would be a better measure than LOC. Turn 1000 lines of code into 100 lines of better code. Then we can talk.
- juwo 19y agoI get very annoyed by LOC questions. They are idiotic. I was very, very surprised that PG uses it as a measure, in his interview to NYT and in the YC application. In my day job, I am maintaining (and enhancing) a distributed system that was written by apparently Cobol programmers who switched to Java rather suddenly last year. - apparently did not hear of functional programming, so 600-800 line sub routines with if-else-while nesting up to 7-8 levels deep. very hard to follow the logic. - no knowledge of exceptions, so return codes were used. - hand rolled socket server because application EJB servers were not on their radar. - a pseudo "object-oriented" database layer with all sorts of design problems and takes 5-10 times the LOC (that I have written in a simple database access class to show them a better way). Their output in terms of Lines Of Code is phenomenal but it is a maintainence nightmare.
- euccastro 19y agoThat would still misrepresent the people capable of starting with 110 lines of code, then refactor it down to 100.