Lost while codig

How do you deal with this shit?
When you made a code based on your own algorithm, along the process you realize it would be better if you made some changes.
I'm sure you know what I mean.

The thing is there are so many things to change at some point I get lost and lose track of the changes I want to make so many thing going on in my head I even go numb.

I failed my first exam when I started classes and this problem is still here.

You'll get better at it eventually. Or you won't. Who knows? I can keep track of multiple changes across 20,000+ lines of code projects but then I'm turboautism incarnate.

What the hell is wrong with her lips? o.O

That's why pro use version control such as git

Heavily commented code and GIT

don't prematurely optimise

What do you mean?

How does GIT help?
I'm really beginning on this subject.

Write code that works first; make it fast later.

Commit git revision everytime you make sizable changes with proper message of what you've done, you can easily track your changes later
Make new branch if you want to try another algorithm, if its worse you can comeback to your first implementation

It's a godly tool for developer user. Should use it as much as possible

Make each function only do one thing. Avoid mutation. Then when you feel like changing the internals of any function, you can do so without affecting the rest of the program.

this, to be honest
yeah, it's like there's some disgusting alien parasite substance on them

Modularize or seperate functionality that is commonly used to minimize change, or seperate variables etc. so you can easilly modify them.

Comment everything so you know what it does. Read a book on naming variables and functions. Be strict with your logic and make it organized

I didn't mean the lipstick.

>When you made a code based on your own algorithm, along the process you realize it would be better if you made some changes.
>I'm sure you know what I mean.
Use polymorphism and pure fonctions.
Divide functions up.

I dunno, then.
Image manipulation artifacts?

Underrated yet most important post on Sup Forums in at least three years

Implement the shit version, write the changes down
Refactor after it's working

More like someone abused the liquify tool in photoshop.

This

Dunno use a notepad

This is normal. Factor your code into smaller subroutines. Give the subroutines names that remind one what they do. Use comments more.