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

Asklemmy

43889 readers
874 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_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

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
[โ€“] TootSweet@lemmy.world 14 points 4 months ago (3 children)

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

[โ€“] Achyu@lemmy.sdf.org 9 points 4 months ago (2 children)

Human languages or programming languages?

Yes.

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

[โ€“] OmanMkII@aussie.zone 2 points 4 months ago (1 children)

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.

[โ€“] Achyu@lemmy.sdf.org 1 points 4 months ago* (last edited 4 months 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?