Disclaimer: my examples are Java, because this is what I know, but the concepts must be identical.
I voted for the answer, which I consider critical (it is too easy to accidentally create a new variable).
bill=5; bi11=bill+5
What is the value of the account?
However, I find it sometimes annoying to type:
DataOutputStream ds=new DataOutputStream();
It seems redundant, but to be honest, there is nothing wrong with that. You no longer need to enter it twice, and it is very useful. It takes time when you have questions - when you don’t know how to use any API. If it’s really hard for you to type this type of ad twice, then why are you wasting your time here? Since you started reading this, you could enter 30 or 40 ads, enough for every ad that you need in the next two weeks.
I think I say that, although I understand that emotional stress, which can be repeated by itself, can cause consistency, clarity and the ability to make more intelligent tools, makes it WELL worth it.
One more thing: BRIDGE of the time when the code should not be similar to my example above. What you should do is:
DataOutput ds=new DataOutputStream();
This immediately hides the fact that you are using a particular class in the template. This template should be able to perform all the operations necessary for your class. Later, if you want to replace ds with some other kind of stream, just changing this single line will fix it. If you used functions that are not available for DataOutput, other than DataOutputStream, the editor will easily know about it and inform you.
Bill K Oct 16 '08 at 16:26 2008-10-16 16:26
source share