Daniel J Sebald wrote:
> Søren Hauberg wrote:
>> Yeah, the names are probably too general (I believe we have a 'hilbert'
>> function already that generates a Hilbert matrix). Perhaps
>> 'hilbert_curve' or the long-and-obvious name
>> 'hilbert_space_filling_curve'?
> 
> Long names aren't good.  Go for short condensations.  Aim for no
 > underscores if possible.  For example, hilfil.m gets the point
 > across and has an aliteration memory aid.

MATLAB was designed in an era when there were only a few hundred 
identifiers to distinguish.  Memorizing that "hilfil" means "hilbert 
space filling curve" was a small price to pay for saving some keystrokes 
on that clunky terminal with no cut+paste.

By contrast, modern namespaces contain hundreds of thousands of names. 
People today spend a lot more time reading code than typing it.  Most 
programs are too big for any one person to have read every source file.

We can't change the standard function names established by MATLAB, but 
if we define new functions, I don't see what's wrong with intuitive names.

Cheers,
-Pete

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to