About Stig Brautaset

Stig is a senior developer at NAP. He is also a part-time free software author. He is probably best known in the iOS world as the author of SBJson (aka json-framework). @stigbra elsewhere.
Performance

Maximising Cache Hit Rates for REST APIs

Lovell previously mentioned improved cache time relevancy in his post about how we scaled the NET-A-PORTER website. My team is responsible for the product API used during the sale and currently being adopted by other applications across the organisation. I thought I’d reveal a few techniques we’ve used to maximise our cache hit rate.

Continue reading

JSON

SBJson4: Don’t make me wait! (… for my content)

Last week, I went to give a talk about SBJson (an Objective-C library
for JSON parsing and writing) to the
London iOS Developer Group. They
meet on the first Wednesday of every month at the Regent Street Apple
store for technical talks, followed usually by a social event at a
nearby pub. In my talk, I tried to explain why I think SBJson is still
relevant—even after Apple added native JSON support to iOS 5
in 2011.

Continue reading

Command Line

Regular Expression Basics (in a Unix Shell)

Regular expressions are a powerful concept used for searching, filtering, and manipulating text. This article aims to uncover the basics of using regular expressions to extract information from files while working in a Unix shell. To this end, this post covers the basics of working with grep, sed & awk.

Of course, most high-level programming languages have native support for regular expressions too, including Perl, Python, Ruby, Java, JavaScript, PHP etc. Sometimes it can be quicker to do some quick tests on a throw-away file at a shell prompt to test a theory than firing up an environment to create a test, so it might also be useful for developers.

Continue reading

Command Line

Shell Quickstart

This year we are running an IT Graduate program here at Net-a-Porter. The four graduates are doing three-month rotations with various teams, getting experience with many aspects of our business. I volunteered to give them a quick introduction to shell programming and regular expressions. Killing two birds with one stone, I have adapted the shell programming part of that session into this blog post — the regular expressions part of the workshop will be the topic of a future post.

Continue reading