Posted by Tony Marston on 07/30/06 08:35
"ImOk" <jon.macaroni@gmail.com> wrote in message
news:1154190814.373341.278970@b28g2000cwb.googlegroups.com...
>
> Richard Levasseur wrote:
>> ImOk wrote:
>> > Smalltalk is the only language I know that was designed around case
>> > sensitivity being used correctly and with a purpose. If you study their
>> > system (and it's not complicated) you can write better code in all the
>> > other languages.
>> >
>>
>> I'm not familar with Small talk (though i always hear great things
>> about it), but how does the case of identifiers affect things?
>
> It's 'Smalltalk' one word and lower case t :)
>
> The idea is that if you write the code in proper English you achieve a
> couple of things:
>
> 1) The only necessary comments are the description at the top of a
> method. Your English is self documenting the code.
>
> 2) Very short methods. If a method is longer than 1/2 of a screen this
> means you cannot visually see your logicall without jumping up and
> down. The language doesnt even have a case statement and the
> ifTrue:ifFalse: is actually a method similar to inline ifs we have in
> PHP.
>
> 3) You can write what could take you 5 lines of code on one line. You
> just read left to right including the math (there is no operator
> precedence).
>
> So it was necessary to have standards including case sensitivity to
> make the coding concise.
So again you are saying that it is a *programmer convention* and not a
*language requirement*. So who started this movement to enforce there
personal conventions on the rest of the community?
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|