[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Terse versus Verbose?

  • From: Roger L Costello <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 15 Jun 2022 11:23:33 +0000

Terse versus Verbose?

Hi Folks,

 

Question #1: Which of the following is easiest to read and quickly grasp what it’s saying?

 

(a) 2 + 3

(b) two plus three

(c) <expression>
         <left_operand>2</left_operand>
        <operator>+</operator>
        <right_operand>3</right_operand>
     </expression>

 

Answer #1: Clearly (a) is easiest to read and quickly grasp what it’s saying.

 

 

Question #2: Of the above forms, which is quickest, easiest, and cheapest to implement an evaluator?

 

Answer #2: Clearly (c) is quickest, easiest, and cheapest to implement an evaluator.

 

 

Question #3: Suppose an evaluator is implemented for each of the above forms. Which evaluator runs fastest?

 

Answer #3: Likely they all run at roughly the same speed.

 

 

Question #4: Which of the following is more expensive and whose expense rises yearly?

 

(d) Human

(e) Machine

 

Answer #4: Clearly (d) is more expensive and whose expense rises yearly.

 

 

Question #5: How often would we need to incur the expense of implementing an evaluator?

 

Answer #5: Implementing an evaluator is a one-time investment.

 

 

Question #6: How often would we need to incur the expense of reading and understanding an expression?

 

Answer #6: The expense of reading and understanding is large and grows larger over time.

 

 

Conclusion: Write terse, easy-to-read, easy-to-grasp expressions.

 

Do you agree?

 

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.