Offline coding challenge - Array-like struct

I visited Moscow last weekend with my girlfriend. This was my first trip to Russia, and it was a really interesting experience. Especially our visit to the Museum of Cosmonautics, which I’m a big fan of. Anyway, I decided to spend the time on the plane back to Prague by learning and relearning some basics in computer science – data structures and algorithms.

While reading about arrays, I remembered one article I read a while back about Swift Array implementation (this one). I was offline on the plane, and I couldn’t read the article. I had two hours left of the flight and no Internet connection, so I decided to try to implement it by myself.

Challenge accepted!

Continue reading ....

Another world of Notifications - Darwin Notifications

As an iOS developer, you are probably familiar with the concept of notifications and the way it’s represented by NSNotification and NSNotificationCenter in CocoaTouch. These objects are part of the Foundation framework. Because Foundation is built on top of the CoreFoundation framework, it’s not surprising that there is a CF “version” of NSNotificationCenter called CFNotificationCenter. It can be super fun to use it, because it offers you some cool additional functionality.

Darvin approved!

Continue reading ....

Playing with properties - 3 facts I didn't know

I experienced a very interesting bug in our code last week. Our unit tests from time to time froze. It only happened when we ran some of our test groups separately. When we ran the full test set, everything was OK. We have a lot of untestable legacy code in the project – singletons, missing dependency injections, weird code coupling.

Help me StackOverflow ...

Continue reading ....

Flaky iOS System Location - There and Back again

A very strange thing started happening in our office over the last few weeks. Several iPhones during the day randomly traveled to London and back to Prague. At least, that’s what the system location info was saying.

London or Prague? London or Prague?

Continue reading ....

Protocol based Swift app analytics - Trackable

I don’t know a single programmer who likes implementing an analytics tracking service into a project. It’s a boring manual job you usually do as the last thing before the app store release. Why is it such a pain?

Can't someone else do it?

Continue reading ....

SwiftSummit SF 2015

I’m sitting on a plane on my way back to Prague from San Francisco, where I spent the last three weeks. It was my third visit to the Bay Area in the past 12 months, and I have to say this was the best trip! Though it wasn’t the main purpose of my trip, I managed to attend SwiftSummit 2015 (thank you @strvcom).

Here are a few notes about the talks, and things that left a deep impression on me. They are still resonating inside me very strongly, even though the conference was two weeks ago. I will be adding links to slides and videos of the talks as they are published.

Continue reading ....

Customizing UIKit appearance using protocols

Prologue

I remeber exactly the very moment when I started hating storyboards. It was back in 2013, and I had to solve my first storyboard merge conflict. I didn’t succeed. I convinced myself that storyboards are tools for beginners because “real programmers write code.” We even had it written in our iOS coding guidelines at STRV: “unless the app is super simple, try to avoid using storyboards.”

Continue reading ....

MinionGenerator #Banana

Since the day I read this article and saw Natasha was using Minions for placeholder data, I started to do it, too. It’s hilarious to see these funny creatures on the places where users, clients or even bank officers are supposed to be.

Kevin Loan Officer

But how you get a Minion when you need him? Oh yeah, you need a Minion generator!

Continue reading ....