Month: April 2014

  • Token-based security in a REST API

    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 R…

  • How to write Boost.Python type converters

    Boost.Python [1] makes it possible to write C++ that “feels” like Python. The library is powerful and sometimes subtle. This is as compared with the Python C API, where the experience is very far removed from writing Python code.

    Part of making C++ feel more like Python is allowing …

  • How to write Boost.Python type converters

    Boost.Python [1] makes it possible to write C++ that “feels” like Python. The library is powerful and sometimes subtle. This is as compared with the Python C API, where the experience is very far removed from writing Python code.

    Part of making C++ feel more like Python is allowing …

  • Avoid mocks by refactoring to functional

    At this week’s ACCU Conference I went to an excellent talk by Sven Rosvall entitled “Unit Testing Beyond Mock Objects”. The talk covered the newer Java and C# unit testing frameworks that allow inserting mock objects even where legacy code is using som…

  • Speaking: Words in Code

    The slides from my ACCU 2014 talk, Words in Code, are available on SlideShare, from http://www.slideshare.net/petegoodliffe/words-in-code. Here’s the synopsis: As software developers we do not just write code. We write many, many words too. We write …

  • Speaking: Words in Code

    The slides from my ACCU 2014 talk, Words in Code, are available on SlideShare, from http://www.slideshare.net/petegoodliffe/words-in-code. Here’s the synopsis: As software developers we do not just write code. We write many, many words too. We write …

  • Top four JavaZone 2013 talk – The Unreasonable Effectiveness of Dynamic Typing

    I’m very happy to see that my talk on The Unreasonable Effectiveness of Dynamic Typing was rated fourth of all the talks in the show. Thanks to everyone who attended and voted.

  • Top four JavaZone 2013 talk – The Unreasonable Effectiveness of Dynamic Typing

    I’m very happy to see that my talk on The Unreasonable Effectiveness of Dynamic Typing was rated fourth of all the talks in the show. Thanks to everyone who attended and voted.

  • Using the final keyword in interface method parameters does nothing

    Consider the following Java code: class FinalInInterface { private static interface WithFinal { public void run( final int x ); } private static class WithoutFinal implements WithFinal { public void run( int x ) …