this post was submitted on 21 Jun 2024
53 points (96.5% liked)
Asklemmy
43946 readers
577 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!
- Open-ended question
- 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.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- [email protected]: a community for finding communities
~Icon~ ~by~ ~@Double_[email protected]~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Human languages or programming languages? (I find it amusing that there's one comment here assuming the former and one assuming the latter.)
Yes.
Actually, the former. But curious to know about both experiences.
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:
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.
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?