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

Re: Michael Kay: simple designs make easy things easier,diffic

  • From: Tei <oscar.vives@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Tue, 12 Nov 2013 15:30:32 +0100

Re:  Michael Kay: simple designs make easy things easier
On 12 November 2013 13:36, Costello, Roger L. <costello@mitre.org> wrote:
> Michael Kay wrote:
>
>> I think they made it simple deliberately,
>> knowing full well that when you keep a
>> design simple, you make easy things easier,
>> and difficult things more difficult.
>
> That is a fascinating statement.
>
> I am very interested in seeing concrete examples of a simple design making difficult things more difficult.
>
> Does anyone have examples of this please?
>
> /Roger

function parameters?

//Easy (prototype level)
function  create_user(  login, password ) { .... }

// v1.0
function  create_user(  login, password,  name, profile ) { .... }


// v3.0
function  create_user(  login, password,  name, profile,  system,
machine,  lang, is_admin, is_sysop,  listObservers, accesers,
multiplayRoles ) { .... }

// v9.0
* insert monstruosity here *

at some point, adding more parameters make the function unusable,
better use some structure, oop, or any other solution

create(  {  name: port.Name, profile: port.defaultProfile, lang: "en_EN" } );
create(  {  login: "reserver", is_systemcreated: true } );



Bonus reference:
"databases" made of hashes key / value, that have grown to gigabytes of data.
phone = ["aud_aux_DOCTOR_phone_" . id_doctor ]

* sounds of fear *


[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.