Reinventing the wheel
April 24, 2024, 12:39:31 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home Help Members Tags Login Register  
  Show Posts
Pages: [1]
1  Archived (read-only) / News/Blog / Delphi coding style on: February 14, 2008, 08:31:54 AM
heh yeah that's true I'm not used to forums:)

as far as I'm concerned coding style may be ugly as long as I can easily read without wondering what going on:)
putting blank lines is another stupidty, I wrote some procedure which was 8 or 9 lines but after aplying their rules it doesn't fit on screen.
Nightmare!
2  Archived (read-only) / News/Blog / Delphi coding style on: February 12, 2008, 10:03:28 AM
hmm formating of this if condition got scrambled, but it's really hard to understand when you see it
3  Archived (read-only) / News/Blog / Hi on: February 12, 2008, 10:01:44 AM
I've seen many discussions about coding style, of course I have my own style but whenever I join new company I have to use their style.
It never was a problem for me until recently, I just can't get used to it. here's little sample:

  if (   (not FUsePrinter)
      or (    (FUsePrinter)
          and (dlgPrint.Execute)
          )
      ) then
  begin

also they put blank line before any keyword (for, while, begin, if, case...)
moreover they use:

if ... then
begin
...
end
else
begin
...
end;

everytime even with single line between begin/end.

I gouess I'll pass this article to my manager:)
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 23 queries.