@property - take it behind the woodshed and shoot it?

Dmitry Olshansky dmitry.olsh at gmail.com
Sat Jan 26 01:10:26 PST 2013


26-Jan-2013 12:57, deadalnix пишет:
> On Saturday, 26 January 2013 at 08:29:40 UTC, Dmitry Olshansky wrote:
>> Automated tooling is admitting a defeat if we talk about expressive
>> languages. Java was designed with automatic code manipulation in mind
>> and even with todays proliferation of generators it's a pain to work
>> with.
>>
>> TL;DR code is written once and read many times.
>
> Using tooling is admitting defeat ? That is very misplaced pride (and
> not even an argument).
>

There is no pride. Requiring a separate tool to generate code even in 
simple cases is a defeat. Using tools is fine to refactor, navigate etc. 
but not to generate "boilerplate" as in the end it still has to be read, 
modified and fitted with the rest of code. Boilerplate generally has no 
place in code at all if we can help it.

> And if you think that verbose code is less readable, think twice, or
> follow both links :
> http://code.jquery.com/jquery.js
> http://code.jquery.com/jquery.min.js
>
> No doubt the less verbose one is more readable !

Obfuscation/minification and boilerplate is not the same. And I bet the 
second example is the same exact code so you missed the point completely.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list