Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Wednesday, January 10, 2018
The Kiczales HtDF Way
1. Signature, purpose, stub.
2. Define examples, wrap each in check-expect.
3. Template and inventory.
4. Code function and body.
5. Test and debug till done.
signature : type of each arg, separated by spaces, followed by -> type of result.
purpose - a meaningful one line statement.
stub : syntactically complete function definition that produces a value of the right ype. This makes it possible to run examples even before the function design is complete..
You ain't got UBC under your thumbnail for nothin bro.
Labels:
coding,
edx,
htdf,
kiczales,
programming,
programming defensively,
ubc
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment