Learning OOP, Design Patterns, Clean Code and refactoring.
学习OOP、设计模式、简洁代码和重构。
A lot of people love to talk the talk when it comes to writing clean code.
很多人喜欢谈论关于如何写整洁的代码。
I know it's gotten me thinking about ways we might measure the value of clean code.
我也认识到我们应该寻找测量干净代码价值的方法。
I hope this article has gotten you to think about the value of clean code in your systems.
我希望这篇文章已经让您开始考虑干净代码对您系统的重要性。
My point is, for important programming venues, clean code is too often not even a consideration.
我的观点是,作为重要的编程比赛,干净的代码是经常被忽略的一个因素。
In Chapter 1, Martin convincingly argues that clean code is not just desirable — it is necessary.
在第一章,Martin以极富说服力的方式表明,简洁代码不仅仅是人们所希望的,并且是必须的。
Clean code goes into the same category as process when it comes to things we can drop if we have to.
当我们不得不丢掉一些东西的时候,干净的代码也属于这个范畴的过程被我们丢弃。
I think that anything that makes you get into the habit of always writing clean code is a good thing.
我认为,能够让你养成一个好的编程习惯的所有事情都是好事情。
Smart organizations recognize that Web design is more than just creating clean code and sharp graphics.
聪明的企业意识到网页设计远远比创建条理清晰的代码和鲜明的图形要多得多。
If the designer implements his own designs, he is beholden to two different goals: Clean code and great user experience.
如果设计师实现自己的设计,他会受制于两个不同的目标:代码的整洁和良好的用户体验。
But when I'm coding, clean code is my secondary goal and it could never take the place of my primary goal: making it work.
但是当我在写代码的时候,整洁的代码不是我最重要的目标,它从来不能取代我最重要的目标——使程序运行起来。
Even when an application is only for local use, write clean code, and have lots of instrumentation and debugging output available.
即使在应用程序只供本地使用的情况下,也应该编写干净的代码,并提供足够的测试和调试输出。
Don't get me wrong, I strive for clean code as well, and have written about its importance quite a lot in the past couple of years.
不要误会,我也力图代码整洁,并在过去的几年写过很多篇关于代码整洁重要性的文章。
Chapter 11 talks about clean code in the context of system-level techniques such as Dependency Injection and Aspect-Oriented Programming.
第十一章在系统级别讨论了简洁代码,如依赖注入和面向方面编程技术。
Whether you learn to program in high school, the university, or in some other way, chances are you really don't learn how to write clean code.
无论您是在高中,大学还是其它途径学习的编程,问题是您实际上并没有学习如何编写干净的代码。
Although they all emphasize different aspects of clean code, there are a few emerging themes: simplicity, lack of duplication, readability, elegance.
虽然他们定义简洁代码的侧重点不尽相同,但其中仍有共通之处:简单、无重复、易读、优雅。
When the existing code in a method or class is difficult to read, the next developer who works on it feels less compelled to write clean code himself.
当一个方法或类中存在一些难读的代码,下一个开发人员继续这些工作的时候,就觉得他也没有必要迫使自己编写清晰的代码。
On the other hand, many experienced PHP programmers see frameworks as tools for "weak" programmers that don't understand how to write good, clean code.
另一方面,许多经验丰富的PHP程序员把框架视为那些不懂得如何写出高质量的清晰的代码的“初级”程序员而设计的工具。
As you learned in the previous article, they're also malleable, willing to be customized and extended in all kinds of ways, in service of good, clean code.
如您在第1部分中了解到的,它们也是多变的,能够以各种方式定制和扩展,帮助实现优质、简洁的代码。
That is very important because the clean code, and ability to alter presentation, means that your site can be viewable by someone on a small mobile phone screen.
因为代码的精简是如此的重要,它可以随意的控制内容的表达方式和位置,因此,即使是在一个手机屏幕上,也可以很轻松的展现你的网页。
It is hard to overestimate the value of good names. Remember Ward's principle: you know you are working on clean code when each routine turns out to be pretty much what you expected.
好名字的价值如何估计都不为过,记住Ward原则:当每一个子程序都只做它应该做的,你就拥有了简洁代码。
They'll stress their dedication to it, in some cases even wearing Uncle Bob's green band while coding so they'll never lose sight of what's incredibly important to them: writing clean code.
他们会强调自己在这方面的贡献。他们甚至带着UncleBob的绿色图标来写代码,这样他们就不会忽视了写整洁的代码是多么重要。
These errors nearly always indicate sloppy programming. So if it's your code, you should clean them up anyway.
这些错误几乎总是表明编程草率。所以如果是您的代码,无论如何都应该清除这些错误。
When we clean up the code, the cleanup we make will only pay off at some future time.
在清理代码的时候,我们为之付出的努力只有在将来才能受益。
As you can see, the end result is some very clean, readable, and easy to maintain code.
如您所见,最终结果是一些非常干净、可读性强、且容易维护的代码。
So the code is "clean and green," according to my simple unit test case — but that's meaningful only if I'm really testing the code thoroughly.
根据前面简单的单元测试用例,这块代码是“干净,绿色”的——但只有在我真正彻底地测试这块代码的情况下这才有意义。
But I would like to focus on an issue that arose while I was recording the podcast: programmers' all too common inability to write clean, maintainable code.
但是我将关注一个我在记录这个播客时所遇到的一个问题:不能够编写干净简洁的代码,这也是程序员们遇到的一个相当普遍的问题。
The core code is clean and easy to extend, and the user interface is very easy to use.
核心代码很干净而且容易扩展,用户界面也非常容易使用。
So if we can put logic in proper events as per the nature of the logic, that would really make your code clean.
因此,如果我们能在适当的事件中放入逻辑,将真正使你的代码干净。
So if we can put logic in proper events as per the nature of the logic, that would really make your code clean.
因此,如果我们能在适当的事件中放入逻辑,将真正使你的代码干净。
应用推荐