ozkar's blog

Recent Posts

  • June 04, 2018

    tools

    Ahh toolingWe developer loves tooling, after all we work all day on editors, compilers, interpreters, version control systems, just to name a few of the tools, that we use every day.tools.ozkar.orgSo, i created a tools website, why? you ask.well, ...

  • May 14, 2018

    A look at the rails migration versioning implementation

    So i took a hiatus for a while, and didnt used rails for a couple of years.Now that i am back building a product with rails, i have noticed ActiveRecord::Migration is verioned and you need to inherit from a versioned class ActiveRecord::Migration[...

  • February 06, 2018

    Using go-bindata to embed views into the binary

    This is a quick tutorial showing how to use go-bindata to embed views into your binary so your appplication deployment is just that binary.Normal Approach:In a normal application we read the views using the html/template package, like so:t, _ := t...

  • August 12, 2017

    Always add context to your logs

    Its a good rule of thumb to add context to your logs, if you dont believe lets see a simple case. Broken Logs:Imagine you have a system in which you run code asynchronously on diferent places.You can have a webserver running, a page, if something...

  • August 03, 2017

    schema.rb

    Introducing schema.rbWhat is schema.rb?A simple tool to handle schema migrations.Why?Since ive started to use more go, and dont really want to go for a full fledged go solution for ORM and databases.I decided the best course of action is to simply...