what's the best way to learn a programming language?

my thoughts is that i should learn basic syntax, but then work on challenges, but the problem there is that I don't know what challenges I can accomplish with each language

like doing a rotation cypher is VERY hard to accomplish in C, but then again it's C, but that's just an example

so what'd be the best way to learn stuff?

I wanna learn Python/C++/HTML/CSS/etc.

@tojo For C++ tho, start with the basic data structures and algorithms so you get acclimated to doing things other langs do for you.

Linked list, quick sort, etc

@Fuego @tojo one step ahead of u pal, doing linked lists in C

P.S. its torture

@tojo mmmn.... if linked lists are torture you might want to noooooooot use C/C++

Unless you're writing systems code, you probavbly shouldn't anyhow

@Fuego heh, well by torture I mean hard really

linked lists were fun to implement, but I needed to do a bunch of research to know where to even begin!

Follow

@tojo For reals tho, I'm super in to native code - I write C/C++/Asm for a living, but if you ask me to write a non-systems/OS program, I'm gonna write it in python every time.

There's very little need for it, its very hard to do simple things, and you will 99% of the time hang yourself with the rope.

that scanf for example, even if you did it right would be a guaranteed buffer overflow.

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!