KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Three "L"s to a better programming technique: Limit Line Length
PRODUCT: 4D | VERSION: 12.1 | PLATFORM: Mac & Win
Published On: April 21, 2011

Our eyes are more comfortable when reading tall and narrow columns of text. This is precisely the reason why newspaper articles look like this:



It is a good practice to avoid writing horizontally long lines of code like in the example below:



Using the "Entry on several lines" feature (described in the Writing a method section of the v12 Design Reference) of 4D v12 the code becomes far easier to read and eliminates the need for scanning horizontally to read all the declared variables and arguments on the method calls:



Commented by Robert Bilyeu on April 28, 2011 at 10:31 AM
Finally, a way to make those "Selection to Array" statements readable!