RE: Eu OpenSource Vision

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

tone.skoda at siol.net wrote:
> 
>   ----- Original Message ----- 
>   From: Martin Stachon 
>   To: EUforum 
>   Sent: Wednesday, September 26, 2001 6:29 PM
>   Subject: Eu OpenSource Vision
> 
> 
>   2) Unite programing style and naming and formatting conventions.
>       I would suggest the standart RDS style, expcept that tabs would
>       be used for formatting instead of spaces. Optionally create a tool,
>       similiar to C "indent" to automatically reformat sources.
> I was reading a lot about programming style last days, and I can explain 
> to you why having spaces instead of tabs for indentation is better:
> 
>  
> if (one_v_do = 0) then -- No to_do pixel anymore.
>                        -- We've looped all pixels of object.
>   ..
> end if
> In this example, you of course tabbed second comment so it will be 
> aligned with first comment. But when you view this file in other editor 
> which has different tab size, or if you change tab size in your editor, 
> it will be messed up. Second comment line will either be very to the 
> right or very to the left.
> 

Yes, for this indenting are spaces better, but for
indenting after "if .. then" or "for .. do" are better
tabs

    Martin

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

Search



Quick Links

User menu

Not signed in.

Misc Menu