News for hackers. Stuff that matters.
Re:Think before you code (2007) by jgg on Monday May 10, 2010 @08:12PM (#1336344)
This is why I love Haskell. Dealing with the type system and purely functional style forces you to think about the problem at hand before you do anything.
Re:Think before you code (2007) by lsb on Monday May 10, 2010 @08:44PM (#1336404)
Haskell's type system is both expressive and flexible enough to allow most of the benefits of polymorphism, via type classes, while being rigid enough to both catch coarse-grained logic errors and enable efficient compilation. And the syntax is gorgeous! I only sketch type signatures out in Haskell syntax.
Re:Think before you code (2007) by lsb on Monday May 10, 2010 @07:50PM (#1336294)
There was some Mixergy interview where the guy at IMVU or somewhere was saying that it was trendy to measure progress the Agile way, by lines of code written, whereas it was more accurate a metric to measure progress by learning.
Re:Think before you code (2007) by dmoney on Monday May 10, 2010 @10:32PM (#1336649)
I used to work at a company where they did Scrum. We never measured progress by lines of code. The way they measured progress was:

1. Start with "User Stories", or things you want the software to do for your users.

2. Assign each story a difficulty ("Story Points").

3. Work in iterations ("Sprints") of two weeks or so.

4. Your total accomplishment is the Story Points of the User Stories you complete, and your productivity ("Velocity") is story points completed per sprint.

I didn't think this was a good system, as difficulty varies with experience and tools, and so if you're more productive new stories will be assigned smaller story point values. So you're really only measuring how hard you work, rather than the value you create.

Maybe they use lines of code in other forms of agile.

Re:Think before you code (2007) by derefr on Monday May 10, 2010 @10:52PM (#1336694)
I think a decent analogue of "lines of code written" would be "number of public methods with unit tests" (i.e. the size of your stable API.)
Re:Think before you code (2007) by gfodor on Monday May 10, 2010 @07:40PM (#1336267)
Great post, resonates with my reply here:

http://news.ycombinator.com/item?id=1334915

Re:Think before you code (2007) by weixiyen on Monday May 10, 2010 @07:55PM (#1336305)
How do you know when to stop thinking though?
Re:Think before you code (2007) by pmccool on Monday May 10, 2010 @09:16PM (#1336463)
Personally, when I start going round in circles that's a hint to start coding. Also, if I start speculating about performance, I like to get some actual measurements, which means writing code.
Re:Think before you code (2007) by badave on Monday May 10, 2010 @09:48PM (#1336542)
Depends on what you are coding. Sometimes when I'm coding for fun I don't want to think.
Re:Think before you code (2007) by cema on Monday May 10, 2010 @08:33PM (#1336387)
Yes. Also while and after.