It was a problem with your code . We have a problem with your code . This is also the most visible thing about your code . There's a problem with your code . It does not ensure that the variable is accessed correctly by your code .
这也就是说如果的你代码 里面有bug,它不会立即显示,您可以回滚多台服务器。 This meant that if your code had a bug, it wouldn't surface right away and you could roll through a lot of servers. 你会得到关于你代码 的批评,同时你将学会描述为什么其他人的代码的好坏。 You will get critique on your code , and you will learn to describe in words why someone else's code is good or bad. 当注释代码时,要考虑到不仅将来维护你代码 的开发人员要看,而且你自己也可能要看。 When it comes to commenting code, think not only about the developers who will maintain your code in the future, but also think about yourself. 使用你代码 的其他开发人员很可能更期望使用内置的JavaScript方法来持续不断地工作,而不是你另加的方法。 Other developers using your code will probably expect the built-in JavaScript methods to work consistently and will not expect your additions. 如果你代码 写得好的话,没有传null值给l33tify方法,这个判断永远不会失败。 If your code behaves well, and never passes null as an argument to l33tify, the assertion will never fail. 同步工具是让你代码 安全的有用方法,但是它们并非灵丹妙药。 Synchronization tools are a useful way to make your code thread-safe, but they are not a panacea. 定位你代码 中包含CoreData代码的部分,然后重构。 Locate the part of your code that include Core Data code and refactor them. 编程的时候,总是想着那个维护你代码 的人会是一个知道你住在哪儿的有暴力倾向的精神病患者。 Always code as if the person maintaining your code will be a violent psychopath who knows where you live.". You are giving directions to the next programmer who comes around to read your code . 当你使用锁和内存屏障locksandmemorybarriers时,你应该总是小心的把它们放在你代码 正确的地方。 When using locks and memory barriers, you should always give careful thought to their placement in your code . 另外一个Java语言小改进是annotations现在能够添加在你代码 的几乎所有东西上。 Another small improvement to the Java language is that annotations can now be added to almost everything in your code . 总之,Prometheus是一个开源的监控系统,时间序列数据库,以及一个实现你代码 的框架。 In short, Prometheus is an open-source monitoring system, time-series database, and a framework for implementing your code . 一个简单的入门方式是那种让一些人在少于5分钟内就能使用你代码 的方式。 Provide an easy start- the way someone can use your code in less than 5 minutes. 这条规则确保了其他人编写的代码不会破坏你代码 ,反之亦然。 This rule ensures that other people's code can't break your code and vice versa. 一个简单的入门方式是那种让一些人在少于5分钟内就能使用你代码 的方式。 The way someone can use your code in less than 5 minutes. 代码和注释必须同步修改,否则你的注释将使维护你代码 的开发人员的工作很难做。 Both code and comments must move in parallel, otherwise the comments will actually make life more difficult for developers who maintain your code . 所以,你必须进行一些额外的研究,找出清理你代码 的最佳方法。 So you have to kind of do some extra research and figure out the best way possible to clean up your code . 如果你代码 中存储的数值不会改变,一定要用let关键字把它声明为常量。 If a stored value in your code is not going to change, always declare it as a constant with the let keyword. 你可以在你代码 的任何地方使用他们,而达到完全相同的目的。 You use them in the same places in your code , and for exactly the same purpose. 如果你代码 使用正确,有视力问题的用户则可以通过其他选项及“+”键放大文本。 If you code it right, people with vision issues can always use the Option and+ keys to enlarge the text. Think of the comments as hints to the future readers of the code ; 编程语言都使用英文,所以为何不把这个作为你代码 逻辑中的一环呢。 Programming languages are in English, so why not keep this as a logical step for the rest of your code . 现在你几乎可以跨越很多行折叠任何事物,无论它们在你代码 的什么位置。 Now you can collapse almost anything that spans multiple lines, no matter where they are in your code . 你可能会规避这个风险,因为你有严格的代码审查,并且所有的开发人员都知道你代码 的方方面面。 You may dismiss this reason because you have rigid code reviews and all your developers know your codebase inside out. 接下来我要和你们分享的是5个通用的良好编码习惯,它们能提高你代码 的可读性,可扩展性和整体质量。 What I will share with you are five universal good coding practices that will improve the readability, extensibility and overall value of your code .
Display more examples
Results: 32 ,
Time: 0.0188