To be writing code for a living when you’re 50, you will need to be a rock-star developer and be able to out-code the new kids on the block.
要想在50岁时还能以编程为生,你必须成为一个明星式的开发者,要有能力比那些孩子们在这一领域做的更好。
This danger can be avoided, according to computer science professor Stuart Russell, if we figure out how to turn human values into a programmable code.
根据计算机科学教授斯图尔特·拉塞尔的说法,如果我们弄清楚如何将人类价值观转化为可编程代码,则可以避免这种危险。
But because it's all digital, it eliminates the used book market and eliminates any sharing, and because homework and tests are through an access code, it eliminates any ability to opt out.
但因为它全是数字化的,它消除了二手书市场,也消除了任何共享,而且因为作业和考试都是通过准入码进行的,它消除了任何选择退出的能力。
Because it's all digital, it eliminates the used book market and eliminates any sharing, and because homework and tests are through an access code, it eliminates any ability to opt out.
因为它全是数字化的,它淘汰了二手书市场,也杜绝了任何共享,而且因为作业和考试都是通过准入码进行的,它让人们失去了选择退出的任何能力。
However you find such vestigial code, or whyever it was put there in the first place, take it out.
不管您用何种办法找到这种残留代码或者无论任何理由它原来被放在这里,都将它去掉。
Most programmers are familiar with checking in and checking out their code, and know what versions go with which software release.
大多数程序员都熟悉对代码进行签入和签出操作,并知道什么版本与哪个软件发行版是对应的。
The code filters these out using substrings.
代码使用子字符串过滤出这些文件。
Sometimes you have to just be patient enough to crank out the code you need to write.
有时候你必须要有足够的耐心去精雕细琢出你需要的代码。
He puts out code faster than any developer on the team.
他代码写起来比团队的任何开发人员都快。
In fact, though, some code out there doesn't survive transitions gracefully, and there are reasons why.
不过,实际上有些代码就是不能顺利完成转换,但是这里面有一些原因。
Corresponding messages went out in Morse code and required keys, which changed daily, to decipher — get it?
相应的信息以莫尔斯码输出,同时解码还需要密钥,而密钥是每天变换的。
Cures and preventions: Factor the casting code out into separate methods for each class.
治疗和预防措施:把类型强制转换代码分解到每个类的单独方法中去。
Since the online store was already live, we would never roll out new code without first testing it and gathering detail metrics.
由于在线商店已经上线了,我们只有在对新代码进行测试以及搜集数据之后才能发布。
Factoring out the lookup code also lets us reuse it for other EJB references.
分解服务查找代码还可以将其重用于其他的EJB引用。
After testing out this code against some popular browsers, Listing 3 shows aggregated results.
在一些常用浏览器中测试过此代码后,就会出现清单3中所示的综合结果。
Now, let's do the reverse: Create a UML model out of the code you have.
现在,让我们反过来做一下:用你的代码生成一个uml模型。
Once you have given out your code and you no longer have access to all the clients, then you're in the API business.
一旦你给出了你的代码就不再访问所有的客户的话,那么你就是使用了提供API的这种模式。
I also added an option to print out the code generation model tree for a binding.
我还添加了一个选项,可以打印出绑定的代码生成模型树。
In typing out code you'll almost always make some mistakes or find mistakes by the author. Figuring out how to fix these mistakes is invaluable.
打出代码时你几乎总会犯一点错误,或者找到作者的什么错误。找出解决这些错误的办法是非常宝贵的经验。
As it turns out, most code contains volumes of information like this to help us find data of interest.
正如这里所显示的,许多代码包含大量类似的信息,有助于我们找到感兴趣的数据。
The way to call a method less often is to find out what code is calling that method, and then not make those calls.
要减少一个方法的调用次数,方法是找出哪些代码正在调用该方法,然后取消这些调用。
Developers check out source code from the central repository into a local sandbox and, after making changes, commit it back to the central repository.
开发人员从中心存储库签出源代码到本地的沙箱内,进行变更后,将它提交回中心存储库。
Potential new developers could check out the code at any time, but if it won't build, they are likely to be dissuaded from contributing.
潜在的新开发人员可以在任何时候检出代码,但是如果代码不能构建,新开发人员可能就被挡在了做贡献的队伍之外。
It admonishes you to keep all repetition out of your code because it frequently leads to problems.
这条原则主张从代码中消除所有重复,因为重复常常会导致错误。
Instead of gracefully returning an error code to the parent application, I print the error to the screen and bail out of the code.
我没有按通常作法将错误代码返回给父代应用程序,而是将错误打印到屏幕,然后退出程序。
Your validation code sticks out because it doesn't look like the other code around it.
您的验证代码很醒目,是因为它看起来不像周围的其他代码。
By automating our examples and scenarios, we find out if our code doesn't work.
通过自动化示例和场景,我们能够发现代码是否能够工作。
To improve performance, you may wish to factor out the code for each model attribute into its own method (or a single method with a "switch").
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
To improve performance, you may wish to factor out the code for each model attribute into its own method (or a single method with a "switch").
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
应用推荐