Backbeat

Raheel Ahmad's blog. I work on apps and such at Sakun Labs. Also on TwitterGitHubEmail

Binder Architecture with RxSwift

by Raheel Ahmad

A quick example of The Binder Architecture with RxSwift. You would like to fetch a Feed of Podcasts from an API and display it in a view controller. The model: struct Podcast: Codable { let id: Int let title: String } struct Feed: Codable { let podcasts: [Podcast] } Here is the fetch part: enum APIError: Error { case serverError case parsingError } final class API { func fetchPodcasts() -> Observable<Feed> { return Observable.

Read more →

BARTUp - Learning Clojurescript

by Raheel Ahmad

I had been interested in doing a small project in React. The programming model is very desirable, and something that is difficult to replicate on platforms other than the Web. In the meantime, I had been doing small Clojure projects, and Lisp + functional programming is a nice package. Doing a ClojureScript frontend project was the way to go. So I built BART Up. It is a visualization of the real-time BART arrivals, and is a port of my iOS app.

Read more →

Repo Explorer

by Raheel Ahmad

I built a little tool I am calling Repo Explorer. This post describes why I built it, and what I learnt using it. (The code is on GitHub; to say that it is in Alpha stage, would be charitable.) Motivation Git repositories have always fascinated me: the underlying architecture is fascinating. There are products that use git as their object model for out-of-the-box collaboration and non-destructive editing. it is how developers — and teams, organizations & communities — work together.

Read more →

Things enjoyed | March 2017

by

Books The Calcutta Chromosome by Amitav Ghosh. I have enjoyed Ghosh’s writing in the same vein as Rohinton Mistry: erudite yet unpretentious, with an eye on telling the people’s story rather than serving the craft of literature. This book is quite well-written for being categorized in science fiction. The love of Calcutta seeps through all descriptions. It is atmospheric without being boring. The mystery is not a constant theme, but takes a backseat to the characters and subplots.

Read more →