Quick Answer: How Do I Read A Large Source Code?

What is the average number of lines of code per day?

It’s pretty typical for solid embedded software to come in at between 1 and 2 lines of code (LOC) per developer-hour.

That’s 8 to 16 LOC per developer each day, or about 2000-4000 LOC per year.

If you want just a single rough number, call it 10 LOC per day per developer..

What app has the most lines of code?

Facebook appAnd they do. The main Facebook app spans upwards of 20 million lines of code, and the company treats the whole thing as a single project.

How do you read an existing code?

How to understand an existing code-baseRead the unit tests: if you are lucky enough to have running, passing unit tests, this is a great place to start. … Refactor the code: Rename variables and rename methods as you explore the code and start understanding it. … Introduce unit tests: this can be time consuming if there aren’t tests already, but very worth it.More items…•

Why is reading code so hard?

Reading code is hard because it can be both mentally and emotionally taxing. … For folks you already work with, try to find the programmers who actively read code, are able to grok it, and are able to leverage that understanding so your team doesn’t have to write code that has already been written.

What is the longest code ever written?

Well, the largest program ever written would be from the Human Genome Project: This is an open source project aimed at figuring out the sequence of human DNA. The software for analyzing the human genome and map the nucleotide base pairs of DNA took 3300 billion lines of code.

What are the benefits of sharing a common codebase?

Other, perhaps more compelling benefits of sharing the codebase include simpler, better overall design, more design consistency, and better mentoring of programmers. All of these things, again, help make the code more extensible and the team more agile.

What is Codebase in Java?

codebase property can be used to specify a location from which any class, not only stubs, can be downloaded. When a client makes a method call to a remote object, the method that it calls could be written to accept no arguments or a number of arguments.

What is considered a large code base?

Very Large – 50000 to 250000 lines. You’re at multiple team members at this point and you’re treating the codebase as a set of interlocked projects. … Only a handful of developers could maintain a complete mental picture of the codebase at this point and would be deep specialists in it having worked on it for years.

What is the largest Codebase you have worked on?

Quincy Larson As you can see, Google has by far the largest codebase of all. And all 2 billion lines of code fits into a single code repository. But it isn’t a Git repository.

What is code based?

In software development, a codebase (or code base) is a collection of source code used to build a particular software system, application, or software component. … However, it generally does include configuration and property files, as they are the data necessary for the build.

What does code mean?

1 : a systematic statement of a body of law especially : one given statutory force. 2 : a system of principles or rules moral code. 3a : a system of signals or symbols for communication. b : a system of symbols (such as letters or numbers) used to represent assigned and often secret meanings.

How many lines of code is a lot?

An experienced programmer can keep the structure of 30-50K lines of code in their head on a code base they are actively working. Honestly, 10K lines is a small-to-medium application. You start to lose your ability to see the whole picture of code past 50K lines in most cases.

How do I read a large project code?

Reading Other People’s Code in a Large CodebaseRead the Documentation. The first place I start with a new project is reading over any available documentation or README files. … Read the Commit Messages. … Pairing. … Read the Tests. … Start with the Smallest Part. … Dive In.

How do I read an existing Java project?

6 AnswersRead the source code, it has the advantage that it is always up to date. … Read the unit tests if they are available, they often show the intended use for a class, library or framework.Refactor a part of the source code. … Debug the application, step through the program while using a debugger.More items…•

How do you get familiars with new codebase?

RTFM first. Read any documentation the software might be associated with, first thing. … Build it, break it, shake it(no pun intended Savage Garden) … Read the automation tests. … Start reading and drawing things. … Trace the full process in detail. … Rinse and repeat. … (Optional) Try adding a new feature or solve a bug. … Books to read.