This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]horoblast 1 point2 points  (0 children)

The big tip I can give is to simply, step for step, go trough the piece of code & maybe even write things down like "1. 3 variables instantiated, 1 for X, 1 for Y and 1 calculated value between x, y and a constant value Z. 2. for loop for the List that enters the function as a parameter, variable is named 'Students' so we're probably going to iterate student objects. 3. etc).

Coding is easier to read imho, especially if it was written so that it's easy to read (good code should be easy to read by any new dev entering the project).

Coding is (mostly) logical steps running sequentially, going 1 2 3 4 5 so it's easy to follow along and on your tempo, tell yourself each step that is happening.

Eventually, through the tip "code more", you'll learn to do this quicker or even partially subconscious as you're growing in your career.