If you want to be a senior architect, you need to develop these 10 habits!

In this world, there are millions of people who are keen on software development. They have many names, such as: Software Engineer, Programmer, Coder, Developer. After a period of time, these people may be able to become excellent coders, they will be very familiar with how to use computer language to complete their work. However, if you want to become a good programmer, there are a few things you need to pay attention to. If you can make the following ten items become your habits, then you can truly be considered a good programmer.

1. Learning is endless.
Even if you have more than 10 years of experience as a programmer, you have to study hard, because you are in the creative field of computers, and many new things appear every day. You need to keep up with the times. You need to understand the new programming language, and understand the programming language under development, as well as some programming frameworks. You also need to read some industry news and participate in online discussions in some popular communities, so that you can understand and understand the overall software development trend. In China, some well-known communities such as: CSDN, ITPUB, CHINAUINX, etc., abroad, it is recommended that you often go to digg.com to see the aggregation of various blogs.

2. Master multiple languages.
Programming languages ​​always have their most suitable fields. When you are faced with problems that need to be solved, you need to find the most suitable language to solve these problems. For example, if you need performance, C/C++ may be the first choice. If you need cross-platform, Java may be the first choice. If you want to write a development program on the Web, then PHP, ASP, Ajax, JSP may be your choice , If you want to process some text and interact with other applications, Perl, Python may be the best. Therefore, taking some time to explore other programming languages ​​that you are familiar with can broaden your horizons, because you are better armed, and you think more comprehensively, which will be good for yourself and the project. help.

3. Face different operating systems or technologies rationally.
Programmers always have unparalleled technology and operating system in their minds. Some people like Ubuntu, some people like Debian, and some people like Windows, FreeBSD, MacOSX or Solaris and so on. Take a look at my blog ( http://blog.csdn.net/haoel ) in the post "Actually Unix is ​​very simple" and you will know the persistence of programmers in maintaining their loyalty. . Only some good programmers understand the advantages and strengths and weaknesses of different operating systems, so that when selecting the system, they can be truly objective and fair without letting their emotions affect themselves. Similarly, the language is the same, too many programmers always like to dwell on the contrast of languages, such as: Java and Perl. Which programmer who just debuted didn't argue about similar topics? Such as VC++ and Delphi and so on. Arguing about these things can only show one's superficiality and fussiness. A good program does not cling to these, but can rationally analyze and face it in order to make the correct choice objectively.

4. Don't frame yourself in a single development environment.
Once again, as mentioned above, every programmer has his own favorite tools and techniques, some like the old ones (for example, I like the Vi editing program), and some like the new ones like gedit or Emacs. Some like to use a debugger with a graphical interface like VC++, and I prefer the GDB command-line debugger. Etc., etc. Are there few debates among programmers about what tools to use? It's everywhere. It doesn't matter what tool you use, as long as you can achieve your goal better and faster. But there is one thing that good programmers should know-that is, they should try other working environments. Without comparison, you never know who is good and who is bad, and you never know what you don't know.

5. Use version management tools to manage your code.
Don't tell me that you don't know the version management of source code. If the source code developed by your team does not have a version management system, then I want to tell you that your software development is still in the Stone Age. Hurry up and use a layout management tool. CVS is a seemingly plain version tool, but it is the most widely used version management system. Subversion is an upgraded version of CVS, which is beginning to take over the territory of CVS. Git is a different version management tool. There are Visual SourceSafe and so on. Which version management tool to use depends on the size and geographic distribution of your team. You may be using the most efficient or inefficient tool to manage your source code. But a good programmer will always use a source code version management tool to manage his code. If you want me to recommend one, I recommend that you use the open source Subversion.

6. Be an excellent team member.
Unless you like solo, unless you are a lone hero. But I want to tell you that today, there may not be a mature software that you can do alone. You may be the best in your team, but this does not mean that you are a good team member. Your abilities can only be deployed in a team. Are you polite in communicating with your team members? Do you often communicate with them, and everyone likes to discuss issues with you? Think of a football team. Are you a good member of this team? When others see you running on the court, when others see your passing, receiving and stealing, can your team members be inspired by your actions?

7. 把你的工作变成文档。
这一条目当然包括了在代码中写注释,但那还仅仅不够,你还需要做得更多。有良好的注释风格的代码是一个文档的基础,他能够让你和你的团队容易的明白你的意图和想法。写下文档,并不仅仅是怕我们忘了当时的想法,而且还是一种团队的离线交流的方法,更是一种知识传递的方法。记录下你所知道的一切会是一个好的习惯。因为,我相信你不希望别人总是在你最忙的时候来打断你问问题,或是你在休假的时候接到公司的电话来询问你问题。而你自己如果老是守着自己的东西,其结果只可能是让你自己长时间地深陷在这块东西内,而你就更本不可以去做更多的事情。包括向上的晋升。你可能以为“教会徒弟能饿死师父”,但我告诉你,你的保守会让你失去更多更好的东西,请你相信我,我绝不是在这里耸人听闻。

8. 注意备份和安全。
可能你觉得这是一个“废话”,你已明白了备份的重要性。但是,我还是要在这里提出,丢失东西是我们人生中的一部份,你总是会丢东西,这点你永远无法避免。比如:你的笔记本电脑被人偷了,你的硬盘损坏了,你的电脑中病毒了,你的系统被人入侵了,甚至整个大楼被烧了,等等,等等。所以,做好备份工作是非常非常重要的事情,硬盘是不可信的,所以定期的刻录光盘或是磁带可能会是一个好的方法,网络也是不可信的,所以小心病毒和黑客,不但使用软件方面的安全策略,你更需要一个健全的管理制度。此外,尽量的让你的数据放在不同的地方,并做好定期(每日,每周,每月)的备份策略。

9. 设计要足够灵活。
可能你的需求只会要求你实现一个死的东西,但是,你作为一个优秀的程序,你应该随时在思考这个死的东西是否可以有灵活的一面,比如把一些参数变成可以配置的,把一些公用的东西形成你的函数库以便以后重用,是否提供插件方面的功能?你的模块是否要以像积木一样随意组合?如果要有修改的话,你的设计是否能够马上应付?当然,灵活的设计可能并不是要你去重新发明轮子,你应该尽可能是使用标准化的东西。所谓灵话的设计就是要让让考虑更多需求之外的东西,把需求中这一类的问题都考虑到,而不是只处理需求中所说的那一特定的东西。比如说,需要需要的屏幕分辨率是800×600,那么你的设计能否灵活于其他的分辨率?程序设计总是需要我们去处理不同的环境,以及未来的趋势。我们需要用动态的眼光去思考问题,而不是刻舟求剑。也许有一天,你今天写的程序就要移植到别的环境中去,那个时候你就能真正明白什么是灵活的设计了。

10. 不要搬起石头砸自己的脚。
程序员总是有一种不好的习惯,那就是总是想赶快地完成自己手上的工作。但情况却往往事已愿违。越是想做得快,就越是容易出问题,越是想做得快,就越是容易遗漏问题,最终,程序改过来改过去,按下葫芦起了瓢,最后花费的时间和精力反而更多。欲速而不达。优秀程序员的习惯是前面多花一些时间多作一些调查,试验一下不同的解决方案,如果时间允许,一个好的习惯是,每4个小时的编程,需要一个小时的休息,然后又是4个小时的编码。当然,这因人而异,但其目的就是让你时常回头看看,让你想一想这样三个问题:1)是否这么做是对的?2)是否这么做考虑到了所有的情况?3)是否有更好的方法?想好了再说,时常回头看看走过的路,时常总结一下过去事,会对你有很大的帮助。

以上是十条优秀程序员的习惯或行为规范,希望其可以对你有所帮助。

Guess you like

Origin blog.csdn.net/AndroidAlvin/article/details/107459695