Pluck The Weeds In Your Code

Back in the spring, as I was walking back from the mailbox I noticed a tiny little green weed inside a purple bush. The bush hadn’t bloomed yet and was still bare from the winter. I briefly thought about going and pulling the weed, but I kept thinking:

  • I have 10,000 other things I need to do
  • It will still be their tomorrow
  • When the bush blooms it will block out the sun, and without sun it will die.

The third thought was partially right. The bush bloomed and the weed seemed to miraculously be gone. Out of sight, out of mind, they say.

Fast forward to the fall and I’m making my same trip to the mailbox and this time I see a huge green leaf coming out of the top of the bush. The little weed that would have taken 30 seconds to pull has now turned into a massive tree like structure.

I tug and I tug, it’s impossible to remove, the roots from both are all intertwined.

Now pretend that weed is a piece of nasty weird code that you come across in your app. Don’t be lazy, go improve it before it grows out of control.

This post is an excerpt from my Laravel News digest. A weekly email about the Laravel framework.

Building a jQuery Plugin with Gulp

With the current design of this site I wanted to have images in the content that stretch out beyond the container. I’ve seen this pattern used quite a bit recently and I think it gives a nice little visual “pop”. Implementation wise this is a pretty easy problem to solve by using negative margins. I decided I would use this as an opportunity to put together a little centerImg jQuery plugin and document my steps along the way. Continue reading “Building a jQuery Plugin with Gulp”

The latest Bootstrapped.fm podcast had myself and the rest of the UserScape developers on as guests.

In this episode, we sit down with the developers of Userscape; Eric Barnes, Chris Fidao, and Taylor Otwell, to talk about weird dreams, Eric’s, Chris’ and Taylor’s backgrounds and how they got started at Userscape, supporting open source, Forge, newsletters, servers, building Scribbleton for Linux, content-based products, deploying desktop apps, and TV shows

Dear Morning

I glance out my window, scared to open my blinds. I know that once I do I will see how beautiful you are, how I will get lost in the chirping and glimmering dew.

I’ll have to wait to enjoy you later when my writing is done. I only have a few paragraphs. It shouldn’t take long.

I sit down at my desk. Start up my computer with the best equipment you can buy. I open a new document, the wonderful clean slate.

All I see is a blinking cursor, nothing is coming to mind. I should brainstorm, maybe that will inspire.

The light bulb is far from me. I’m left sitting thinking about everything else. I start a mindmap, that quickly becomes a maze.

Oh morning maybe I should come visit you, and step away from this artificial light. It’s only a few paragraphs though, it shouldn’t take long.

I hear the kids awaken. My mind drifts to them. Now it’s breakfast and I can’t focus.

Daddy will you play with me? Not now sweetheart. I only have a few paragraphs, it shouldn’t take long.

I sit and I ponder. Maybe Twitter has inspiration? Maybe Google? I get tangled in a web.

The kids come running, Daddy it’s lunch!

I’m sorry morning, but I have wasted you.

Losing Weight and Feeling Great

The other night my wife and I were watching a photo slideshow and a picture of me on the beach from 2011 popped up. I was honestly amazed and couldn’t believe that’s really how big I was. I decided I would do a before and after picture and post it on instagram. I’m usually hesitant on what I share on social media because I always feel like people will take it the wrong way. I did this not for people to congratulate me but instead to hopefully inspire someone else. Just as I had been inspired.

I did have a few people ask me how I did it and decided to write this post to share my steps. Of course this could just say, eat better and exercise, but that helps no one. We all know that’s all it takes but changing those habits are hard, so hard! Hopefully this gives a little inspiration for you if you are wanting to slim down.

It all started at the beginning of 2012: I weighed 182lbs, I wasn’t sleeping well, I was snoring, and all around I just felt bad. But none of those made me really want to change my life. It wasn’t until I came across a post by Jack McDade which simplified it so much for me:

This is so much easier than following a diet plan. I literally can eat absolutely anything I want, as long as I don’t eat more than 2,200 calories a day.

I thought to myself yes I can do that. I downloaded the Lose It app just as he recommended and inserted my weight and desired goal. In the beginning I calculating everything. Literally! The first week was so disappointing I was eating and drinking so much junk that I was going over my calorie count before noon.

The second week I got serious, I cut out soft drinks completely and switched to coffee. I never drank coffee before but I needed, ok wanted, that caffeine. I still remember that week and how much cream and sugar I used. 🙂 But it wasn’t long until I just went to straight black coffee to save on those extra calories.

After a few more weeks I started seeing my weight go down and I wasn’t missing out on a lot of the food I really enjoy. This was the start of it all. I kept tracking calories and finally settled on a routine that fit me. Then I added exercise. It was summer by this point and I live very close to some excellent mountain bike trails. I kicked the dust off the bike and began riding at least 3 times a week. I love mountain biking and had forgotten how fun it is.

When the time changed, in the fall, I couldn’t go riding like I was so I had to find another excersise routine. I’ve done the gym before and meh I just can’t get inspired for that. I’m lazy and I know for a fact I wouldn’t commit. Instead I bought the Insanity workout DVD and did it all winter. I enjoyed not leaving the house and would do it immediatly after work every day. It just became a routine.

By the end of 2012 I was down to 144. By BMI standards this was right at the upper limit for my height and I was happy about that. As you know the more you lose the harder it gets. I’ve just kept the same plan since then and I’ve currently stabled out between 132 and 136. I’m no longer doing Insanity because it got boring. Now I still Mtn. bike, do some cardio kick boxing, and road riding with friends on the weekends.

Typically my daily weekday routine is Oatmeal or protein bar for breakfast, Special K cereal for lunch, and eggs for dinner. On the weekends I eat whatever. So no, I’m really eating healthy but it’s better than before. Then I do hard cardio at least three times a week.

In the end what worked for me was very small steps that eventually turned into a life style change. I’m sure this is the same for everyone but it’s so important to change forever. Not just for a month or two.