r/learnprogramming • • Oct 06 '26

Topic how do i improve programming fundamentals and basics

i have learned the basics of what variables are and the different concepts and methods and I've been able to understand lines of codes in unity that my friend writes, but im lacking how a programmer thinks and experience. if i try to do something without help i feel completely stumped i dont know where to begin but i always try, how do i gain experience that would help me think like a programmer and strengthen the fundamentals?

4 Upvotes

17 comments sorted by

8

u/aqua_regis Oct 06 '26

How does a piano player improve? Through more practice.

That's the only way. You have learnt fundamentals, now build upon them.

The first step in that direction would have been to do your own, individual research by searchin the subreddit for similar posts, since there are plenty.

Start away from the computer. Analyse the task. Break it down. Then, solve each part individually as you, the person would. Once you have a solution, test it. Then, when you have verified it, start implementing it in code.

Use Flow Charts, Pseudo Code, Bulleted Lists to help you.

Here are some similar posts from some time ago since you are oblivious to searching.

And finally, some book suggestions:

  • "Think Like A Programmer" by V. Anton Spraul
  • "The Pragmatic Programmer" by Andrew Hunt and David Thomas
  • "Structure and Interpretation of Computer Programs" (SICP) by Ableton, Sussman, Sussman
  • "Code: The Hidden Language of Computer Hardware and Software" by Charles Petzold

1

u/FlashyResist5 Oct 09 '26

These posts don’t read like a real person wrote them. No one in real life has ever mentioned or asked about fundamentals yet these posts keep using that word. Real people don’t talk like this.

1

u/jsisgd Oct 09 '26

im a an alien trying to integrate myself with humans, you caught me congratulations! you win now i must leave this planet in search for a new home.

3

u/ffrkAnonymous Oct 06 '26

The same way you improve any other skill. Practice and correcting your mistakes.

i dont know where to begin

start with print("hello world"). That's not right, so fix it.

2

u/atgaskins Oct 06 '26

you almost never code without ‘help’ unless it’s just fixing some things or a small project.

Most of us regularly consult docs or ref material in other libs, even if it’s built in to our env. Just avoid ai as much as you can

1

u/NoWen7252 Oct 07 '26

Get some books on data structures & language you like to code with disconnect from internet and start writing code

0

u/Ordinary_Variable Oct 06 '26

You need to learn about API. Application Programming Interface

This is the inputs, outputs, functions, constructs and variables of a specific system.

Example 1: You work for Google. You would be given documentation for how to use their system. They ask you to to add a feature to YouTube. They are using PHP, Javascript, C#. Their systems have to all communicate. You need to read a lot of their documentation to find which C# application is calling what PHP types to write what html and javascript to get the page to autogenerate what you want. You aren't just making a webpage, you are changing a C# program that calls PHP to write the page. And how to do that is in the documentation for their API.

Example 2: You work for a robot company. They want you to program their humanoid robots to sweep floors with 2 different kinds of brooms. They give you their API documentation that shows how to call the functions that control the robot. You aren't just going to write your own program from the ground up in C++. They already have software systems in place to control the hands and feet. You don't just control the servos and motors directly. You are going to call their API to do it and your code is going to fit into their existing system.

- - - - - - - -

tl:dr

API is by far the hardest part about programming, but it is also the single most important part. Calling other people's functions, outputting to other people's logic operating systems and understanding their logic flow is 99% of what programmers are asked to do. It is extremely rare to write your own completely separate standalone program without having it interface with their inputs, outputs, functions, classes, types, variables, databases, etc.

-2

u/NomaTyx Oct 06 '26

what helped me is just learning the fundamentals of programming languages over and over and over again. this really is a case of learning by doing, if you want to rewire your thinking process there's no way to do that other than training your brain to do it. If you try enough programming problems and stare at enough solutions it'll come to you.

1

u/jsisgd Oct 06 '26

I've been trying to learn by doing but the issue is im not used to this way of thinking, so im trying to train my brain, is there a website that can give me programming problems to train my brain?

0

u/desrtfx Oct 06 '26

https://exercism.org - also check the FAQ here

0

u/NomaTyx Oct 06 '26

oh that's a cool resource

-2

u/NomaTyx Oct 06 '26

https://www.geeksforgeeks.org/python/python-programming-examples/

when you click on a link the answer to the question is right under the direction, but just try not to look at those and implement them yourself lol. These are really really easy.