Should you read others code?

Should you read others code?

Reading other people’s code is an opportunity to get to know someone else through their code. We all express ourselves through our programs. For fun, I’d recommend you pick someone you admire and get to know them through their work. A big part of this process is accepting people (and their code) as they are.

How do you read a programming language?

  1. Choose a Language and Understand the Basic Fundamentals Concepts. A lot of beginners skip the fundamentals and jump directly to the shiny tools and technology.
  2. Learn Data Structure and Algorithms. Data Structure and Algorithms are the heart of programming.
  3. Build Projects.
  4. Explore.

Why is reading another code hard?

The first reason code is harder to read than to write has to do with the sheer amount of data you need to keep in your head in order to read code. When you write code, you only need to remember the variables, algorithms, data, etc. The other major factor that confounds reading code is pride.

How do you read a big source code?

Let’s take a look at a few ways in which you can start to grasp a monolithic codebase.

  1. Read the Documentation. The first place I start with a new project is reading over any available documentation or README files.
  2. Read the Commit Messages.
  3. Pairing.
  4. Read the Tests.
  5. Start with the Smallest Part.
  6. Dive In.

What’s the most useful code to learn?

Top Programming Languages to Learn in 2021

  • Python. Python is one of the most commonly used programming languages today and is easy for beginners to learn because of its readability.
  • Java. Java is one of the most common, in-demand computer programming languages used today.
  • Kotlin.
  • Swift.
  • C#
  • C and C++
  • Go.
  • PHP.

Is it good to read other people’s code?

Reading other people’s code is an opportunity to get to know someone else through their code. We all express ourselves through our programs. For fun, I’d recommend you pick someone you admire and get to know them through their work. A big part of this process is accepting people (and their code) as they are.

Which is the best way to read code?

Find one thing you know the code does, and trace those actions backward, starting at the end. Say, for example, you know that the code you’re viewing ultimately creates a file with a list of movie titles. Figure out where in the code — the specific, few lines — it generates that file.

Why do we hate reading other people’s code?

The reason we hate reading other people’s code is because we didn’t write it ourselves. That’s not to say that we all have this secret belief that we’re the best coders on the planet and no one else can write code like we can.

Do you think you can understand someone else’s code?

When faced with “someone else’s code” we don’t have that. We are faced with pages and pages of code. And often written in a style that is dissimilar to our own. This can lead us to think that the style of the code is the problem. That if only the style was “correct” (read: like my own) then it would be “easier” to understand.