Skip to main content

Questions tagged [reading-code]

0votes
1answer
119views

What information should one infer from a class header that marks its constructor explicit?

If a class is written well, you should be able to gleam all relevant information about the class simply by looking at its header. If one sees that the constructor is marked explicit: What should one ...
Anon's user avatar
  • 3,633
-1votes
1answer
940views

Tableview cells repeating containing collection view Swift

I am having trouble presenting my tableview cells containing a Collectionview correctly. I want to display a different animal in each section based on the firebase data. My problem is about every 4 ...
Phillip Cabaniss's user avatar
4votes
2answers
294views

How can I know when a paper is too hard for me to be able to implement their code and/or understand their math - within a given deadline?

I've been assigned to explore implementing (along with modifications, so understanding it is a must) this algorithm for the 'Redistricting Problem': https://dl.acm.org/doi/pdf/10.1145/3274895.3274979 ....
Samia Zaman's user avatar
3votes
0answers
172views

Best practices for understanding/resurrecting old technical code?

Recently, I've been in a few situations where I needed to quickly come up to speed on old code and fix it sufficiently for people to be able to use it again. The code I've worked on tends to have the ...
ace's user avatar
  • 41
2votes
3answers
764views

Difficulties in reading code

I don't have more than 6 months of experience and I am a little lazy . I work on Android platform . I have very good skills in understanding what is happening in general . The problem is that I don't ...
apksherlock's user avatar
5votes
2answers
4kviews

What can I infer from someones code when they use direct initialization with Curly Braces as opposed to Parenthese?

Up until now, I have been initializing most of my variables as such: const QString foo("bar"); Which from my newfound understanding, is known as direct initialization. (http://en.cppreference.com/w/...
Anon's user avatar
  • 3,633
25votes
7answers
3kviews

As a software engineer, how important is it to read other's code?

I am a budding software engineer (now a sophomore, major in CS) and I really struggle to understand other people's programs. I want to know if this skill (or lack of it) can be a handicap for me, and ...
James Bond's user avatar
0votes
2answers
183views

What are some good approaches for reading Javscript code?

I'm looking for suggestions on how to read large Javascript codebases, for example, of a framework. For example, let's say P5js, but this applies to any large framework (i.e like AngularJS, Ember, etc)...
CodyBugstein's user avatar
4votes
2answers
843views

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, ...
ideasman42's user avatar
-1votes
2answers
829views

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. ...
ideasman42's user avatar
9votes
2answers
7kviews

Where should I start reading AngularJS's source code? [closed]

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 ...
Abaco's user avatar
5votes
5answers
3kviews

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 ...
Filip's user avatar
6votes
2answers
764views

How to read Scala code with lots of implicits?

Consider the following code fragment (adapted from https://stackoverflow.com/a/12265946/1333025): // Using scalaz 6 import scalaz._, Scalaz._ object Example extends App { case class Container(i: ...
Petr's user avatar
  • 5,547
0votes
2answers
920views

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 ...
Adrián Pérez's user avatar
14votes
5answers
681views

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 ...
an0nym0us c0ward's user avatar

153050per page
close