(#1)(coding tutorial) Introduction to coding in any modern programming language
(Photo by Christina Morillo: https://www.pexels.com/photo/person-using-macbook-pro-on-person-s-lap-1181298/ )
Hi, I thought I should to start posting about "how to start your coding journey". This post serie will help me create knowledge base to my future projects.
In this post, I want you to start thinking like a true programming specialist. There are many ways of thinking about how to code a program. The ways of thinking are interpreted in coding languages.
For example you have a Java language, which is mainly object-oriented programming where you think about program as a bunch of objects like in a real world. What I mean by that is that you can describe there everything like you would describe anything in a real world. One of the simplest example would be a car.
You know that the car has a usually a 4 weels, at least 2 seats inside, can move, stop, can turn on a light and etc. All of this you can describe as a multiple object, starting from a car object and going deeper into details what it has inside and what you can do in that car.
Another way of thinking is in C++ language and imperative paradigm, where you write a bunch of statements which changes how your program behaves line after line. In that way of thinking you treat program usually like line by line commands, which are executed by a computer. Nowadays Java and C++ contains both object oriented, imperative way and now you have a functional programming.
Functional programming is a way of thinking of being everything a function. Function programming language would be a **Haskel. **Haskel force you to think like everything is a function and where you can reuse your code make it more universal and easier to matematicaly proven to working as you wanted to work.
Easy example is say I want to calculate number 5 to power of 2 and usually you would think like 5*5 = 25. In a functional way you image it like a function first so let me take any number, we could say a natural numbers ( ...,-3, -2, -1, 0, 1, 2, 3, ...) and multiply that number by itself. So it would look like this:
**take natural number X and calculate natural number X multiplied by natural number X **
which in more pseudo code would look like
function (x) return x * x
when you replace x with a any number, you get power of 2 the number which you put instead of x.
There are a lot of other way of coding and thinking in programmer way, but all of above is the most popular right now and most modern programming languages has all of those ways of programming (Java, Javascript, C++, etc...)
Next post is going to be about cooking, but we are not going to make a cookies :) We will create our own recipe, not food but our first instruction on how to "paper computer" is going to behave line after line.
It would be great if you rate and post a comment, so I will know if I should continue posting this kind of knowledge. If there is something to improve I would gladly get any feedback.
Leave (#1)(coding tutorial) Introduction to coding in any modern programming language to:
Read more #coding posts
Best Posts From Grzegorz
We have not curated any of grzegorz2047's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Grzegorz
- MY photos from Switzerland trip last year
- Czym jest platforma huggingface z projektami AI i jak można z niej korzystać?
- Pictures during my trip through Tatra mountains, Poland
- Jak wystawić za darmo swoje backendowo REST API na render.com
- Selected pictures from my trip through Europe
- What is a NFC tag and how can YOU use it (cheaply)
- Jak praktycznie użyć tagów NFC w życiu codziennym
- Hive tools #2 - Python Bot to vote on favorite author's comments
- Automat do głosowania na komentarze użytkownika
- Jak skonfigurować darmowego bota auto.vote do automatycznego głosowania
- Stworzyłem nowe narzędzie do znajdowania mocno wspierane treści
- How to use chatGPT and DALL-e through microsoft copilot and translate text using DeepL for Free
- (#6)(coding tutorial) How to create and run javascript code and how to use variables
- (#1) Hive tools - Tutorial how to make simple interface to read our blog posts
- (#5)(coding tutorial) To become programmer, we need to learn to count or do simple math again (I'll show you why)
- (#4)(coding tutorial) Let's dive deep into a real programming language (Javascript)
- Exploring Hive cosystem
- How to log in for the first time to Windows 11 without Microsoft account
- (#3)(coding tutorial) Let's become a pseudo code programmer FIRST (Don't worry, not pseudo coder too long)
- (#2)(coding tutorial) How to cook a program algorithm using our recipe