The reading-code tag has no usage guidance.
-1
votes
1answer
162 views
Understanding the solution of exercise 1.16 of K&R as given in the “The C Answer book”
The exercise 1.16 in K&R's book asks,
Revise the main routine of the longest-line program so it will correctly print the
length of arbitrary long input lines, and as much as possible of ...
4
votes
2answers
467 views
Advice for volunteer developers learning large codebases [closed]
Working in an open source project has the result that sometimes developers with no experience in the codebase attempt to "learn the code" on their own.
There is a reccurring trap I've seen, where new ...
5
votes
2answers
527 views
Start reading Ruby (on Rails) code [closed]
I'm an experienced developer which quite some experience in meta programming. I just found my way to Ruby and want to understand more of Rails (and related) project internals. Even if I understand the ...
-1
votes
2answers
318 views
Reading assembly useful for insights when writing C/C++? [closed]
While in most cases its not necessarily, recently I have taken to reading the generated assembly of my C code every so often, when I'm curious as to the kinds of optimizations my compiler is making. ...
4
votes
2answers
2k views
Where should I start reading AngularJS's source code?
After reading this article I realized that I really didn't read any "serious" source code during my 3-years as a professional developer.
Recently I started a new web-project which makes heavy use of ...
14
votes
3answers
640 views
How to locate source code that implemented a certain feature?
I was wondering what are some techniques to locate which code implemented a specific feature, on a desktop application.
I am a junior developer, with only professional programming experience lying ...
1
vote
2answers
236 views
What diagram to construct when familiarizing oneself with new code?
When I first encounter a new code base, I often find myself constructing flowchart-like-thingies-on-paper, while stepping through the code - either by reading it, or with the debugger.
Another ...
3
votes
5answers
823 views
What is the best way to understand code in a project with null documentation?
It is our first game and we are a start-up. We had a programmer who suddenly is seeming to be a dead weight. Though we knew him personally we thought that he was as motivated as we are and hence I ...
3
votes
1answer
253 views
How to read Scala code with lots of implicits?
Consider the following code fragment (adapted from http://stackoverflow.com/a/12265946/1333025):
// Using scalaz 6
import scalaz._, Scalaz._
object Example extends App {
case class Container(i: ...
1
vote
2answers
396 views
What are best practices to read high level undocumented and uncommented code?
There are some opensource projects, that have classes and classes without any significant explanation about what the class does and or why is that class needed. For example, classes in the CppEditor ...
13
votes
5answers
560 views
How should someone used to FP thinking read imperative code?
I graduated from university about five months ago, and have been working in a local startup for past four months. While at university, I studied Haskell, F# etc on my own. We were taught Java at the ...
10
votes
9answers
2k views
How to handle a 'bad code' interview? [closed]
A 'bad code' interview is one where the interviewee is shown a snippet of 'bad code' and asked to correct it or point out things that are wrong with it. I have trouble with these interviews because it ...