Quote:Original post by zedzeek
me - create a pretty little girls' school
computer answers - what do u mean
Does the school look little?
Do the girls look little?
Do the girls look pretty?
Does the school look pretty?
me - the school looks pretty
computer answers - ok understood, anything else?
the whole thing has taken 10seconds now thats productivity, now try to code up this with c++/java/c#, who many minutes/hours would it take.
Just about the same, since we're assuming the back end is written already. That is:
new school< girl< little > , pretty >();
Where: school< For [, Attribute1 [, Attribute2 [, Attribute 3 ... ]]] >And: girl< [Attribue1 [, Attribue2 [, Attribue3 ... ]]] >
In this case, it's unambiguous from the start, and self documenting as to which I mean, whereas your computer aided english version would have to store something along the lines of:
Pretty little girls school [ where [the school is pretty] and [the girls are little] ]
Which is significantly longer and repetitious. We also left out another alternative - that is, pretty is often used as a qualifier - e.g. "There's a pretty small chance of rain tonight according to the forecast."
We could refactor along these lines for berevity:
School [ which is for girls [ whom are little ] , and is pretty ]
Or: school[ for girls[ little ] , pretty ]
Or: school< girls< little > , pretty >
...wait a second, we just arrived at the C++ version again :D