Code tells a story, but is it the actual story the original author wanted to tell? A lot of time the original story gets lost, as new functionality gets bolted on, or key parts are extracted, leaving behind an incomplete picture. These repurposed objects might pass all the unit tests but have no actual meaning in the context of the original story. We will take a look at how we can more easily communicate the purpose of code to future developers, by introducing contracts and immutability, and using explicit context bound language, to give meaning to the code and keep the story whole.
2. Jeroen v.d. Gulik
• CTO / Co-Founder Isset (http://isset.nl)
• Builder of Artificial Stupidity
• @n0x13
• Likes Cats … a lot
3. Isset Internet Professionals
• We build custom internet technology based solutions
• We helped design and build several online video
platforms (Pathé Thuis, Videoland, NPO Plus)
• Currently focussing on video-transcoder.com
• We like a challenge so if you have interesting problems to
solve, come and talk to me
• Still Hiring
62. Objects should only expose
methods relevant to it's
current state
- George Bush
63.
64.
65. Objects should …
• Be responsible for their own internal state
• Have specific behaviour towards its responsibility
• Broadcast their state
• Only care about the state it’s currently in.