Learn to write a program.

Learn to write a program.
This is, of course, the basic precondition to master. If you don't know a programming language, I suggest you start with Python. Python is a clean, well-documented language and a convenience for beginners. Although it is a good choice as the first language to learn, it is not a toy, it is a powerful and flexible language and it is also very suitable for developing large projects. [70] I wrote a more detailed article on this topic, "Development in Python." Good tutorial documentation on Python can be found on the Python website.


Java is also a good language to learn programming. It is harder than Python, but the code it produces is faster. I think it is the best language to learn as a second language. Unfortunately, Sun's reference applications are still registered. This is not a very relevant issue with the Java language itself; high-quality, open-source Java interpreters are available, the main problem is the class libraries that come with Java. Open-source class libraries fall behind Sun's libraries. If you decide to learn Java, do this with open-source applications instead of relying on Sun's proprietary code.
However, you need to know that you cannot be a full programmer by learning only one or two languages, or that you cannot reach the master level. You should learn to think about programming problems independently of any language. To be a real master, you should be able to learn a new language in a few days by combining what you know in the manual with what you know. This means that you need to know a few different languages.
If you are going to enter serious programming, you should learn C, which is the native language of Unix. C ++ is related to C; If you learn one, it won't be difficult to learn the other. Both languages ​​are not suitable for learning as the first language, and the more you avoid C programming, the greater your efficiency.


C is a sparing and efficient language in resource use. Unfortunately, C achieves this efficiency by leaving direct management of many resources (such as memory). This low-level (hardware-close) encoding is complex and error-prone and costs a lot of time to debug. Nowadays, when machines are strong, it is wise to write programs with a language that prioritizes your working efficiency instead of the machine's working efficiency. As a result, I suggest you choose Python.
Some languages, such as Perl and LISP, are of particular importance to masters. Learning Perl is important for practical reasons. It is widely used in dynamic web pages and system management. Even if you don't write Perl code, you should learn to read it. Many people who refrain from using C in jobs where C's machine efficiency is not needed will use Perl for the reasons I recommend Python. You will understand the codes they wrote.
Learning LISP is important for another reason - because of the enlightenment experience you will eventually get. This experience will make you a much better programmer in the rest of your life, even if you never use LISP again. (You can gain small LISP experiences by typing or modifying existing ones for simple editing modes for the Emacs text editor, or by typing Script-Fu plugins for GIMP.)
The best is to learn all of these five languages ​​(Python, Java, C / C ++, Perl and LISP). These languages ​​are not only the most important languages, but also provide you with important training in programming.


Peter Norvig, one of the most important masters of Google and a co-author of the widely used AI book, wrote a great essay entitled Learn Programming in Ten Years. [71] "Recommendations for success in programming" are remarkable.
I cannot provide you with a complete list of instructions on how to program here, but I can tell you that books and courses will not be available (the majority of the best masters have learned by themselves). Language features - a small part of knowledge - can be learned from books, but what makes it a living skill is practice and apprenticeship. You get this by reading the program and writing programs.


Learning to programming is like learning to write well in a natural language. The best way is to read the writings of the masters of this work, to write something yourself, to read a little more, to write a little more ... And to repeat it until you show the force and economy that you see in your example.
Previously it was difficult to find good code to read, because there were a few large programs that could read the source code of those who wanted to go on the path of mastery and try out. This ended dramatically: Open source software, programming tools and operating systems (all developed by masters) are now widely available.

Yorumlar