程序员金句一箩筐,也许每句都是你现在最需要

程序员金句一箩筐,也许每句都是你现在最需要

  1. Don't complain about legacy code. You basically write it every day.

不要抱怨遗留代码,你几乎每天都在写。

2.Stop complaining about documentation. you're a programmer. read the source code.

不要抱怨文档。你是个程序员,去读源码。

3.Change is normal. Don't get too attached to code, or to a specific way to do something.

变化是正常的。 不要太执着于代码,或者做某事的特定方式

4.When writing code, always write it like someone else will read it and can’t ask you what it does.

写代码时,始终想着以后有人要阅读这些代码,而他却不能问你这些代码是干什么的。

5.“This is not a research farm.” A good implementation that’s completed is far better than an incomplete solution that tries to achieve perfection.

“这不是研究农场。” 一个已经完成的好的实现远比一个试图达到完美的不完整的解决方案要好得多。

6.The primary job of any software engineer is delivering value

任何软件工程师的主要工作是交付价值

7.The better you can work in different styles and be consistent in their problem domains, the less you’ll get stuck at technical barriers.

你越能以不同的风格工作并在他们的“问题领域”保持一致,你就越不会陷入技术障碍(解决方案领域)。

8.Don’t fixate - stay flexible about the least essential. These things can often change without meaningful impact.

不要固执——对最不重要的事情保持灵活。 这些事情经常改变但是并没有什么有意义的影响

  1. Always provide good documentation and comments to explain context and why.

总是提供良好的文档来解释上下文和原因。

10.If you don't know what to call it, you don't know what it's for.

如果你不知道怎么称呼它,你就不知道它是干什么用的。

11.There's always a simpler way to think about solving a problem, strive for simplicity, because code is a liability, not an asset

总是有一种更简单的方式来思考解决问题,力求简单,因为代码是一种责任,而不是一种资产

12.Everything is a tradeoff. Pick one based on context

一切都是权衡。 根据上下文选择一个方案

13.The first step of any project is to grossly underestimate its complexity and difficulty.

任何项目的第一步都是严重低估其复杂性和难度。

14.Don't fanatic with tech stack (language, framework, db, etc)

不要热衷于技术栈(语言、框架、数据库等)

15.Don't impress me with some complicated techniques, impress me by making the shit work.

不要用一些复杂的技术来取悦我,要让工作运行起来取悦我

16.When you start as a developer you think that the most important part of your job is the technology. Writing code.

Years passes and you realize that is writing good, readable code.

And after many years, that is in communication. Understand and be understood.

当你开始作为一名开发人员时,你认为你工作中最重要的部分是技术 - 编写代码。

几年过去了,你意识到是编写好的、可读的代码。

多年后,意识到沟通才是最重要的。 理解和被理解。

17.Languages are just tools, learn the principles of software development and picking up new tools will be easier.

语言只是工具,学习软件开发原理,学习新工具会更容易

18.Just because you can, doesn't mean you should

仅仅因为你可以,并不意味着你应该

19.Don't be afraid to ask questions, it's not a weakness to admit you don't understand something.

不要害怕提出问题,承认自己不懂并不是一种弱点

20.Don’t implement every customer request. Most of them are useless.

不要实现每个客户的要求。 他们中的大多数都是无用的

21.Don't overdo and overdo background stuff. If it works as it's supposed to, nobody cares.

22.Explain to me like I'm 5

把我当5岁孩子一样和我解释

23.There's no such thing as a dumb question

没有愚蠢的问题

24.A working solution is much better than a perfect one.

一个可行的解决方案比一个完美的解决方案要好得多

25.Don't ever cut and paste code if you don't understand what it does. Only add code to projects that you are confident you know what it does.

如果您不了解代码的作用,请不要剪切和粘贴代码。 仅将你有信心知道作用的代码添加到项目中

26.If your solution is too complicated, there is a simpler one

如果你的解决方案太复杂,有一个更简单的

27.Don’t just fix the bug. Fix its root cause.

不要只修复bug,修复问题的根源

28.The answer will come to you on the toilet.

答案会在你上厕所的时候浮现

29.Self-documenting code is the best documentation.

自注释的代码是最好的文档

30.Keep it simple, make it work, optimize later.

保持简单,让它工作,以后再优化

31.Type it, don't do copy and paste.

敲代码,不要复制粘贴

32.Don't write clever code.

不要写聪明的代码

33.Don’t push to production on Fridays.

不要在周五上线

34.Separation of concerns.

关注隔离

35.Divide and conquer

分而治之

36.Understand what customer really needs, not what they want.

了解客户真正需要什么,而不是他们想要什么