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.
因为代码的精简是如此的重要,它可以随意的控制内容的表达方式和位置,因此,即使是在一个手机屏幕上,也可以很轻松的展现你的网页。
This speaks volumes about the need for clear code with good variable names and clean design on a long-term project.
这个事实清楚地证明:长期项目需要那些拥有良好变量名和干净设计的清晰代码。
I hope this article has gotten you to think about the value of clean code in your systems.
我希望这篇文章已经让您开始考虑干净代码对您系统的重要性。
The final part of the code should be familiar by now: put out headers, get and put the contents of the produced ODS file, and clean up by deleting the extra files.
您现在应该熟悉这个代码的最后部分了:生成头部,获取并放置生成的ODS文件的内容,然后通过删除额外的文件进行清理。
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.
但是我将关注一个我在记录这个播客时所遇到的一个问题:不能够编写干净简洁的代码,这也是程序员们遇到的一个相当普遍的问题。
Clean code goes into the same category as process when it comes to things we can drop if we have to.
当我们不得不丢掉一些东西的时候,干净的代码也属于这个范畴的过程被我们丢弃。
If the designer implements his own designs, he is beholden to two different goals: Clean code and great user experience.
如果设计师实现自己的设计,他会受制于两个不同的目标:代码的整洁和良好的用户体验。
When we clean up the code, the cleanup we make will only pay off at some future time.
在清理代码的时候,我们为之付出的努力只有在将来才能受益。
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.
根据前面简单的单元测试用例,这块代码是“干净,绿色”的——但只有在我真正彻底地测试这块代码的情况下这才有意义。
The core code is clean and easy to extend, and the user interface is very easy to use.
核心代码很干净而且容易扩展,用户界面也非常容易使用。
I know it's gotten me thinking about ways we might measure the value of clean code.
我也认识到我们应该寻找测量干净代码价值的方法。
The language you choose should provide you with a suitable "comfort" level, the ability to produce efficient (and clean) code, and, above all, allow the language to suit the project and vice-versa.
你所选择的语言,你应该觉得“舒服”,并且能够写出有效(而且简洁)的代码。最重要的,让语言去适应项目,反之亦然。
The Agile community picked up on the value of keeping your code clean as a part of following their principles, one of which is.
Agile社区会挑选出保持干净代码的价值来作为他们原理的一部分,其中原则之一是。
Our desire is to keep the system maintainable, and therefore we want our logging approach to keep the code as clean and simple as possible.
我们期望能够保持系统的可维护性,因此,我们希望我们的日志方案能够保持代码尽可能的整洁与简单。
As you can see, the end result is some very clean, readable, and easy to maintain code.
如您所见,最终结果是一些非常干净、可读性强、且容易维护的代码。
If there is no entry in log, the code skips the rest of the method because test case execution is clean and there is no information to capture.
如果日志中没有条目,那么代码就会跳过方法的其余部分,因为测试用例的执行是干脆的,并没有得到什么信息。
The untrusted data is referred to as tainted data, while the code ensuring that the data is not malicious is called a sanitizer, and is often said to clean the taint.
这个非信任数据被看作是污染的数据,当这个代码确保这个数据是非恶意就称作杀毒功能,通常也称作杀毒污染的东西。
Code coverage tools let you expand the unit testing mantra of "clean and green" to "clean, green, and covered," with real benefits to the effectiveness of your unit tests.
代码覆盖工具使您可以将单元测试的符咒从“干净,绿色”上升为“干净,绿色,并且已覆盖”,这更有利于单元测试的有效性。
With automated migration, teams can regularly perform dry runs that deploy the code into a clean "production class" environment, where automated unit and system-level tests may be executed.
在自动化移植中,团队可以将代码转入干净的“生产级”环境,在那里可以执行自动化的单元和系统级测试。
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.
但是当我在写代码的时候,整洁的代码不是我最重要的目标,它从来不能取代我最重要的目标——使程序运行起来。
Don't hesitate to go with the slightly less clean looking code if that code makes more sense from a correctness and performance point of view.
如果那些稍微比较不整洁的代码从正确性和执行来讲更有意义,我们也要毫不犹豫的去选择它们。
Ignore any errors regarding undefined methods because these errors clean up once the remainder of the code is added.
忽略有关未定义方法的错误,因为添加其余的代码后将清除所有这些错误。
It's the best way to keep your code clean, which keeps it easy to change over time.
这是保持代码整洁的最佳方式,用这种方法设计的代码总是很容易修改。
Code Cleanup works in batch mode, so that you can instantly clean the whole project or even solution.
可以在批模式下进行代码清理工作,所以可以即刻对整个项目甚至解决方案进行清理。
You might try to clean up this code a bit by packaging the key lookup code in a named template.
您可能希望将键查找代码打包在指定模板中,使代码更加清晰。
The adapter pattern is a nice way to clean this type of code up and reuse all your assignment code in other places.
适配器模式是整理此类代码并在其他位置重用所有赋值代码的优秀方法。
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.
当一个方法或类中存在一些难读的代码,下一个开发人员继续这些工作的时候,就觉得他也没有必要迫使自己编写清晰的代码。
So if we can put logic in proper events as per the nature of the logic, that would really make your code clean.
因此,如果我们能在适当的事件中放入逻辑,将真正使你的代码干净。
At the end, a simple 8 lines of code MXML file is shown for rendering the UI and to demonstrate the clean UI design.
最后,他用一个包含8行代码的简单MXML文件显示了如何渲染UI并示范了干净的UI设计。
At the end, a simple 8 lines of code MXML file is shown for rendering the UI and to demonstrate the clean UI design.
最后,他用一个包含8行代码的简单MXML文件显示了如何渲染UI并示范了干净的UI设计。
应用推荐