I know this is a simple example, but when you mature as a programmer, one of the first things you should do when you sit down to tackle some problem is write something like this pseudo code.
我知道这是个很简单的例子,但是当你们成长为一名程序员后,当你们碰到问题后第一件事情就是,该写一些类似于,伪代码的东西。
Right, so an exception then has this format that I can control as a programmer.
好的,所以一个异常会有这样的格式,我能把他当做一个程序员来控制。
It is my place, as a programmer, to write information to the user.
这个规范到底用来干什么的呢?,这是我的空间。
It's a valuable tool that you want to have as a programmer.
对于作为一名程序员的你来讲,这是很有价值的一个工具。
On the other hand, as I said, never trust a programmer to do the right thing so we're going to check it.
另外,如我之前提到的,别相信程序员会一直保持正确,所以我们才要。
I will tell you that a good programmer, at least in my mind, may actually go back and modify the pseudo code as they realize they're missing things, but it's easier to do that when you're looking at a simple set of steps, than when you're in the middle of a pile of code.
至少我认为是这样的,如果他们发现遗漏了,一些步骤的话会,回过头去修改伪代码,但这当你面对一些大致的步骤时,这个过程就会比,面对一堆代码要简单的多。
应用推荐