Thu, 23 Jun 2011

Little things Delphi gets right

Having spent my entire working time in the last decade coding in C, C++, Objective C and Delphi (in the broadest sense - Objective Pascal), I can only say that this essay is spot on. It is vastly easier for any coder, at any skill level, to write readable and secure code in Pascal than in any dialect of C.

He makes several good point on syntax, too. How many C programmers have been bitten at one time or another by making an assignment in an if statement without the compiler saying a word? It's also true about hassle free linking - I have code where the main program is in Pascal and several routines were written in C. It was simple to accomplish this. On the other hand, trying to get a C program to link in a Pascal lib or object file can be like pulling teeth.

So for those of you who still labor under the delusion that Pascal is a dead language, washed away by the superior tides of C, read this and weep. Then fire up Delphi or Lazarus and write some clean, secure code for a change...

For those who haven’t seen it yet, due to popular demand, the StackOverflow people created a new site called programmers.stackexchange.com, a site for the more subjective questions that StackOverflow isn’t really designed for. Someone recently set up a poll: What’s your favorite programming language. You can probably guess what my answer was.

(link) [Turbu Tech]

/Technology | 0 writebacks | permanent link


comment...

 
Notes: If you put a <mailto:> link in the URL field your address will not be mangled: this could be a bad idea as your email address could be easily harvested by bots designed for SPAM. The comments field should now format correctly for line feeds and carriage returns: when you hit the 'Enter' or 'Return' keys in your comment it should break to a new line. The text should wrap cleanly. Please let me know if it doesn't. No HTML tags will pass through - entering links seems to be the main cause of comment SPAM. Also, please be sure that Javascript is enabled in your browser before attempting to post a writeback. Sorry for any inconvenience, but this really helps cut down on the amount of comment SPAM I have to deal with.
 
 Name:
 URL:(optional)
 Title: (optional)
 Comments:  
Save my Name and URL/Email for next time