Normal Topic Program efficiency (Read 393 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Program efficiency
Feb 8th, 2006 at 5:23pm
Print Post Print Post  
My translated Q&A programs come over full of operations that are separated by semicolons.  Sesame seems to recognize and process these with no problem.  Nice!

Is there anything to be gained by going into the program editor and moving each semicolon-separated operation onto its own line?  Or is my desire to have "pretty" code just going to cost me time I could put to better use elsewhere?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Program efficiency
Reply #1 - Feb 8th, 2006 at 5:56pm
Print Post Print Post  
Putting the time into making your code clean is worth it. Not only does it benefit you but it also benefits anyone that may every have to read your code.

Putting all your code on one line makes the programing hard to read and even harder to debug. If there is an error the compiler will tell you want line it is on and what position. Since all the code is on one line, you are going to have a much harder time trying to find the error than if it was split up onto multiple lines.

Take the time and make the code clean. You'll thank yourself later.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Program efficiency
Reply #2 - Feb 8th, 2006 at 6:04pm
Print Post Print Post  
In Sesame, whitespace and linefeeds have no affect on code execution time at all. As Ray pointed out - use both liberally.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged