Coding with Commas

I can’t remember for the life of me where I learning this trick from, but I thought I’d share it nonetheless. I’ve been using it quite frequently recently so it’s at the forefront of my thoughts.

Take this block of jQuery code as an example:

$(document).ready(function(){
	$('#sortable').sortable({
		placeholder: 'ui-state-highlight',
		delay: 250,
		axis: 'y',
		handle: 'a.move'
	});
});

This particular function inside of a jQuery extension allows for multiple parameters/options to be passed to the function to extend the functionality in the browser. There are quite a few possible parameters, but here I’ve also used 4.

One of the quickest ways for me to add a new line sometimes is to simply copy a line from above and change the property and value. But I’ve run into a few situations where a stray comma left on the last line caused the entire function to break. (Thanks a lot Internet Exploder.) Also, did I miss a comma? It’s hard to tell by just glancing over the lines.

So what I’ve been doing is placing the comma at the front of the line. To me, it actually is a little bit easier to read and when I copy down a line I don’t have to worry about stray characters breaking the script.

$(document).ready(function(){
	$('#sortable').sortable({
		placeholder: 'ui-state-highlight'
		, delay: 250
		, axis: 'y'
		, handle: 'a.move'
	});
});

What do you think? Do you like the commas at the beginning or the end of the line?

Pull-up 1

I’m not exactly sure where it came from, but Squat 20 is a little inside joke that we have going at work. It’s mostly with the Engineering Team, but the rest of us get in on it from time to time.

Now when I say we get in on it, we actually do squats together as a company. Not the entire company, but I can remember a few times we had 10-15 people in our circle. Some of us teaching others the proper squat form, but nonetheless the group doing 20 squats or so in unison.

So when the VP of Engineering hung a pull-up from the door frame of the engineer’s room, I jokingly created Pull-up 1. I figured that the difficulty of 20 squats was somewhat comparable to the difficulty of 1 pull-up.

I didn’t know how much it would catch on.

Every day at 3:30pm a small group of us head to the engineering room to do some pull-ups. There are even 3 female co-workers that have been giving it their all, every workday for the past 2 weeks, to be able to do one.

The other half of the pull-up bar story, though I don’t think it was influenced by me, is that the engineers have instituted a rule that if you want to walk into the room, you have to pay a toll — do 1 pull-up. I have also instituted the same rule for myself at home. I have the same pull-up bar at home that I hung on the door to my bedroom. Anytime I walk upstairs, I do as many pull-ups as I can.

In the last 3 weeks, I’ve almost tripled the number of pull-ups I can do — 5 to 13.

How often do you do pull-ups? How many can you do?

PicFrame + Instagram FTW

I’ve had my iPhone for a quite a while now and absolutely love it. One particular combination of applications that I find great is that of Instagram and PicFrame.

Instagram is a “fast, beautiful and fun way to share your life with friends through a series of pictures.” Combining that with PicFrame, which helps you “combine multiple photos into amazing looking frames and share them with your friends and family,” gives you some really nice photo and sharing capabilities without much effort.

Both applications allow for adding filters or patterns to the photos and both want you to share the photos through whatever social networking sites they’ve integrated with — Facebook, Twitter, Flickr, Tumblr, etc.

Here’s some of the photos I’ve shared using the apps:

Christmas Coke Making dinner

On the road I'm Cobalt and I'm cute

What applications do you use to take pictures? Am I missing out on another stellar combination?

Renter Beware

I had an interesting conversation with our landlord the other night. It has sparked a lot of drama and a bit of inner anxiety.

In the middle of our lease, our rent is going up.

When he first told me that we needed to start sending more money starting in January I didn’t really have any issues with it. The real reason he want us to start sending more money is because the water bill was increased. The place we live has an HOA and they are the onces that set the amount that each unit pays for water.

So I told Amanda what he said and she had a big problem with it.

What I didn’t realize is that our lease clearly states that we pay $X for rent and handle all utilities. However it also says the landlord is responsible for the HOA fees and the water. So even though the lease says he pays for the water, we are really paying for it because he just added the fixed amount to our rent. So in his mind when the HOA increased the fixed amount for water, we needed to start sending more money to cover it.

When Amanda called to have the awkward conversation we experienced him turn from being the nice landlord to the angry landlord. Amanda felt threatened when he said, “if that’s the way you want to do business, the letter of the law goes both ways.” One of the most ridiculous aspects of this situation is that from now until the end of our lease, the amount of extra money that we will end up sending would total $40.

FORTY DOLLARS.

I am seriously afraid of the worst case scenario where we have to go to small claims court to fight him for our security deposit back. But I’ve seen enough Judge Judy to know that we are in the right. Regardless how much the increase is. A lease is a contract. If he wants us to pay whatever the water bill happens to be, don’t write that you’re responsible for it.

Now I know this is going to sound cheesy, but I’m stuck in this story wondering what Jesus would do. Our landlord knows we are planting a church. I have told him to his face. He knows that we are Christian. I’m wondering how this goes down without him being bitter about our unwillingness to pay more, even if it is $10.

Whether or not I agree with what the landlord wants, I have to love my wife. I have to support her. We are a united front in all situations. But I can’t help try to figure out how this situation ends with the landlord not thinking some Christians don’t want to pay more. How do we stand up for ourselves and do what we think is right when it could potentially damage the view he has of the faith we represent?

Is it as simple as staying calm and nice? Can we, or should we, just accept the fact that at the end of the day the landlord is probably not going to think the best of us? Should we try to rest in the fact that we chose not to get angry or be petty?

Don’t Play Around

A little over two weeks ago Amanda and I helped out with a project at City of Refuge. It wasn’t anything too important, but it was big.

We dismantled and moved a playground.

Photo Nov 12, 10 31 17 AM Photo Nov 12, 10 31 29 AM

The story we heard was that it collapsed while a bunch of kids were playing on it. The whole thing didn’t collapse, just the monkey bars and swings. So armed with a few screwdrivers, a drill, a sledgehammer, a crowbar, and a truck, we toted it 100 yards into the back of a huge warehouse. I was really glad I had my truck. After we took off the major side portions and the roof we basically lifted the frame into my truck and I drove it through the warehouse.

It was actually kind of fun even thought it was manual labor.

Photo Nov 12, 11 31 56 AM Photo Nov 12, 11 52 35 AM

City of Refuge has a really cool idea. A little self-explanatory from the name, but a place that “offers both life saving resources and life building tools to individuals and families in Atlanta who are living on the margin.” They have a kitchen, a medical facility, a small school, and a bit of family housing. It was interesting to walk through and see the people they are helping out. A little nerve-racking because that last thing you want is to walk through and make them feel like they’re on display. But in the end it was cool to see how they are really making an impact in that area of Atlanta.

Do you volunteer anywhere from time to time? What kind of projects have you done?

Mother Trucker

It feels good to be done with this car mess. Well, the whole mess isn’t done, but the searching and the buying of the new car is. Amanda and I seriously looked at something like 20 cars.

  • Audi - A3
  • Ford - Edge, Escape, Explorer, Focus, Fusion
  • Honda - Civic, Fit*, Insight
  • Hyundai - Accent, Elantra, Sonata, Tucson*
  • Kia - Soul
  • Mazda - 3*, CX-7*
  • Nissan - Juke, Rogue*, Sentra, Xterra
  • Subaru - Forester, Impreza, Outback
  • Toyota - 4Runner, Corolla, Rav4, Venza

Some of those were passed over as soon as we looked at them and others were tossed the moment we sat in them. I marked the ones we actually drove with an asterisk.

In the end we settled on something we didn’t even consider in the first place.

Photo Dec 03, 12 02 52 PM Photo Dec 03, 12 03 02 PM Photo Nov 21, 9 55 09 AM

And I love it.

Climbing the Ladder

News to share!

I’m no longer the Services Trainer at Hannon Hill. As of this week I’ll be transitioning into the Sales Engineering (SE) role. I’m pretty excited about the move. I really do love training so the decision didn’t come lightly, but I’ll still be doing a little training from time to time.

I describe the new position to most people as the technical contact that sits on our product demonstrations for helping explain technical concepts and answering questions. Most of my new job responsibilities are heavily vested in winning deals in regard to new clients signing with us.

The most interesting part of the SE role is the creative freedom with Cascade Server integration examples. Creating example scenarios for our demonstrations and custom examples for potential clients should prove to be both challenging and fun. Challenging in the sense that I’ll (hopefully) be pushing the limits of what I can do with Cascade and fun in finding new things to do that will really push us to the next level.

Let me know if you want an update on how it’s working out.

Lacking Activity

Apologies for the lack of activity lately. The hustle and bustle of my weekly routine took the life right out of my blog. It’s a little ironic that I stopped blogging because I felt busy and had no material but now have more thoughts swirling around than ever.

One major blog related update is the transition from Go Daddy to WebFaction as my hosting company. The full copy isn’t done yet because I have more than a few domains hosted under my account.

So this is me wanting to start writing again—at least at first about adventures past—with much greater frequency.