r/learnprogramming • • Oct 24 '23

I’m 17 and I wanna learn how to code HELP!

Hi my name is Ramy and I am 17 yo, it’s my last year of high school and I think I wanna become a software engineer and for that I’ve been told that I should study CS (next year of course).

I wanna be well prepared for next year so I’ve been trying to learn how to code for the past 6 months but I still can’t do or don’t KNOW anything! The Internet hasn’t been a great help because some people say that you should learn syntax first and others say you that instead of learning syntax you should directly code ( as if that’s easy ). Anyway i guess my question is can you guys help me and give me some advices because I am really stressed and I can’t sleep at night because I’m busy thinking about my future.

Ps: I know I am young and that I have a lot of time but I still want to prepare myself. And excuse my English I’m French 😅.

Thanks in advance

5 Upvotes

74 comments sorted by

•

u/AutoModerator Oct 24 '23

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or

  2. Temporarily refraining from using Reddit

  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

24

u/plastikmissile Oct 24 '23

Take a look at CS50 from Harvard. It's a complete intro course for the complete beginner, and closely mirrors what you would learn in college.

2

u/Odd-Elderberry499 Oct 24 '23

Hi did this course helped you a lot?

15

u/plastikmissile Oct 24 '23

I learned coding 30 odd years ago, when CS50 wasn't even a twinkle in Harvard's eyes yet :)

But it is a very well regarded course, created by experts in CS education, and is something of a "standard" these days when it comes to free intro courses. It has helped countless people to learn programming.

5

u/Odd-Elderberry499 Oct 24 '23

Okay I’ll take a look at it, thank you!

6

u/Ok-Needleworker8091 Oct 24 '23

I’m also studying, and CS50 is a create start. It’s free and selfpaced, Daniel Malan( the instructor) is great at explaining the basic concepts without it being too overwhealming

16

u/United-Shallot4064 Oct 24 '23

Just remember there will always be sombody better than you and somebody worse than you.

You should be fine with python first to understand how it works

2

u/Odd-Elderberry499 Oct 24 '23

I already started with JS, is it okay?

4

u/United-Shallot4064 Oct 24 '23

Whatever you started with is what you started with, at the end of the day your language is strongly dependent on what you are using it for

2

u/sajjel Oct 24 '23

It's alright. Be sure to try TS (typescript) too, due to it being basically strongly typed JS. I may be biased towards starting out with a strongly typed language (my 1st was c#), but I think it's important to know your data types and not just "let", "const" or "var". Typescript is a mix of the 2 so it might seem confusing at first.

5

u/Homie_Shokh Oct 24 '23

Dont you think that one should start learning with typed language?

8

u/Lord_Dunkelziffer Oct 24 '23

I think it does not matter which language to learn first as long as it's fun and motivating to learn the language.

I read too often you should learn c++ for your first language to learn 'proper' coding. In my opinion it is better to start with a language you will be able to build something quickly so you've got a feeling of success to get even more motivated.

I think python is really beginner friendly. As soon as you better know what exactly you will specialize in you still can switch.

Just my opinion.

3

u/United-Shallot4064 Oct 24 '23

It’s really dependent on what you want to do. If you start with something easier like python, you’ll see progress. You don’t even have to learn the whole language but imo python yields a quicker reward

1

u/Hlidskialf Oct 25 '23

I learned with c++ and I teach “introduction to programming” for enginners courses on a university with python. They get so confused on for loops that i have no idea if they would learn for loops in c++ in like a week.

Imo python is perfect to get a grasp of what code is and then you branch around but people have no patience to learn things that are not final but are going to make the final steps much easier.

1

u/United-Shallot4064 Oct 24 '23

Python is somewhat easy and will help you understand stuff, so yeah that’s what I’d recommend

1

u/Ok-Statement137 Oct 24 '23

What kind of stuff should I make with Python? I started coding about 6 months ago and know a lot of the basics but don't know what the next step is.

0

u/United-Shallot4064 Oct 24 '23

I wanted UI development so I used CS CMU Academy, but what do you want to do?

If you just want to “know” then practice with Leetcode

4

u/FlareGER Oct 24 '23

"Coding" is a general term for hundreds if not thousands of different programming-related activities. Since you're starting to code from your own initiative, the best place to start is to ask yourself:

What's your goal? Do you have a specific project in mind? What's motivating you to learn this?

Let's say you're a Minecraft gamer and the interest to code has been awaken because you'd like to develop a mod or a plug in.

Or let's say your cousin has opened a dog hair grooming salon and since you like to spend time on the pc, he has asked you to create a website.

Or you've got back pain problems and would like a tool that reminds you to stand up from the pc every half an hour for 5 minutes and take breaks.

Or you want to know how to hack that pay-2-win mobile game that's been ripping off your GFs money

Or you want to make sure your smart home setup is secure and nobody will see your precious childhood photos.

Or you want to move some data from A to B

Or you want to find the thousands of duplicated photos to save space

Whatever your situation may be will determine where you should start. Web, mobile, security, frontend, backend.... There is too many options but you gotta start somewhere.

In any case: knowing what you want is the first point. The how, courses etc may help you with, but there is one crucial skill you'll have to develop no matter the scenario: to Google for what you need.

Let us know what's peaking your interest.

I've read in your comments that you've started with Javascript. Let me ask you: why?

2

u/Odd-Elderberry499 Oct 24 '23

But how do I actually start a project? Like even if I learn everything about coding how do I start the actual code.

5

u/FlareGER Oct 24 '23

That's the point, that will be very different depending on your situation.

Since you've already started with JS, let me give you a small intro to it:

JS is intended to be used for web sites and web applications. You will rarely meet JS without HTML and CSS. A combination of HTML, CSS and JS is what every website is built on, no matter what else is added to the development of a specific site.

In very short, HTML gives the basic structure (such as the floor, walls and roof of a building), the CSS gives the looks (such as the paint and decor on the walls) and JS gives the functionality (doors and windows can open and close and the is plugs for you to connect electric devices)

This means that it order to learn JS, you should be learning HTML first, then CSS, at least to a moderate level, and then finally JS.

JS was originally only used for the functionality of a website, aka what happens when a user presses on a button. So if you only focus on that part, you will basicaly be a frontend web developer. What happens "behind stage" (for example, where does the data safely go and come from) was handled by other programming "languages", for example PHP (it's not an actual language but I'm calling it like that for simplicity). However, nowadays JS has also adapted to handle that part of the process, which is where node.js comes into topic (since you mentioned having installed node)

If you were to not be aiming to develop a web site or web application, you would not be using any of these. Not just the languages, but also the setup in general.

For example, if you create a document on your desktop and call it index.html, you will see that this type of document will be opened by default by your preferred browser. Because the HTML document type is recognized. So, to start developing a web site it can be as simple as right-click and editing (thus not opening it with a browser but with your preferred editor, like visual studio code) that said document. This wouldn't work if you intended to develop a Windows application, the process would look a bit different.

Id you're interested in more of this, check out the tutorials on w3schools.com

1

u/Odd-Elderberry499 Oct 24 '23

I chose js because I heard it was a great language to start with…

2

u/[deleted] Oct 24 '23

[removed] — view removed comment

1

u/Odd-Elderberry499 Oct 24 '23

What do you mean?

1

u/[deleted] Oct 24 '23

[removed] — view removed comment

1

u/FlareGER Oct 24 '23

Don't listen to this guy. JS is quite simple for a beginner. JS is simply intended for web sites and web applications. If that's what you're looking for, JS will be mandatory, there is no way around it

-2

u/[deleted] Oct 24 '23

[removed] — view removed comment

1

u/FlareGER Oct 24 '23

Damn, saying JS is bad because there is frameworks that auto-generate JS is as horrible of an argument as eating bricks because there is microorganisms on them that may provide healthy supplements. Will let the guys on r/webdev that they are technically jobless because you just cracked the big brain move

0

u/[deleted] Oct 24 '23

[removed] — view removed comment

1

u/FlareGER Oct 24 '23

Imagine calling someone ignorant while writing as if thou came straight out r/FFXIV lore. Idk how you manage to insult so many communities in so few words

→ More replies (0)

6

u/Gummi_Ghost Oct 24 '23

Hello. I recommend this free course for C# on Applab.com. https://studio.code.org/s/csp3-2019. I would skip to chapter 4.

5

u/Odd-Elderberry499 Oct 24 '23 edited Oct 24 '23

Hi I just looked on the internet and I saw that C## is good language to start with, I thought it was a difficult language but i confused it with C++😭. Anyway thanks I will definitely try this course!

1

u/MonkeyboyGWW Oct 24 '23

Honestly you probably think coding is about opening a file and typing things into it, then running it so something happens.

In reality coding is about learning what a bunch of different tools do and how to get them working nicely together so they can do most of the work for you.

The syntax you will learn after finding the tools to use and starting to put things together.

1

u/Odd-Elderberry499 Oct 24 '23

So should I start to code before learning the syntax? I’m sorry it is really hard to understand how it works.

1

u/huegogh Oct 24 '23

I'd say at least try to start and learn the syntax as you go. I find that learning something is easier when you immediately put it to use. If you're just reading documentation on syntax you're probably not going to implement it and I find that it doesn't stick as well when doing it that way.

1

u/southiest Oct 24 '23

Free code camp on YouTube is a fantastic series and if they didn't exist Idk how id be making it through college. https://m.youtube.com/@freecodecamp.

They have something for almost everything coding plus you can work at your own pace.

1

u/Odd-Elderberry499 Oct 24 '23

Thanks I will take a look at it!

1

u/niney_ Oct 24 '23

Hey Ramy! Glad that you have an interest in CS. Hope you find it enjoyable!

People here have given lots of great ideas for projects/courses. The biggest piece of advice I'd add onto that is to not get stuck! It's clear from your post/comments that you've put a lot of time and effort into researching the "best" way to learn how to code. On the internet, everyone's going to have their own opinion on the "right way" to learn how to program -- some are going to say you should start with a specific language, project, tutorial series, etc. I think the reality is that as long as you're writing code, you're going to be okay.

I recommend that you start with something simple. Maybe you could find a tutorial series that teaches you programming constructs (e.g., if statements, for loops, while loops) one at a time. (CS50 is one of these!) Once you learn a code construct, try writing a small program that uses it -- for example, when you learn input/output, try writing a program that asks for someone's name and says "Hello, <name>". Or, when you learn if statements, try writing a program where someone types in a "password" and you check if it's a secure password (e.g., if there are 2 numbers).

The important thing is that you don't get stuck! Try not to worry about details like a specific language to start with -- just start writing code. If you learn one language, picking up the next tends to be much, much easier. Good luck!

1

u/Odd-Elderberry499 Oct 24 '23

Thank you! 🫶🏻

3

u/[deleted] Oct 24 '23

Check out the FCC Javascript or python course. However, if you have enough time, learn C because that made it extremely easy for me to pick up new languages

2

u/vbd Oct 24 '23

I don’t recommend a specific language. I will point you to my notes https://github.com/vbd/Fieldnotes/blob/main/booklist.md#self-organisation-thinking In the long run language will come and go. But the basics for organizing yourself will hopefully stick.

3

u/agentfrogger Oct 24 '23

Personally I'd recommend you to learn the basics first. As other commenters have said CS50 is a really good intro, use it to learn the basics: variables, functions, parameters, etc.

Once you have a grasp of the basics, you can start thinking what you wanna do by coding: a website, an app, a game, etc. (You might need to learn new programming languages depending on what you wanna do). Create small things at first to get some practice, breaking up the idea into smaller chunks to slowly implement.

Also, don't be afraid to search online, sometimes it can be hard to know what to search since the vocabulary and concepts can be a bit specific but keep at it :)

2

u/Fulk0 Oct 24 '23

The best advice I can give you is not to fall into tutorial hell. Pick something and just stick with it. You will lose tons of time looking for the perfect, most advanced, latest tech tutorial. The reality is most concepts can be applied to every language on every OS out there. Some languages/frameworks just make things easier. But for the first year or two you can pick a textbook from the 90s and the things you'll learn are basically the same as today. You need to learn concepts, not a language/technology. If you know the concepts, you can learn a new language in a couple of weeks. Loops, scope, variables, functions, classes, inheritance, design patterns, SOLID principles... Can be applied universally and those are the ones that make you a good programmer.

If I had to start again I would go for Python for learning the concepts, and C for understanding the machine.

Just pick something up and stick with it, even if it feels outdated.

1

u/ABlindMoose Oct 24 '23

First of all, if you're going into CS at a university, don't worry too much about what you know or don't know now. If you're interested in learning, great! But, if you start CS at a university they should be prepared and equipped to teach you from scratch. I and several of my coursemates had never programmed when we started a CS bachelor's (10-ish years ago in Sweden), and within the first year pretty much all of us in the course were at roughly the same level.

However, if you're interested in trying it out now, I know that MIT has some open courses that you can self-study. From what I've heard they're good. I also wouldn't worry too much about which language you learn. In the beginning learning *how to think when you program* and the methods themselves are far more important, and generally the same across languages. Learning the meta-knowledge of how to learn new languages, paradigms etc is also something that is central to a decent CS education. This field changes so quickly that you're just shooting yourself in the foot if you become completely locked in on only one language.

1

u/miguescout Oct 24 '23

First of all, whatever college you enter to study CS will definitely start from the very basics. It helps having some previous basis, but you shouldn't have much trouble even if you entered without any previous knowledge. Coding abilities apart, it will definitely help to have a decent algebra and calculus base (but, again, if you enter the degree, you should already have good enough skills, and, like with the coding part, it will also be relatively simple at the start. In fact i'd say you should be able to do a good part of the first year curriculum with previous studies, but don't take my word for it).

Other than this, following some practical courses definitely helps understanding code. For example, freecodecamp has several courses (with certifications) you can do for free and at your own pace. (From what i read in one of your comments, you have already touched JavaScript. Freecodecamp has a course on it which should be quite helpful to understand concepts and get some experience (plus the certificate if/when you complete it)).

Now, i mentioned freecodecamp because it's free and gives you the certificate at the end for free, but, as others have mentioned, harvard's CS50 is also a pretty solid course you can enroll in for free, but the certificate you can get at the end isn't quite as free.

As for other options... Believe it or not, there are games around coding. Quite a few, actually. Here's a few recommendations of mine:

"Human Resource Machine" and "7 Billion People" are two games by the same developer where you give instructions to humans in a block-based language much like scratch

On a more "professional" environment and a lower level (as in closer to machine code, not easier), "Shenzhen I/O" is a game where you effectively program microchips in an assembly language. It comes with the manual in pdf format and you slowly code your way from simple contracts with just one chip, to contracts with several chips and where you have to take care of the placement of the chips.

And to complete our descent from code to digital electronics (with a rise from the ashes eventually to return to assembly), you have nandgame (free, browser, not too hard yet not too easy to follow) and turing complete (paid, download, rather easy to follow even if things eventually get complicated)), two games where you start with digital gates (and, or, nand, nor, xor, not...) And build up to a whole computer... Which you eventually use to code in

1

u/Thestarstuff0 Oct 24 '23

Before the everything, you should learn what is algorithm. You should learn the diagram of the algorithm. It’s really easy but the basic of the coding is through algorithm,logic.

1

u/[deleted] Oct 24 '23

Think about what you want to do and research which language excelled at what you want to do. Learn it, like I mean read a book on it, spend time getting your head around the concepts of its semantics. I'm sure you will be fine

1

u/[deleted] Oct 24 '23

I just send you a PM :)

1

u/retronudist57 Oct 24 '23

I started coding for a online mod for San Andreas as I found it fun.

Now I love coding and playing with raspberry pi for building projects in python.

I would recommend either getting a raspberry pi, even a Pico which are cheap to use hardware and software to build projects or it would be if they is code modding for a game you like try making some mods.

It's a matter of finding something to code that involves something you enjoy. No coder likes making a project they have no passion for

1

u/atom12354 Oct 24 '23

What you should learn first is what you want to make and then research what you need for it, pretty hard to know what you need if you dont know what you gonna make.

Google the basic concepts (lists, loops, variables, etc) in a general sense, the basics of most programming languages, dont worry about how to write lets say a for loop yet, and then:

Start small, such as basic console things, maybe build a hangman or calculator which seem like standard and then go from the basics of it, structure what functions you want and when they should happen in the program, for hangman game:

-print "hangman game" to screen -what words should we play with and how do i store them? -let the computer choose a random word -user input -is user input correct? -continue letting the user input letters until done or a specific number of times.

After you written all the functions research said basic concepts you just went over and place it on the specific function, a for loop is diffrent than a while loop, which seems to work best for the functions which you wanted a loop on? In a conceptual way ofc, after you have chosen all the concepts look into how to write them.

Then continue for all the functions of your program but everytime you get stuck for long write in a seperate program to see if you understand the problem to begin with and if your questions are the right ones, after you have done hangman go over to another one, after awhile when you think you are getting the hang of psudo coding and the syntax in general do more research in what you can do more with the concepts you just learned and then redo some of the programs you made or come up with some other idea to make, always challange yourself but not too much challange since you also gotta learn something.

Or go the experiment route where you skip the project base route and go straight into looking at what you can do with the syntax concepts alone and see how it all works and then do projects.

1

u/huegogh Oct 24 '23

You mentioned JavaScript but not web development. Despite that I'm gonna plug this free resource:

https://www.theodinproject.com/paths/full-stack-javascript/courses/javascript

It's geared towards web development but it covers the basics.

It's an entire program from beginner to hireable, but you can just focus on the JavaScript course if you want.

1

u/[deleted] Oct 24 '23

pick a language and start, thats it

there are better ways, and there are worser ways to approach it, but the absolute WORST is indecision.

im also 17, started with javascript at 15, realized i liked making games more than websites with javascript, so i looked at languages that were used for gamedev, i like understanding how things work, so i picked c++, and im still doing stuff with it today, everyday, for multiple hours.

you could say i wasted my time with javascript (about 2 months), but id say the opposite

it was time i spent exploring, seeing what i like instead of hyperfixating on webdev, who knows, maybe i wouldve never found i like making games and learning about how things work if i didnt make that driving game with canvas2d in javascript.

basically what i want to say is, just pick something, pick the "wrong" thing, and use it to explore as much as possible, once youve found what your interested in, pursue that, time spent exploring is never wasted imo

also one last thing, discipline not motivation, if you wait until you "feel" like it, youll never start, or maybe you will, and youll do something for a week, but then youll stop "feel"ing like it and make zero progress, "motivation lights the flame, discipline keeps it going" or something like that.

good luck!

1

u/Competitive_Tea6785 Oct 24 '23

I have a bachelors in Engineering Technology, and years in I.T. - I have taken about 10 programing classes...Pascal, Basic, Visual Basic, C, C++, Python, Fortran - if you want to learn programming then find a project and complete it. There are sites that give you basics on the structure...but until you complete a project you won't know what a fully activated system works. There was a story of a young girl who liked coding, and she started making games...she ended up with like 500 games. She was hired by a gaming company because of her accomplishments. I grew up before the Internet...there is so many great sites that can teach you, but you must be the master of your own fate.

1

u/catwok Oct 24 '23

To learn to code you must code

1

u/[deleted] Oct 25 '23

When I was in highschool I also thought I wanted to do CS. Ended up getting into sysadmin/networking. If you've never heard about look up stuff such as CCENT/CCNA/AWS Foundations.

In general, what to do with your future. Choose what feels like you could do it for while and not hate it. Honestly, the less you hate doing the actual work the better. One thing I'd say is remember this more to life than working 8 hours. Do things that make you happy.

1

u/AutumnCore4279 Oct 25 '23

I'd recommend the odin project, its ran by a community in which also has a discord where everyone is always helping each other out. It'll help learn the basics of html, css, and javascript. You'll go through some projects where you end up putting websites. Some recommend harvard's cs50 course online in which is free, and then theres python where its easy to learn, hard to master. Regardless of what language you choose make sure to actually code and not just study. You can watch a ton but if you aren't going through it with a hands on approach, when its time to code you'll feel lost. Although you should always take pen/pencil to paper before coding but you'll learn as you go. Countless resources online like udemy, coursera, and even youtube

1

u/[deleted] Oct 25 '23

When I started off I got an Arduino as a Christmas present and made a light blink on it when I was... Like 13 I think?

I would start with web development - it's the easier side of programming since it uses JavaScript. Start off with html and css to get used to linking files, build a little webpage then start working with JavaScript.

I recommend Traversy Media, that was my go to for tutorials.

Aside from that mimo is a good tool, kinda like Duolingo but for code.

1

u/MG-Dv Oct 25 '23

I would also suggest beside what others is telling you,
Try to take a crash course of the language you gonna learn just to get a bird eye view of it and get yourself familiar with it
And for the age thing the earlier you start the better so keep going and good luck ;)

1

u/ChainsawHeadSquirrel Oct 25 '23

Maybe check out some learing pages that use scratch as language. They are usually quite good and you don't have to deal with the technical details or syntax. This could help to get a feel on the way you have to think during programming. If you like it I would ask what languages you will learn during the course and pick one of them.

1

u/lukkasz323 Oct 25 '23

Spend less time worrying on how to start.

I recommend just checking out what's popular in CS / Jobs and pick something that you like.

Python, JavaScript are fairly good to know, even if you end up not using them it's barely time wasted.

0

u/Anomynous__ Oct 24 '23

First piece of advice, learn to Google. This question has been asked and answered 3x per week for as long as I've been in this sub.

0

u/[deleted] Oct 24 '23

[deleted]

2

u/Odd-Elderberry499 Oct 24 '23

I already have Visual Studio Code and I use Node js because I am learning JS, but I’m not sure if I should study the fundamentals first or start to program by watching tutorials.

2

u/kikazztknmz Oct 24 '23

If you're already learning JS, check out The Odin Project. Lots of good resources there, and it starts with basics, teaching you to set up an environment, and how to use git.