DEV Community

Cover image for Should you Learn 2 Languages at the same time?

Should you Learn 2 Languages at the same time?

Bronwen Gien on March 03, 2022

It is possible to learn two programming languages at the same time, and in some cases, it can be recommended, such as is the case with HTML and CSS...
Collapse
 
cappe987 profile image
Casper

This article feels intentionally misleading and is self-contradictory. You speak about programming languages, yet use HTML and CSS as examples. Sure, not everyone knows the difference, but in your full post on another site you even say you know they aren't programming languages.

The syntax of HTML and CSS is completely different and they do very different things. But they are still great to learn alongside each other because they have very different purposes, and ones that complement each other.

The problem of learning 2 programming languages at the same time, mainly for beginners, comes when they do the same things in different ways. If anything, I would guess that this is amplified if they are similar because it will be much easier to mix them up. Python and Ruby looks quite similar and I'm guessing will be easy to mix up. For Python and C you could probably keep them separated more, but they still share some fundamentals.

Unless you have a need to learn two programming languages at once (e.g., for classes in university or at a new job) then you should avoid it. You will probably be better off focusing on one at a time.

Collapse
 
beginnergamedev profile image
Bronwen Gien

Thank you for taking the time to leave your comment. I hear what you are saying that it is probably best to learn one at a time. And to a certain extent I agree with this based on my journey so far.

Where I think learning two comes in handy is specifically with HTML and CSS becasue HTML itself is a pretty boring language to learn as a beginner, every coding tutorial is about the basic document structure and adding a few headings. But when you add CSS to this, you can see where you can actually go with HTML, which I found mroe inspiring.

I also found that once I started learning CSS I went back to learn more about HTML, so even though I didnt start both languiages at the same time (which I wouldnt recommend) you can learn two at the same time, by bhroadening your depth in one while learning the other.

A specific example in my coding journey was that I had no idea waht sematic HTML was when i just learnt HTML, I foudn out about that while learning CSS in going back to HTML.

Hope that makes sense. I really find your comments very valuable. I am new to coding and sharing my journey and your comments will help me write better, so thank you!

Collapse
 
dumboprogrammer profile image
Tawhid

Exactly.
I'm afraid that It will mislead new developers.
He should tidy up and fix his article.

Collapse
 
curiousdev profile image
CuriousDev

Thanks for adding this, I was about to write something similar.

Collapse
 
cerchie profile image
Lucia Cerchie • Edited

I think it depends on the coding syntax you learn. HTML + CSS go great together, and the syntax is different and limited enough to not be confusing.

However, if you tried JS and Python at the exact same time I think it would be tough -- I learned them a couple months apart and even though I didn't learn them simultaneously, I was always tripping over try...catch vs try..except.

That being said, I think picking 2 languages, say Rust and JS, and learning how to write something like a REST API in them is a great way to learn in your first year, because it leads you to universalizing concepts outside the particulars of a language.

Collapse
 
beginnergamedev profile image
Bronwen Gien

Thank you so much for this comment about REST APIS, i really found that very helpful!

Collapse
 
johnpalmgren profile image
John Palmgren

I think this is great. Sharing as you learn is a great way to gain a deeper understanding of what you're learning. I hope you're ready for the "HTML is not a programming language" lot. I don't know why people get so worked up about that. Keep learning and have fun!

Collapse
 
beginnergamedev profile image
Bronwen Gien

Thank you for the support. Dont worry i have gotten that comment a lot. I do get it and I know the title isnt technically correct, but the article wasn't really written with qualified devs in mind, its really aimed at a beginner and more to share my experience that learning something like HTML, can give you the confidence you need to take the next step.

I really appreciate your comment and your support, thank you so much!

Collapse
 
curiousdev profile image
CuriousDev

You should think about writing your articles from a beginners perspective, the articles appear a lot like, that there would already be a lot of experience.

Collapse
 
cerchie profile image
Lucia Cerchie

The author's profile states that they started learning to code in Jan 2022! I think it's impressive that they are choosing to write about their journey and that they are thinking this deeply about it. Keep it up, Bronwen!

Collapse
 
beginnergamedev profile image
Bronwen Gien

Thank you so much, and yes my Bio is accurate :-) Honestly starting a blog and writting about topics has forced me to learn more about a topic which has been really helpful in my journey. The blog also makes sure I keep pushing forward, even though I learn slower becasue of writing everything I think the benefits outweight the cost.

Thank you very much for your support and your kind word, I really appreciate it!

Collapse
 
beginnergamedev profile image
Bronwen Gien

I am a beginner, I started learning to code in Jan 2022 after startig and failing the 100days of code type challenges many times. Honestly writing these articles is what keeps me learning, hopefully they will help someone else once day. They also help me learn a concept in more detail, as I need to write about it :-)

Please feel fre to share any thoughts on my writing style that you think could help, I would love to hear it :-)

Collapse
 
harshjoeyit profile image
Harshit Gangwar

HTML and CSS aren't programming languages tbh.
From my experience there is nothing wrong with learning/working on 2 or more programming languages except that you mix up concepts/functions/syntax sometimes.
Cheers🥂!