r/learnprogramming • • 13h ago

How to actually pick up a new language

I had picked up C, C++, Python and VB.NET as a kid so the idea of how to learn new languages has become a foreign to me.

I can read most code bases even if I don't know the language but the sometimes joining an existing code base or needing to use a tool/ecosystem related to a different language means needing to know that language. But I don't know what is a good level to stop. The entire docs feel overkill but when I open table of contents, everything sounds like I should look into it. (And you can't ignore basic stuff either cuz there could always be some peculiar/unique behaviour).

So how do you guys go about picking up a new language for something?

12 Upvotes

11 comments sorted by

3

u/Intelligent_Part101 12h ago

Read a bit for an overview. You don't need to know all the details. Then use it. Build something with it or make a modification to an existing system. That's the only way: learn more as you use it, enough at a time to solve whatever problem you are having. Also, you can ask AI questions. This is a big help.

1

u/MyNameIsRichardCS54 12h ago

Follow a basic course in it and then start building things.

1

u/Dazzling_Music_2411 12h ago

there could always be some peculiar/unique behaviour

The main thing to check is if there is some new paradigm that's unfamiliar to you and learn that.

Then learn any specific new libraries that the language offers or that you need.

Finally, any IDE peculiarities, if the language forces a new IDE on you.

After that don't bother with much, just let it soak in by "osmosis", unless you particularly enjoy reading phone directories or extended documentation! There's no point to it - anything you need (little syntax variations or whatever) you can just look up on the fly.

1

u/MacIsAGenius 12h ago

I think figuring out what you actually want to build first is what sparks the passion. Once you know that, the learning gets a lot easier. AI can help a lot here, but don't ask it to just do the thing for you. Ask it to teach you how to do it, one piece at a time. You'll understand more as you go, and that energy is what carries you to the point where you feel you've learned enough.

1

u/FlatwormOk811 11h ago

Just build a tiny tool that annoys you daily and read the docs only when the compiler or runtime complains.

1

u/Scared_Okra_3083 11h ago

i usually just start in the actual repo and only open the docs when i hit something that breaks or looks weird. never got through a language guide front to back as an adult, didn't need to. you can ignore half the toc until it actually comes up.

1

u/suubu-crtiv 10h ago

skim a quick tour for an hour, then fix a small real bug in the codebase. just read up front on error handling, memory/ownership, and the build tool, since those are what bite you when you only read code.

1

u/profalaxiz 9h ago

My usual move is spending 15 minutes on something like Learn X in Y Minutes just to map the basic syntax, then looking up whatever makes that language weird compared to what I already know. If you already know C++ and Python, you only really need to focus on the actual differences like its memory model and error handling.

After that, just jump straight into the codebase or the tool you actually need to use, and look things up on demand when something breaks. Trying to memorize every edge case upfront before writing real code never sticks anyway.

1

u/autonooc 8h ago

my cheat code: port something small you already wrote in another language. you already know what it should do, so all your brainpower goes into how this language does it. way faster than tutorials where you're learning the problem AND the language at the same time.

1

u/DanKegel 8h ago

Like a leetcode solution.  That site is great for that.

Or try understanding solutions at Rosettacode.org in your old languages, then flip to your new language and understand that solution.