How To Learning Programming Language
There are often people asking me how to learn programming languages, and my evaluation is: start from projects. If you don't know what project to do, and just go to learn a programming language, you can only write some boring, tedious small code blocks, and sometimes use some inexplicable examples to illustrate. Do you think it has any effect on learning? Of course it does, but I don't think this can help you with doing bigger projects in the future. Because when you write projects in the future, you will naturally use the syntax that needs to be learned, so it's better to start directly from projects.
That being said, this is also for people who already have programming experience. If you are a complete beginner with no programming experience, starting directly from projects may make you feel at a loss. For this situation, I suggest first learning some basic knowledge, many programming languages have their own introductory tutorials, or you can refer to some online courses. After having a general understanding of the syntax, then go to write projects.
For more advanced design patterns (the most commonly used ones like singleton pattern), variable immutability and so on, they are all best practices summarized from various projects. You can gradually experience these contents in the process of writing projects. Don't rush, learning programming languages is a gradual process.
Use search engines and community resources like Stack Overflow, GitHub, etc. to find solutions and inspiration. Participating in open source projects is also a great way to learn, as it allows you to get in touch with real code and project structures.
Oh, please make sure to have "smooth internet connection", how can you learn programming languages without VPNs?
Finally, please make sure to learn how to use version control systems (like Git), it can help you manage code changes, record project progress, and easily roll back to previous versions when you encounter problems - A Missing Semester of Computer Science, or should I say the zero-th lesson, also mentioned.