Programmers, let’s write the front-end code

You can think of me as an extreme person, just as many people focus on their own fields and disdain other "superficial" work areas. For example, I have seen many judgments that portal is not technically content, and projects make complaints about hard work. Recently, there are also those crazy Tucao of big data fans. My extreme are quite different. My extreme is that I think most excellent programmers should try many things. Not only the bottom development or machine learning is full of wise challenges. I have been a website for several years. It is difficult to say that this is my initial interest. Although I am also contacting and learning other fields, I still feel that making a website is still full of challenges. The Internet is really a wonderful place.

Front end development is an important aspect of this "multifaceted thing". People who have tried hard may have this experience. This is a new world. There is a fresh feeling in both ideas and skills. If you haven't tried it yet, believe me, it will enrich your vision, at least in design and coding, you will have a new understanding.

Javascript code has many inherent defects, and you can find too many substitutes and improvements. On the other hand, it does give programmers few restrictions - if you have written Perl code, you probably know what kind of code is free code and what kind of code is poetic code. In contrast, java code with strict syntax is probably like an honest and regular child. It won't bring you much destruction, but it can't bring you rich code beauty. However, JavaScript has n multi class libraries, enough active syntax freedom, Eval and prototype, and those dynamic language features. You can write a lot of elegant code.

On the other hand, the freedom of code must bring the art of code level planning and decoupling. If the code is still in the food and clothing stage of global VaR and global function everywhere, you can't feel this, and you can't write JavaScript code at this stage. Many people say that front-end development is simple. If you just understand it as "good at it", or alert a string and change the color of a div, it's really easy to learn. In addition, the convenience and simplicity of CSS make it not even a programming language, and html is a very fault-tolerant markup language, so you can easily write an interface that can see the effect.

If you write a product code with a slightly more complex UI, you will feel the power of planning and decoupling. Whether HTML, CSS or JavaScript, variables or objects are very easy to be polluted, and "modularization" is very important. In the Java world, you have few weapons, and packages, classes and loaders easily simplify these cumbersome modular tasks when you are unconscious. However, when writing front-end code, you find that you need to consider it yourself, such as page block layout, CSS inheritance tree, JavaScript binding and anonymous functions, and so many open-source libraries to help complete modularization.

Front end development can also help you become a programmer who knows the product UI best. Programmers are easy to fall into the quagmire of using various technologies to tangle with implementation, but they ignore clear and reasonable user requirements. The interface you write is to help users solve problems. Whether it is layout design, color matching or behavior feedback, it will always help you focus on the actual operation of users. Being able to write front-end code can help you easily communicate with users and quickly prototype the interface, which is better than how many pages of film. Recruit less artists and UI designers. Try to design the interface, cut the picture and write the style yourself. These things are not so difficult, not to mention the bootstrap.:)

In the process of front-end development, you can also feel the fastest sense of achievement and feedback. All you need is a browser and a text editor with highlighted code. Well, maybe you need some gadgets to help you debug. This is enough. You don't have to worry about the compilation and execution process, wait for the restart of the application, and constantly curse the cumbersome deployment of the environment. Now, you can focus on your code design and writing.

Front end development should become an important tool in the engineer's toolkit. Chinese programmers are generally rich in "Engineering" skills and worse in academic fields, but this does not mean that engineering skills are lack of value. For example, you can make anything interesting and valuable. If you can write front-end code and build your own website, you can complete the whole end-to-end process without the help of others, whether it means launching a product or displaying your great achievements. You can really be alone. This is also in line with what I said, programmers have to do all kinds of things.

Finally, I would like to remind you that learning materials are very important when you are first involved in front-end development. Just as VB will harm novices programmers (and this harm will affect many years), the front-end code is too easy to write and rot, and needs to be screened.

Address: http://www.oschina.net/news/36972/programmer-write-frond-end-code?from=20130127

I'm Hongten

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>