`diff Swift C++`: Strange case of `enum`

So far the biggest difference that I've encountered between modern C++ use (read: C++11 with its standard library for generic containers and reference counting, exception safety guarantees and so on) and Swift is enum. enum in C++ is just an enumeration of values of different integral types. There is…

Read this article

`diff Swift C++`: generics vs templates

If you are familiar with C++ template programming you will know that it's bloody (pun not intended) awesome but has perhaps the steepest learning curve of any useful feature of a mainstream language. If you just use it through standard library with the likes of containers and smart pointers, you…

Read this article

`diff Swift C++`: passing arguments

In C++ you can pass arguments in 4 different ways: By value By pointer By reference By rvalue reference On top of that you often want to use const (or other modifiers) to signal that passed values or objects shouldn't (not cannot) be changed. On top of that you can…

Read this article

Swift is an awesome new language

I don't have a quirky-but-funny name for this post - I consider it too important to be clever about it. I was there in the room when Apple announced Swift but to be honest, apart from a big applause, I don't remember much as I was too tired from waiting…

Read this article

Nock nock nocking

Nock is an HTTP mocking library for Node. It allowed us to add HTTP mocking to our data collection unit tests well after the fact thus both significantly improving the speed of tests (crucial) and their reliability (you want to test your code, not your network connection). Since our tests…

Read this article

Nock nock McFly... Are you in there?

Last night I spent about 2 hours figuring out why my latest nock recorded test wasn't working. The amount of recorded data was large (35+ Mb) so it wasn't easy to just scan through it. Even MacVim, which I use for large text files, was sluggish1 as some of the…

Read this article