Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Maintenance (Score 2, Interesting) 839

Unlike some people, I feel using programming shorthand leads to increased maintenance.

Do you like seeing "public void setX()...public int getX().." a hundred thousand times to implicitly declare a bound property? Or would you rather see "published int x;" (to steal a line from C#) and be able to refer to x by field name rather than accessor method? I think simplifying code like this is a good idea. However, there is a dilemma created herein, as the example below will illustrate!

Thought Experiment #1
Assumption: Maintenance cost is directly correlated with program size.
Therefore: The more terse the language grammar, the easier programs written in the language are to maintain.
Thus: Perl.

At that moment, the programmer was enlightened.

Slashdot Top Deals

The universe seems neither benign nor hostile, merely indifferent. -- Sagan

Working...