Chad’s Blog

Ramblings on code

Latest

The Great Shift — ASP.NET to Rails

Several months ago I started as the CTO of CompanyCam, a location based photo management solution for contractors. The founder hired a…local dev shop to create a web, iOS, and Android app, this infrastructure became my new working code base. I am a Ruby advocate and so I began looking for ways to get this to the more nimble and open Ruby ecosystem. ¶ In this post I will cover how I migrated our API from a .NET backend to a Rails backend, keeping functionality and using the existing SQL Server Database. ¶ Some ASP.NET fans may be screaming at their Nokia Lumia’s right now “why would you ever move from ASP.NET
Go to the profile of Chad Wilken
Chad WilkenOct 29, 2015

Postgres JSON Column Type in Rails 4

In recent days I have been starting a new project using Rails of course and hit a unique issue. I was needing to store arbitrary data with…each record, that would likely be different for each record. I thought about using MongoDB for this project but didn’t feel that it was necessary since Postgres is always adding awesome new features. ¶ At first glance ,and Google search, I thought about using the hstore extension. However, this stores all values as strings and I needed to store all different types of data. Enter JSON, we all love JSON so why not store it in the database?
Go to the profile of Chad Wilken
Chad WilkenOct 29, 2015

Getting Sexy with Core Data

Recently I was tasked with updating the way we we’re using Core Data in our application. The app was using the legacy concurrency type of…NSConfinementConcurrencyType. When you use this to initialize your NSManagedObjectContext you are guaranteeing that you will access this context from the correct thread, if you do not, sorry Charlie it’s a crash. Some people still use this method and in fact if you call [[NSManagedObjectContext alloc] init], this is the default concurrency type selected. You may have a single threaded application or do very minimal work on a background thread, and if so, then this could work for you.
Go to the profile of Chad Wilken
Chad WilkenOct 29, 2015
More stories →About Chad’s Blog