News for hackers. Stuff that matters.
Re:What does it take to be an expert in computer programming? by gngeal on Tuesday July 09, 2013 @08:36AM (#6012312)
If you're, for example, rewriting an obviously correct but slow piece of code X into a faster but not obvious code Y, how do you know if the two are functionally identical without at least some knowledge of program algebra?
Re:What does it take to be an expert in computer programming? by cunac on Tuesday July 09, 2013 @09:48AM (#6012612)
by testing and measuring performance ? In real world it is rare that you have easy way to guess actual overall impact of your optimization.

sure you profile and go for hotspots but still it is very hard to actually understand full impact and CS algorithms are done in ideal conditions so they don't address complexity of executing environment and might be misleading path for optimization.

Re:What does it take to be an expert in computer programming? by jiggy2011 on Tuesday July 09, 2013 @10:16AM (#6012749)
I think the question is how can you be confident that the optimised code does exactly the same thing as the non-optimised code.