how basic programming concepts translate in real software?

same as title
i do not know much about programming and when i try to read book or watch videos

i find people explain how to print something , how to do simple calculation , simple if and else statments and functions


how those concepts really happen in real software when i try to apply from what i have "learned" i just find myself cant do much , if anything at all
 
All programming languages follow a few basic patterns, loops, conditionals and variables. Those three basic principles all apply similarly in every language, only the syntax might be different from one language to another. Understand the principles, not the syntax.

i find people explain how to print something
We all started with a simple "Hello World" :D

i try to apply from what i have "learned" i just find myself cant do much , if anything at all
Start simpler, it just means that whatever you wanted to do is a bit too far out of reach for now. Maybe a simple game? A number guessing game, let the program pick a random number and you have to guess that number. Computer can only give you a hint your guess is lower or higher than what it picked.
 
They translate by accumulation, like words translate into a novel. Words turn into phrases, phrases into sentences, sentences into paragraphs, paragraphs into pages, pages into a novel. In general, with a single sentence you can't do much, but when you start to accumulate, you end up writing, I don't know, FreeBSD or War and Peace.

The best way to learn is to start writing code with the ambition of creating something meaningful, not just tests.
 
We all started with a simple "Hello World" :D
That is still my goto in any language.

how those concepts really happen in real software when i try to apply from what i have "learned" i just find myself cant do much , if anything at all
A very old concept around programming, there have been books written on it:
"Data plus algorithms equals programming"

At the very core a program is really nothing more than a transform.
Data can be as simple as a keypress, the algorithm (what to do with the data) may be as simple as "display the character. Combine them and you have a program.

If you work closer to the hardware (device drivers, OS level) the greatest joy is getting LEDs to blink in the sequence you want them to. To outsiders, the just go "yeah, but aren't they supposed to blink?", but you go "yeah, but look at what I did to make them do that".

As SirDice points out, all programming languages have common things (just like all spoken languages have common things):
make a decision (if statement)
data (constants and variables)
looping (iterate over something)

The exact way of doing them is the syntax, which like spoken language can be picked up as you go (answers from stack overflow are some of the most useful).

So think of the data, think of how you want to transform it and then pick a language and you are at the point of "programming"
 
When you start learning something, you don't begin with the most complex and technical concepts (for example: dynamic memory management, real-time programming, advanced polymorphism, high-performance computing, etc.). Regardless of the language, we all started with "Hello World."

Where I agree with the original poster is that I’ve always found it hard to code "for the sake of it"; you need to find a coherent project, one that’s somewhat ambitious but still within your reach. As others have said, it could be absolutely anything, since coding yourself gives you a great deal of freedom. Games, databases, calculations utilities, systems, low-level programming, graphics, networking, and so on. Just Depending on what you enjoy :)
 
A very old concept around programming, there have been books written on it:
"Data plus algorithms equals programming"
so i think i should stop trying to learn programming and learn data plus algorithms instead?



So think of the data, think of how you want to transform it and then pick a language and you are at the point of "programming"
i know what i want to do for now atleast which is a simple fuzzer

this is what i am thinking of and hopefully correct :


take a website from user

take a wordlist file and read a line from it

do wordlist_line.website.com

send it to curl or whatever and get reply

repeat until end



i think i know exactly steps i need to do but can not mange to make it a program
 
Back
Top