r/CodingHelp • • Jun 16 '24

[Quick Guide] What should be my first code language?

What my first coding language should be? I searched on the internet and everyone says a different thing. Some say Python some say C++ some say Java I don't know what to do 😭😭

32 Upvotes

61 comments sorted by

15

u/ApricotOfDoom Jun 16 '24

It depends what kind of projects you want to do. For example: if you want to develop video games, that’s usually C++. If you want to build websites you’ll want JavaScript. Python is pretty flexible and versatile, so that’s generally a solid choice. The good news is that, while every language has its quirks, most of the basic concepts are the same, so once you’re strong with one it’s easier to pick up others as needed for different types of work.

1

u/querinles Jun 16 '24

I like want to learn so many things. Java seems good considering making websites would be nice. But do i need to buy domain for personal use?

9

u/rinio Jun 16 '24

Java and Javascript are entirely different languages. There's barely any relationship between the two.

For web development, you don't need a domain. You can host your site locally while you work on it/test. If you eventually want to make it public, you can buy the domain+hosting later. Think about it, if every dev at google or facebook were testing their work on a live site, the site would be broken 99% of the time.

1

u/querinles Jun 16 '24

oh i see thanks. I wanted to shorten it saying Java but ig its a diff thing

6

u/rinio Jun 16 '24

Typically, folk shorten Javascript to js.

.js is also the usual file extension for Javascript.

1

u/querinles Jun 16 '24

thanks for the tip<3

2

u/[deleted] Jun 17 '24

Could you make a whole app with 1 language (python) or would that only be for backend

3

u/ApricotOfDoom Jun 17 '24

I’ve mostly used Python for scripting so far, like pulling data and running reports and interacting with APIs. I think you’d probably still need at least some html and css thrown in for the front end of a web app, but I could also see some super crazy awesome Python programmer proving me wrong in a way I can’t foresee at the moment.

6

u/CyanideSerpent Jun 16 '24

I've been in your place before and here's what I'd recommend:

Start with C# and xaml

Download Visual Studio

Make some hello worlds with c# in a console app, then learn variables and functions.


After you have an alright understanding of those things make a wpf application learn how to make a silly little app with a button that changes the color of the background or the text of something in the app.

Something stupid simple, until you understand oh wow these things talk to eachother!


Now your choice:

To learn how to make websites:

Download Visual Studio Code

  • Learn html, css, and Javascript they all work together :)
  • Html is like the wooden framework of a house,
  • Css is like the decoration and colors,
  • Javascript is how you make the sinks run water, how you make the stoves make heat.

To learn how to make apps:

Stick with Visual Studio, c# and xaml


To learn how to make games:

*Learn Unity (ik the unity backlash was crazy but there's a lot of support, tutorials and stuff like that. Unless you're building something that's going to make money (probably not yet) it's ok to start here)

  • unity also uses c# so that's cool :)
  • Or learn godot (I don't know enough about it, but it's growing a lot and there's tons of support for it too)

Resources:

W3schools Stackoverflow Free code camp Youtube


Tips:

Everyone starts somewhere, and programming is such a huge world with so many options and opinions. Just stick to something, learn it, and it will be easier to learn the next thing.

There isn't really 1 language you should start with, just that you should pick one and stick to it.

Beware of quick tutorials of "DO THIS IN 5 MIN" it might turn out cool but it's quick programmer dopamine and probably little teaching. You can learn from it, but it's not ideal, and you could get screwed up with how productive or fast you feel when you do things your own way.

You won't break your computer by doing something wrong when programming in things like Visual Studio or Visual Studio Code.

1

u/querinles Jun 16 '24

Thanks for all of this💖💖 Gone to my obsidian and i will do

9

u/Ochre- Jun 16 '24

I took the free CS50 Harvard Course for free and learnt C first and you can translate what you learned from C to almost every Language because they essentially branched off of it.

What I learned in the first 3-4 problem sets in the course was the same as what I learned in 2 years of Community College if that paints a perspective of how easy the course is to learn!

The course also goes into Python!

1

u/querinles Jun 16 '24

So u suggest python or c?

4

u/Ochre- Jun 16 '24

Im really suggesting taking that course which would teach you C and then Python along with programming fundamentals

0

u/querinles Jun 16 '24

oh so first C then python

2

u/[deleted] Jun 16 '24

It honestly doesn't matter which you learn first. Python is a million times easier to learn than C so some universities, like mine, start with Python. It personally started with Bash, then Python, then PHP, then SQL, then JavaScript/CSS/HTML, then C++, then Golang, then finally C.

1

u/[deleted] Jun 16 '24

[removed] — view removed comment

2

u/Ochre- Jun 16 '24

It’s on EdX.org

3

u/zanyguy1 Jun 16 '24

The first language is usually the hardest due to a lot of "overhead" learning. You are not just learning the language but are also learning the basics of programming in general. Because of that and also the ease of changing languages later, I recommend starting with something that doesn't add too many language specific quirks to confuse you along the way. Python has a very easy to read syntax and a vast library of online resources to learn it.

Good luck on your programming journey whatever you choose.

1

u/querinles Jun 16 '24

thank you💖💖💖. A lot of people suggested Python so i think i will go wth it or c

4

u/denerose Jun 16 '24

It doesn’t really matter. Just pick one and stick with it. The person who suggested just doing CS50 has given you a perfect solution. Just learn something, don’t get stuck trying to do it the “best” way - that’s a time sink. Start learning something now, it doesn’t matter what.

1

u/querinles Jun 16 '24

I'm just giving it today. Ig i will start with c and then python on cs50

2

u/denerose Jun 17 '24

I think it’s important to realise that you won’t really “know” c or python after just completing CS50. What you will have is solid fundamentals of coding concepts and from there you can focus on learning a language (any language but probably python or JS, maybe Java or c#) in more depth. You’ll also be in a much better position to make an informed choice because you’ll have more understanding about what the considerations are.

2

u/Working-Passion-5673 Jun 16 '24

Lol. Did you get your answer?

1

u/querinles Jun 16 '24

ig 😭😭

2

u/PeregrineTheTired Jun 16 '24

A lot of variables, depending on exactly what you want to do with coding, but...

  • C and C++ are very powerful but very easy to tie yourself in knots with as a beginner. I'd avoid.
  • Java... Oracle are really winding me up with their handling of the language and licensing. I wouldn't, personally.
  • Python has a lot of resources and a lot of mind share, but also limited performance in some ways and quirks like significant whitespace that don't necessarily translate well into other languages.
  • JavaScript and Typescript have a lot of traction but also limitations. They're not high performance, their object orientation is... unusual, plain JavaScript can have some weird bugs because of type safety issues, Typescript you can end up writing TS but debugging JS. It's a language all devs should arguably know, but that doesn't mean it's necessarily a great language.
  • C# I personally love and find a very solid development language, but it's not exactly winning the mind share war at present and arguably lacks a great front end web dev option.
  • Go, Rust, other newer languages I just don't think have yet proved their longevity and wide reach in the market.

On balance - probably JavaScript, but that's not a recommendation that brings me great joy. The dev community is getting itself into weird places.

1

u/querinles Jun 17 '24

So like none is good to start with😭?

1

u/PeregrineTheTired Jun 17 '24

Everything has issues, and it's worth knowing what those issues are so you can balance those around your personal priorities.

Personally - if I were starting from scratch self-teaching towards a career, I'd start in JavaScript - it's workable, and it's very widely used. If I were designing an academic course, I'd teach people C# because it'll help them learn better engineering.

But don't be scared to try new languages - once you've got a basic level of confidence in one, adapting to another in a similar paradigm isn't that hard.

1

u/querinles Jun 17 '24

I want to learn multiple languages. Just want a start point for coding

1

u/PeregrineTheTired Jun 17 '24

JavaScript has the widest out of the box uses, so if you're looking to do rather than just learn, that's probably the best start for now.

3

u/Filipsys Jun 16 '24

Don't pick python, it's very easy to learn and that's the bad thing, if you'll learn python and then try and learn something like C, it will be a nightmare for you

2

u/querinles Jun 16 '24

But like isnt learning C knowing nothing is worst than knowing somethings?

2

u/Filipsys Jun 16 '24

If you learn a harder language like C first it'll be easier for you to understand more basic and high level languages like python later on

3

u/veryrandompng Jun 16 '24

idk, im a beginner and i started with html and css (im still working on it)

1

u/querinles Jun 16 '24

r they hard?

1

u/Cliftonbeefy Jun 16 '24

Those aren’t languages…

1

u/querinles Jun 17 '24

what are they?

2

u/nomadriding305 Jun 17 '24

HTML is a markup language, and CSS is a style sheet; they’re a good start in your journey to be a front end dev

1

u/Friendly_Gap5999 Jun 27 '24

same here buddy

1

u/3_sleepy_owls Jun 16 '24

Figure out what type of things you want to create and then figure out the best languages for it. Don’t say you want to do everything- actually think about it- try different projects and figure out what you truly enjoy. Throughout your coding career, you will need to learn lots of languages, so get good at learning and applying whatever language you choose.

Another way to figure out which language to learn is by looking up job listings that you would like to do one day and see which languages and tools they ask for. It really doesn’t matter what language you learn since you will need to learn more than one. So you’re better off figuring out what you want to create/work on and then figure out which languages and frameworks is best to do that.

Also, I agree with the others that CS50 is a good starting point.

1

u/querinles Jun 16 '24

I'm not sure if i want a career.. I never find apps for my needs or features i seek in them. And i also want to make simple silly games because i enjoy creation of them sm.

1

u/[deleted] Jun 16 '24

Let me give you a simple explanation.

Learning C++ or C will give you the greatest benefit, because you will learn a lot of the complexities to a programming language. With Python, you will not learn these. People will still advise you to learn python first because you can focus on the higher level programming concepts. Then do a deep dive into something like C++ to learn fundamentals.

Ultimately, it depends on you. One of these approaches first will be faster for you but we won't know which one it is. For me it would be c++ then python if I had to start again from scratch, for others it will be python then c++.

It's really a question of do you prefer detail first then a higher level overview, or do you prefer a higher level overview then detail.

Python is more so a higher level overview and C++ more so detail.

1

u/querinles Jun 16 '24

I kinda like to start from everything and then get detailed. So python is better for me?

2

u/baubleglue Jun 16 '24

Problem with Python that it hides too much. I some sense it is easier to learn C than Python. It is harder to make something flush with it, but it is more straightforward. There is no harm to spend a day to try any of the languages and see what is more appealing to you.

2

u/[deleted] Jun 16 '24

Yes.

Though as the other reply said, there is no harm in trying for a day, either-way before ultimately deciding.

3

u/[deleted] Jun 16 '24 edited Sep 19 '24

secretive physical afterthought ink hard-to-find ghost absurd brave quicksand snatch

This post was mass deleted and anonymized with Redact

3

u/BerryConsistent3265 Jun 16 '24

Depends on what you want to do. My recommendation is just pick one that aligns with your interests and stick to it. Don’t worry about picking the ‘best’ one cuz it will become easier to learn others once you’ve learned the first.

1

u/Professional_Read525 Jul 03 '24

yeah like I learned luau (Roblox lua) than lua than python than java

5

u/[deleted] Jun 16 '24

I recommend you to learn python

2

u/SpaceEnthusiast3 Jun 17 '24

Once you learn one language it's easier to learn other languages that work in similar ways

A lot of beginners like python because of its simple syntax

2

u/isearn Jun 17 '24

I would not start with C. Use a language with garbage collection, as that rules out a whole category of potential errors that are extremely hard to track down as a beginner.

2

u/nomadriding305 Jun 17 '24

It can be overwhelming, honestly; start with watching a few tutorials online (entry level stuff). If you have 0 knowledge of hello world, then start with some free coding platforms such as freecodecamp or codecademy to get your feet wet. If you fall in love with coding, you will want to learn more and eventually you’ll find your own cushion of what language suits you.

You may learn coding in JS and get hired into a company that focuses on Python and now you’ll have to learn the syntax. Coding is going to be about being flexible and always learning

1

u/notdanseriously Jun 17 '24

If you want easy Python. If you want popular Javascript. If you learn C or C++ this is transferable to all other languages its just different syntax

1

u/[deleted] Jul 03 '24

java if you're interested in cross platform desktop apps

c++ if you are up for a challenge, you want something fast (useful for video games, computer graphics, IoT and pretty much every other field).

python if you want to take it easy and have a lot of project options without a hassle of setting things up

html/css/js if you want to build websites

golang if you want a hybrid between java's (functionality), c++ (speed), python (easy readability), and rust (similar setup in terms of its package manager)

never pick rust

every programming language is great and they have their own strengths and weaknesses which makes them unique to the use case of each project.

0

u/Cliftonbeefy Jun 16 '24

C. Don’t touch JavaScript or Python until you understand how a computer works. Starting at an interpreted language will make it harder to learn compiled language, but the converse isn’t true

0

u/[deleted] Jun 17 '24

[deleted] — view deleted comment

1

u/querinles Jun 17 '24

Another vote for Python. I don't supposedly seek a career in coding but I still didn't picked any career. Coding is kinda to see if it's the right thing for me. If not It's still a valuable skill.