Assertfail

All Posts assertfail

View the Blog on GitHub wallymathieu

Writers and readers

04 Dec 2012

Reading source code is hard. One way of dealing with this is rewriting what is not understood. This can help focus on some parts of the code, but can be detrimental since it’s easy to overlook functionality in files that are not touched or files that look too complex (throwing away functionality). One way of doing this is to create a fork to rewrite one, in order to be able to throw away the changes made essentially to read the code. <div>
</div>

It's usually harder to read code than to write it. Trying to read a 700 line method can be to hard, thus it may need some therapeutic refactoring in reduce the components to pieces that can be understood.

Among several programmers, one reason why there is a tug o war between them can be because of non orthogonal and different best practices: They keep rewriting each others code because they have different ideas on what tradeoffs to prefer.

Tags

Comments or errors? Fork post and do a pull request on github