Skip to main content

Life Experiences

The last several months have given me an opportunity to reflect on the last year since relocating to Seattle, and the experiences that have arisen as a result. All I can say is that despite the obvious feelings of missing family, the life moments that led to my relocating helped shape my world and social view in profoundly positive ways.

I have far more meaningful relationships, and more of them; ironically largely out of being more selfish and worrying less about how others feel. My relationship with my family is deeper and stronger, and strangely we speak more now than when I lived minutes apart.

This year I’ve been able to experience more of the world than ever before, and have grown to truly enjoy the diversity of landscapes, people, and cultures even within the regions of the United States.

Most recently, my wife and I spent a week in Alaska/Canada experiencing more of the Pacific Northwest, and I am forever in awe.

Life is good!

A Car With No Name

My kids have always named everything. Our cars, TVs, you name it. As it’s getting closer to the likelihood of owning a Model 3, I am beginning to wonder; what should we name it.

As our Buick is named Bjorn, and our RAM 1500 Ragnar, my personal vote is Thor.

 

Basic Prototype App with Symfony3

The objective of this is to build a simple route, and controller that handles this entire “application.”

The components of this simple prototype are essentially a bunch of HTML pages with interaction hard-coded or baked into the twig templates. So the objective here is to build the structure such that building a new template is all that is required and the application will then pick it up.

Assumptions

  1. Separately a custom controller handles exception catching and 404 errors.
  2. Everything, including authentication/authorization can be “faked”
    1. Presumably you’d hide this behind HTTP-Basic or keep local only.

The Route

The Controller

How it Works

Now all you need to do is build your filenames to match and you can create template files that work out of the box.

Now your routes map to filenames, which for the purposes of a simple static HTML prototype makes things very easy for any designer or developer to add and work with:

Route (path) Template filename
/jake/home DemoBundle\Resources\views\Jake\home.html.twig
/auth/forgot-password DemoBundle\Resources\views\Auth\forgot-password.html.twig
/jake/dashboard DemoBundle\Resources\views\Jake\dashboard.html.twig