Tango compatability with Phobos

Bruno Medeiros brunodomedeiros+spam at com.gmail
Mon Oct 15 14:47:20 PDT 2007


Daniel Keep wrote:
> Yigal Chripun wrote:
>> ...
>> Until we reach a merged, agreed by all one API, there is no standard
>> library for D in my mind.
> 
> "agreed by all one API"  Yeah, I don't think that's gonna happen.  Ever.
>  You're asking programmers to unilaterally agree on a large, complex topic.
> 
> These are the people who continually rewrite stuff because of "not
> invented here" or "don't like the capitalisation on the identifiers" or
> "because I felt like it" syndromes... :P
> 
>> ...
>>
>> P.S
>> i'd prefer either be able to import Cout and just have two functions
>> like print/println with formatting, or changing Cout to out (no upper
>> case letters, and without C-style shortcut names)
>> I prefer more readable java style with camel case full names rather than
>> c/c++ 3 letter abbreviations like ptr instead of pointer, buf instead of
>> buffer and etc.. (we all know that we read code a lot more than we write
>> it, so it's better to write longerIdentifierNames which would be easier
>> to read and understand later)
> 
> See, and I prefer the terseness of C.  One thing that always made me
> want to throw the computer out the window when programming Java was the
> fact that every damn statement took, at minimum, three lines to do
> anything constructive just because all the identifiers were so bloody long.
> 
> I want to write code.  Not a dissertation.  When you've got names that
> long, you just end up with this dense, unreadable mess.  Besides, if the
> names are a little bit cryptic, people will actually take the time to
> carefully read the code to make sure they understand it instead of
> assuming they know what it means, which is *clearly* better.
> 
> Give me function names I can type in under three seconds and some decent
> comments any day.
> 

Use code auto-completion. Code completion is on average even faster than 
typing *terse* function names, unless the vast majority of your function 
names has only 3-4 characters or less...
If you don't like full blown IDEs, code completion should be available 
in traditional text editors (such as Vim or Emacs) as well (I'm talking 
about programming languages in general, not about D in particular).
And verbose names are not "unreadable". Quite the contrary, they are 
more readable than terse and (quote) "cryptic" names. That's why their 
called cryptic...

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list