Outline numbering for an object tree

By Josh Sherman
2 min read
development
javascript

Last week I had talked about a layout dilemma that my buddy Justin was having. This reminded me of an issue that programming challenge he hit me with a few months prior. The challenge was to take an object tree and generate the proper outline numbering for it. The object […]

Layout with fixed header and independently scrolling columns

By Josh Sherman
2 min read
development
css

My buddy Justin introduced me to flexbox a while back. Admittedly, I pushed off learning about it because it didn’t seem like the support was there at the time. While researching things for a redesign of SceneKids.com recently, I saw support for flexbox had improved dramatically. I’m quite fortunate that […]

Working with Dynamic variable names a/k/a Variable variables in PHP

By Josh Sherman
1 min read
development
php

Variable variables are one of my favorite things about PHP. PHP allows you to use a variable to reference another variable. This comes in exceptionally handy when you need to create variable names dynamically: $variable = 'This is my variable'; $var = 'variable'; echo $$var; Let’s say you have you […]

Open Challenge: Learn Lisp with Me

By Josh Sherman
2 min read
development
autodidacticism

Starting on May 1st, 2015, I am setting out to learn Lisp because I feel like I’m missing out by not knowing it. I see it come up pretty regularly, it’s stood the test of time and there are a plethora of dialects. I am going to target Common Lisp […]

Get all defined variables in PHP

By Josh Sherman
1 min read
development
php

I’ve never actually used this function, but could definitely see using it to help profile a system and/or to help identify defined but unused variables. To obtain an array of all of the defined variables you would: $defined = get_defined_vars(); The function returns a multi-dimensional array of all of the […]