Javascript, I hardly knew ya

After over a decade working in web development I can honestly say I suck at Javascript.  I’ve always been more focused on the backend and so I’ve never put much effort into improving beyond the basics.  I used prototype back in the day before switching to jQuery at some point in time and I never really moved past that point in time for Javascript.  For me Javascript never really moved on from jQuery 2.0.  I never really had any issues

Continue Reading

Optimization for the fingers

As a programmer I spend a lot of time typing. But not only do I spend a lot of time typing I do it frequently using keys that most users rarely if ever type. All manner of brackets, and slashes, the whole row of characters above the numbers across the top of the keyboard, colons and semi-colons, etc. Basically I’m all over the place on the keyboard. To make matters worse I have really bad form with typing. My style

Continue Reading

content_for in Phoenix

Disclaimer: I’m very new at both Elixir and Phoenix so the below might be horrible.  If it is let me know in the comments. Problem: I need content_for in Phoenix Solution: render_existing For this example we’ll be using the page controller and the app.html.eex layout to add breadcrumbs to the top of the page. 1. In app.html.eex where you want the breadcrumbs add <%= raw render_existing view_module(@conn), "breadcrumbs.html", assigns %> 2. In web/views/page_view.ex add the following def render("breadcrumbs.html", assigns) do

Continue Reading

Site Footer

Sliding Sidebar

Other Things