56
submitted 1 week ago by [email protected] to c/[email protected]

I had tried to learn some languages using online resources on the net(freely accessible ones tho). Didn't actually commit to it with a plan.
Curious on how others went about it.

Do mention the resources that you liked/found useful.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 14 points 1 week ago

Human languages or programming languages? (I find it amusing that there's one comment here assuming the former and one assuming the latter.)

[-] [email protected] 9 points 1 week ago

Human languages or programming languages?

Yes.

Actually, the former. But curious to know about both experiences.

[-] [email protected] 2 points 1 week ago

For the latter, a good approach is to pick a project or idea and try to make it. If you're familiar with the logic you can look up the syntax for the new language, but it you're fresh off the boat then there is a bunch of good stuff on YouTube, Khan academy and stack overflow that are geared to newbies.

Some starting ideas:

  • Make a text based tic Tac toe/card game
  • Make a number guessing game
  • Find all prime numbers under a number given by the user

Once you've got a decent grip on the logic involved, it can be quite effective to implement more complex approaches to the solution. Instead of guessing randomly, implement a binomial (1:N divided by 2) search algorithm, or have the game play against itself. Go back over how you wrote the solution, and add some good comments, improve the functions descriptions, even refactor some code to be more efficient and more readable. I learnt how to code through doing, textbooks are great for some people but my preferred approach is to make something, break it, and learn how to fix it.

[-] [email protected] 1 points 1 week ago* (last edited 1 week ago)

Thank you.
I did try a bit of that.
My issue comes when more than 2 functions are used. I do plan to practice more of that.

Are there any resources that you recommend?

this post was submitted on 21 Jun 2024
56 points (96.7% liked)

Asklemmy

42472 readers
1137 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS