I’ve been programming for 18 years now, doing commercial work for the last 6, over the years I’ve been exposed to different ideas and experiences that have constantly affect the way I write code, what matters and how I go about working for my clients. I’d like to share some insights in what is my current approach to few common topics.

Read on →

Download this article as Playground for XCode 6 to be able to experiment with calculations.

Many people think getting fit is hard, the fitness industry is full of myths and unnecessary complications.

Doesn’t matter if your goal is to lose weight or gain it, what matter is Physics and law of energy:

If you burn more calories than you eat you will lose weight

Same goes for bulking, eat more and you gain weight.

Two questions arise:

  1. how to estimate our caloric needs?
  2. how fast should we lose or gain weight?

It’s easy enough to explain both, but since I’m a programmer and I really like Swift playgrounds, let’s use some swift to do express math for us.

Read on →

Use it or not, KVO has been integral part of Cocoa programming, yet if you decide to use only native Swift code you are loosing ability to observe other object properties.

There is a way to add Observable properties back to your own codebase with generics in a way they won’t have ripple effect on remaining code, it’s actually pretty cool.

Read on →

I believe in boy scout rule: ‘Always leave the campground cleaner than you found it.’, that’s why I constantly refactor my code so it’s clean and tidy.

Readability is one of my main concerns when it comes to programming quality. I’d like to share few less-known refactoring tricks I use to simplify code.

Read on →