Re: What is Code Density?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> <Excuse my impatience; 23 minutes and not yet showing...>
> 
> At least three of us have been marked down on this (minor point), but 
> what, precisely, is it? I simply don't know.
> 
> Do you mean
> 
> 	i+=1
> vs
> 	i += 1
> 
> Or do you mean
> 
> procedure myproc()
> 	for i=1 to 10 do
> 		something()
> 	end for
> end procedure
> 
> vs
> 
> procedure myproc()
> 
> 	for i=1 to 10 do
> 
> 		something()
> 
> 	end for
> 
> end procedure
> 
> or something else???
> 
> Regards,
> Pete
> PS I hope it is not the latter since I hate that: you simply can't fit
> as much code on screen with needless blank lines blink)

Generally speaking its the first example. The lack of whitespace around
operators and identifiers makes it harder for people to read. Its the same
reason why in most languages we put spaces around words. I read Thai and
it does not have any spaces between words, and that was the hardest thing
about learn to read Thai. 

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu