立即注册 登录
虫部落 返回首页

Dus的个人空间 https://chongbuluo.com/?10367 [收藏] [复制] [RSS]

日志

[Cal -Reading] Better life , better calcutions

已有 229 次阅读2020-4-3 13:34

Stop Writing Bad Commit Messages

Ugly Truths About Working From Home

Books That Can Help You Become a Better Programmer

Famous Programming Quotes, Explained - Young Coder

Habits of Super Learners - Personal Growth 

What Happens When You Lack Senior Engineering Leadership

—— —————————— —— ———————— —— ———————————— —— ——————————
【Calculations】12 Ways to Become a Better Programmer
       Being a good programmer can mean many things to different people. 
For some, it can mean you are a good problem solver, for others it means you are the master of a particular programming language and still some would argue that neither of those things can make you a good developer. Being a good programmer depends on past experience, the amount of growth you have made, your interests, rationale and many other areas. In this article, I will discuss several ways that you can become a better programmer by using the tools that are available and the development of good personal habits that will help you go far. I know some of these are common sense, but don’t bash me for it; I just wanted to lay them all out on paper (or screen).
  1. Read Other People’s Code
  While your goal may be to write good code, you must also be a good reader in order to become more proficient. Reading other people’s code will allow you to understand different points of view in problem solving as well as introduce you to new techniques. It is important to have an objective to your reading, such as learning a new programming paradigm or how to work with a new API. Reading code can be a more efficient use of your time when learning something new than trudging through documentation. To become better programmers we have to read what works and learn to develop better code writing habits.
  2. Develop Personal Motivation
  Being motivated to become better at your chosen profession is an excellent step in the right direction. Just like dieting, going to the gym and other onerous tasks, if we do not have the right motivation when pursuing these goals we will never be able to reach them. Becoming a good developer takes much more than a desire to make it happen. It takes a strong commitment to do whatever it takes whether that means you are spending time outside of work studying new techniques, meeting with other professionals or traveling to conferences. You have to have a strong drive to be the best.
  3. Get a Mentor
  Having a mentor is an important part of improving your programming skill. This should be a person that you aspire to be like professionally, that has a background that you can relate to and that you have a lot to learn from. Finding a mentor that you “click” with can be a long process but don’t give up. By hanging out with better programmers you will pick up good professional habits and become smarter.
  4. Learn to Listen
  Listening is an art form and there are many programmers out there that are not good listeners and it ultimately hurts them at their craft. Learn to listen to what the customer has to say, listen to your coworkers when they are discussing the project. Don’t assume that what you think is really what they want. The best way to prevent problems and unnecessary work as a programmer is to really listen to what is being said and check your ego at the door.
  5. Gain Confidence
  The mark of a good programmer is their confidence in their abilities. Why are good programmers so confident? They know they have put in the time and effort necessary to truly understand what they are talking about. This knowledge enables them to make the best decisions and be able to discuss or defend them in a productive way when needed. Don’t confuse confidence with arrogance! Arrogance is deadly to a programmer and often results in poor choices, dead team dynamic and other nasty results of the “I know better” effect. Become confident enough in your abilities to have intelligent conversations with teammates that also allows you to listen and become better informed in the process.
  6. Join a User Group
  Local user groups for programmers are everywhere and often only require a small, monthly time commitment. However, the payoffs in the end are huge. These groups are usually structured around two concepts: teaching and networking. Not only will you be able to learn something new at each monthly presentation but you will gain valuable contacts in your industry that could later lead to internships, jobs or mentors. Later, when you have become more comfortable with your group and skills, you may want to present something on a topic as well (see #10).
  7. Read at Least Two Books a Month
  Whether you enjoy a good mystery novel or science fiction, continue to read your favorite novels in your spare time. While I suggest that good programmers read at least one technical book in a span of two weeks, it is important to read any book that takes your fancy. By reading books you will be focusing and exploring a concept in depth as opposed to “grazing” on information such as blogs, tweets and other online reading that rarely goes in-depth on a topic. This way, you will be better able to take these lessons and concepts and apply them to the real world.

  The second benefit to reading two books a month is that it will expand your boundaries and force you to become acquainted on topics you may not have encountered otherwise. Two books a month is 24 books a year, which means that you will read books on topics you are not familiar with, thus causing new growth in other areas of knowledge.
  8. Learn to Use Your Debugger
  It may seem like a simple idea since debugging is one of the main parts of the process of writing software but many developers are not as familiar as they could be with their debugger. The reason for this is that many developers do not see the process of tracking down problems in their code as productive and educational as they could. For some programmers, finding bugs means you did not spend enough time planning or that you have been sloppy during your code writing. Errors in your code should not be taken personally. Humans will continue to make mistakes and that is something we have to accept. Stop looking at your debugger as an evil you need to avoid and see it as a tool you can use to create better code.
  9. Never Stop Learning
  As programmers, we never stop learning. Programmers that have tuned out new technologies to hole up in the area they are familiar with soon find themselves out of work with a skill set that is no longer marketable. Over the years the continuous pattern of framework upgrades, version numbers and release dates start to run together but you must keep your skills up to date by evaluating new technology and trends as they are happening. This will allow you to be on top of the game when the next game-changing idea is happening and allow you to be ahead of the curve. This is one area, where we can help. We offer a variety of open source training options on a variety of technologies.
  10. Share Your Knowledge
  The best way to learn something is to teach it to someone else. Teaching another person forces you to evaluate the concept differently than you have had to in the past and sometimes requires you to see it from a different point of view in order to help your student understand. Offer to speak at conferences or local user groups, tutor students at a local school or start writing a teaching blog. All of these are easy ways to share what you know and what you are learning.
  11. Learn Keyboard Shortcuts
  Programmers have often been compared to musicians. The need to practice to become better at their chosen skill as well as become intimately familiar with our instrument in order to be great at it. For programmer this means knowing how to type quickly and accurately as well as know your way around keyboard shortcuts that will make you a faster developer. Working quickly and efficiently is one of the traits that separates good programmers from the rest of the pack. As a fast programmer you will be able to find better solutions by creating and iterating than struggling with the keyboard through your first solution. While it doesn’t make sense to write thousands of lines of bad code (even quickly), it does make sense that the more code you write the better you will become at it.
  12. Learn When to Take a Break
  One of the problems in the programming industry is our tendency to become overworked. Meetings, reports, documentation, reviews, etc…all take up valuable coding time, which then means we have to work extra hard to get things out by the deadline. When confronted with a problem or a development issue, our first thought it is work on it for many hours until the issue is resolved. Don’t do this.

  When working on a task such as programming that requires concentration, you will often find that you are making more mistakes or creating more problems when you are tired. Stopping programming is often a better solution when tired than having to fix the mess you made. The work will still be there and the problem will be easier to solve when you are well rested and eager to face it. Avoid staying late to trying to finish things unless absolutely necessary and learn to take periodic breaks from programming doing other tasks such as writing documentation or adding comments. Since your subconscious mind is always working on a problem, you may find the solution to that annoying bug while standing in the shower the next morning or while taking a jog.

In the end, if you are truly motivated, continue learning and are doing everything you can to make that goal happen there is no reason you will not be successful. Programming is an art that must be practiced in order to be perfected. Strive to write better and cleaner code, to be proud of the code that you write and honored to put your name on it. Hopefully you can come away from this article with something that make YOU a better programmer!

Help us spread the word!

———— —— ———— —— —————— —— —————— —— ——————————————
https://github.com/dimplexu/runningcode/tree/master/Translation/2020/03

成为更好的程序员的12个方法

对于不同的人来说,成为一名优秀的程序员意味着很多事情。对一些人来说,它可能意味着你是一个很好的问题解决者,对另一些人来说,它意味着你是一门特定编程语言的大师,但仍然有人认为这两种东西都不能使你成为一个好的开发人员。成为一名优秀的程序员取决于过去的经验、你所取得的进步、你的兴趣、基本原理和许多其他方面。在本文中,我将讨论几种方法,通过使用可用的工具和培养良好的个人习惯来帮助您成为更好的程序员。我知道其中有些是常识,但不要因此批评我;我只是想把它们都写在纸上(或屏幕上)。

1. 阅读别人的代码

虽然您的目标可能是编写良好的代码,但是为了变得更加精通,您还必须是一个良好的读者。阅读其他人的代码可以让你理解解决问题的不同观点,并向你介绍新的技术。对你的阅读有一个目标是很重要的,比如学习一个新的编程范例或者如何使用一个新的API。在学习新东西时,阅读代码比费力地阅读文档更能有效地利用时间。为了成为更好的程序员,我们必须阅读有用的东西,并学会养成更好的代码编写习惯。

2. 发展个人的动机

在你所选择的职业上有动力变得更好是朝着正确方向迈出的极好的一步。就像节食,去健身房和其他繁重的任务一样,如果我们在追求这些目标时没有正确的动机,我们将永远无法实现这些目标。成为一名优秀的开发人员需要的不仅仅是实现它的愿望。无论你是在工作之余花时间学习新技术、与其他专业人士会面还是参加会议,你都需要坚定地投入去做任何事情。你必须有强大的动力才能成为最好的。

3.得到一个导师

拥有一位导师是提高你的编程技能的重要部分。这个人应该是一个你渴望成为专业人士的人,有一个你可以联系的背景,你有很多东西可以学习。找到一个和你“合得来”的导师可能是一个漫长的过程,但不要放弃。通过与更好的程序员相处,你会养成良好的职业习惯,变得更聪明。

4. 学会倾听

倾听是一种艺术形式,有很多程序员都不是好的倾听者,这最终会伤害到他们的手艺。学会倾听客户的意见,在同事讨论项目时倾听他们的意见。不要以为你所想的就是他们想要的。作为一名程序员,防止问题和不必要工作的最好方法是真正地倾听别人在说什么,并在门口检查你的自我。

5. 获得信心

一个好的程序员的标志是他们对自己能力的信心。为什么优秀的程序员如此自信?他们知道他们已经投入了必要的时间和精力来真正理解他们所谈论的内容。这些知识使他们能够做出最好的决定,并能够在需要时以有效的方式讨论或捍卫这些决定。不要把自信和傲慢混为一谈!傲慢对程序员来说是致命的,经常会导致糟糕的选择、死亡的团队活力和其他糟糕的“我知道更好”的结果。要对自己的能力有足够的信心,与队友进行明智的对话,这也能让你倾听,并在这个过程中获得更好的信息。

6. 加入用户组

程序员的本地用户组到处都是,而且通常只需要一个小的、每月一次的时间承诺。然而,最终的回报是巨大的。这些小组通常围绕两个概念构建:教学和网络。在每个月的展示会上,你不仅能学到新东西,还能在你的行业中获得宝贵的人脉,这些人脉可能会让你日后得到实习、工作或导师的帮助。之后,当你对自己的团队和技能感到更舒服时,你可能也会想要就某个主题发表一些东西(见第10条)。

7. 一个月至少读两本书

无论你喜欢看推理小说还是科幻小说,在业余时间继续读你最喜欢的小说。虽然我建议优秀的程序员在两周内至少阅读一本技术书籍,但是阅读任何你喜欢的书都是很重要的。通过阅读书籍,你将专注于并深入地探索一个概念,而不是“啃食”博客、推特和其他很少深入某个主题的在线阅读信息。这样,你就能更好地把这些课程和概念应用到现实世界中去。

每月读两本书的第二个好处是,它可以扩展你的知识面,迫使你熟悉一些你在其他时候可能不会遇到的话题。一个月读两本书,一年读24本书,这意味着你会读一些你不熟悉的主题的书,从而在其他知识领域获得新的增长。

8. 学习使用调试器

这似乎是一个简单的想法,因为调试是编写软件过程中的主要部分之一,但是许多开发人员对调试器并不熟悉。这样做的原因是,许多开发人员没有看到在他们的代码中跟踪问题的过程是富有成效的和有教育意义的。对于一些程序员来说,发现bug意味着您没有花足够的时间进行计划,或者您在编写代码时很粗心。代码中的错误不应视为针对个人的错误。人类会继续犯错,这是我们必须接受的事实。不要把调试器看作是您需要避免的邪恶工具,而应该把它看作是您可以用来创建更好代码的工具。

9. 永远不要停止学习

作为程序员,我们从不停止学习。那些放弃了新技术而在他们所熟悉的领域中埋头苦干的程序员很快就会发现他们失去了工作,而他们所掌握的技能也不再有市场了。多年来,框架升级的持续模式、版本号和发布日期开始同时运行,但是您必须通过评估新技术和新趋势来更新您的技能。这将使你在游戏中处于领先地位,当下一个改变游戏规则的想法发生时,让你走在曲线的前面。这是我们可以提供帮助的一个领域。我们提供各种技术的各种开源培训选项。

10. 分享你的知识

学习的最好方法是把它教给别人。教别人会迫使你用不同于以往的方式来评估这个概念,有时还会要求你从不同的角度来看待它,以帮助你的学生理解。在会议或当地用户群中发言,在当地学校指导学生,或开始写教学博客。所有这些都是分享你所知道的和你正在学习的东西的简单方法。

11. 学习键盘快捷键

程序员经常被比作音乐家。他们需要通过练习来提高他们所选择的技能,同时也需要对我们的乐器非常熟悉,这样才能成为大师。对于程序员来说,这意味着知道如何快速准确地打字,也知道如何绕过键盘快捷键,这将使你成为一个更快的开发人员。快速有效地工作是优秀程序员与其他程序员的区别之一。作为一个快速的程序员,您将能够通过创建和迭代找到更好的解决方案,而不是在第一个解决方案中使用键盘。虽然写成千上万行糟糕的代码没有意义(即使很快),但是你写的代码越多,你就会写得越好,这是有意义的。

12. 学会什么时候休息

编程行业的问题之一是我们倾向于过度工作。
会议、报告、文档、评审等都占用了宝贵的编码时间,这意味着我们必须加倍努力才能在最后期限前完成任务。当遇到一个问题或一个开发问题时,我们的第一个想法是花很多时间来解决它,直到问题得到解决。不要这样做。

当你从事一项需要集中注意力的任务时,比如编程,你经常会发现当你累了的时候,你会犯更多的错误或者制造更多的问题。当你累了的时候,停止编程通常是一个更好的解决方案,而不是不得不去修复你造成的混乱。工作还在那里,当你休息好并渴望面对它时,问题会更容易解决。除非绝对必要,否则不要为了完成任务而熬夜,并学会在编程过程中时不时地休息一下,完成其他任务,比如编写文档或添加注释。
因为你的潜意识总是在处理一个问题,所以你可能会在第二天早上淋浴或慢跑的时候找到解决这个恼人问题的方法。

最后,如果真的有动力。

鲜花

握手

雷人

路过

鸡蛋

评论 (0 个评论)

返回顶部