Upgrade your brain virtual machine

Posted on

All of our brains use models to experience everyday life. An easy example is seeing the egg splat on the floor in your head right as it rolls off the table which somehow invokes the physics collider simulator you have going on up there. Everyone we interact with has the person base class with some properties about their gender, age, etc. which defines all the basic assumptions (and stereotypes we’ve picked up) about how the person will act.… Read more »

Leaflet Zip Code Map Part 2

Leaflet Zip Code Map Part 1 In this part of the tutorial we’ll be focusing on what you need to do to get a front end set up to serve up the map and consume the wonderful zip code data. In case you missed it, here’s what we’re going for: HTML The html required on the page is almost as basic as it gets since most stuff is loaded in dynamically.… Read more »

Leaflet Zip Code Map Part 1

This is the first part of a two part series about how to set up leaflet maps to show zipcode areas with some extra data coming along for the ride allowing us to color the zip code areas based on demographics or any other reporting data. I did this using an ASP.NET MVC site and Web API with a Sql Server database. A database is required for this approach but there’s nothing stopping you from reimplementing this in your backend architecture of choice.… Read more »

Bucking the Naming Trend

Posted on

There are only two hard things in Computer Science: cache invalidation and naming things. – Phil Karlton I’m sure many of you have heard this quote before but I want to explore one reason why it’s so true: consistency. Programmers are creatures of habit, ritual and maybe sacrifice sometimes too. It’s impossible for a good programmer to see a list of variables/tables/functions/whatevers like this: calculate_death_star_trajectory close_exhaust_port get_cup_of_tea and then add to the list… Read more »

Infini-woes

Posted on

Inifiniscroll is great. When used properly of course. Google images is the poster child for this and it works so great because they basically have infinite images. The pattern breaks down when it’s forced into places where you have less than infinite content. Much less than infinite content. I’ve seen a few examples around the web where content is just continuously loaded even if it’s not new content. Take for example the ghost theme repository:… Read more »