Before work, I was a young man in literature and art. Young people in literature and art think about life in an independent spirit and attitude. Therefore, we often do something different from others. writing poems and compositions is a major part of college life. At that time, I love writing and often give a thousand words to express my rich feelings.
The code is not obsessive.
Before work, I was a young man in literature and art. Young people in literature and art think about life in an independent spirit and attitude. Therefore, we often do something different from others. writing poems and compositions is a major part of college life. At that time, I love writing and often give a thousand words to express my rich feelings. It is either a plug-in, or an influence, or Zhang Guanli Dai. In short, all the feelings of what you see in your life are condensed into words. At the beginning, I didn't like typing on a computer. They are all handwritten. they should be carefully written on the draft paper with a gel pen, and then input to the computer in their spare time.
After work, the first job is design. For me, writing is not a stream. Perhaps with the help of Huigen and our efforts, we will be able to become one of the second-class and third-class players in the future. However, I understand that the conflicts between literature and life reality are acute. some real factors do not allow me to do what I like. I want to choose a job that gets a return as soon as possible, so I naturally engaged in design. In a financial company, advertising design and part-time copywriting are complicated. My work in the past six months has aroused my strong interest in layout design and greatly improved my appreciation for beauty. Knowing what is beautiful, what is ugly, how to make beautiful, how to do is ugly.
Programmers do not just write programs, but programs are just a way to implement business. However, it is not that easy to make the way to implement the business more artistic. What is art? Art is not complex. art is simple, clear, and clear. As we can see a painting, we can feel the beauty. this is the shortest embodiment of the so-called art. In programs, I think art is to write simple, clear, and clear code. The code must be arranged neatly, just like writing an article or designing a flat work. At least keep the equal sign alignment and keep the variable naming standard. If the programming level is higher, you can use some simpler methods to implement functions faster and faster. The second step is to implement a function between each module, like building blocks, independent of each other, and then to maintain functional reusability of the module. Every piece of compliant building block can finally build a beautiful palace.
Those automatic code alignment tools do not have any artistic accomplishments. It can only ensure that the code runs well and does not reflect the beauty of the program. Code is always maintained like an article. Do you still remember the unsung annoyance when you look at other people's code. Because you see the messy code and the code without comments. You think this must be a code written by a fool. However, when you write your own code, you are immersed in your own sense of accomplishment in implementing the function. you have forgotten to press the tab key several times with a few more spaces.
When you press a few spaces, in order to alignment the codes. My colleague asked you if you have obsessive-compulsive disorder. you can say that I have obsessive-compulsive disorder and I am proud of it.
Without a picture or no truth, the comparison is clear.
The following are my code. one is self-layout, and the other is automatically formatted by the editor.
The following is the editor's automatic typographical code.
All my blog articles are original. Some articles may reference relevant materials, but all of them have clear source information. You can reprint and share them at will, but you need to add a link to this article and a copyright description.