Ever wondered how a mocking framework like JMock or GoogleMock works?
We’ll look at how to write a very basic example, and find out that Java is more flexible than you may have thought.
Slides: A mini mocking framework.
Ever wondered how a mocking framework like JMock or GoogleMock works?
We’ll look at how to write a very basic example, and find out that Java is more flexible than you may have thought.
Slides: A mini mocking framework.
C++ template meta-programming sounds harder than it is.
So long as you can fight through some horrific syntax and understand recursive functions, you can write any algorithm you like and have it run at compile time in your C++ programs.
Slides: Simple Template Programming
Andrei Alexandrescu’s amazing book on using template meta-programming for really useful, cool stuff is: Modern C++ Design.
A quine is a program that prints out its own source code. I will describe five examples:
Slides: Five Quines
Arguably the greatest program ever written:
More info on quines:
Series: What is REST?, A Basic REST API, Paging, Search, Security, Token, OpenID.
We are implementing a REST API. Today, using OpenID to do our authentication, instead of doing it ourselves:
Slides: OpenID security in a REST API.
Code: poemtube on github.
Series: What is REST?, A Basic REST API, Paging, Search, Security, Token, OpenID.
We are implementing a REST API. Today, adding to the security we already have by making a security token that is stored in a cookie:
Slides: Token-based security in a REST API.
Code: poemtube on github.