This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| stmt can have id, comment and fact attached | |
| function can have same, but is a collection of stmts | |
| program can have same, but is a collection of functions | |
| built into the language def is a list creator | |
| also built in is a hierarchical fact analyzer, ie, all facts | |
| presented at a collection level are taken to represent reality | |
| at that level. higher levels areexpected to have a "higher" understanding and therefore not applicable; similarly lower | |
| list-of(XXX) := <list containing objects of type XXX> |
| /** | |
| * If applicable, deducts the rewards amount from the current price, | |
| * rewards points on the booking and returns the charge amount for the user's card. | |
| */ | |
| public CCAmt doRewards(String pos, CCAmt currentCCAmt, | |
| rewardsInfo rewardsInfo, | |
| String PNR, | |
| XFactor xFactor, | |
| boolean isSpecialInventory, | |
| Money sellRateForSpecialInventory |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer