Tuesday, February 25th, 2014 | Philosophy, Rants, Web Dev

{1}

Pushing forward

It always seems impossible until it’s done

~ Nelson Mandella

A common thing about web development is that you will encounter issues where you least expect to encounter them. You may do something that you expect will take hours, and it’s done in 15 minutes; the converse is also true.

So if you want to get good at this stuff…you must remember that sometimes when you’re in the thick of it, it’s gonna get hard. Real hard. Sometimes it’s fun and fascinating, other times it’s drudgery.

I’ve been doing this since 2008. Every day I’ve faced new challenges, some of them make me insecure and nervous…there are times when I feel like a fraud, like a failure…even though I know more about this than most folks, I am afraid that there will come a day when I don’t know, and I won’t be able to figure it out and will gloriously fail.

That day hasn’t come yet.

I have had many failures and struggles, but every time I emerged with some solution. Maybe not always the best (as some commenters have pointed out in my code), but it worked…and that’s what I needed. We become better programmers by writing more code, it’s a skill just like anything else and as the old saying goes “practice makes perfect”. I would like to put together a list of things that always tripped me up to pass on to others that might stumble on this blog for one reason or another, and I hope I can squirrel away the time to do it. But for now, know this:

What we’re doing here is hard. It’s scary, overwhelming, confusing at times, and requires a tremendous amount of grit. If you push forward, you will get better. If you spend hours facing down that problem and come away with a solution, you’ll feel … like this:

gandalf-the-white1

Emerging victorious is one of the best feelings. Facing the drudgery is not. Go forth and create something awesome.

Leave a Comment

Recent Posts

Useful Shortcode: Pull Content from Any Page, Given The Slug.

So, you want to pull content from one page into another…maybe you have an “upcoming events” section that you want to be its own page, yet you also want to show on another page. This shortcode will help you do that. Put it in your functions.php file. // [page name="contact"] function page_content($atts) { extract(shortcode_atts(array( ‘name’ […]

Read the Full Article

LiveReload 2 – An app every developer working locally needs

What if I told you, for 10 bucks, you could edit your theme files, and see the changes reflect on your browser immediately without having to reload the browser — ANY browser, not just the ones in your text editing app (like Coda). Well, there is…and it’s amazing. With LiveReload 2, you can simply edit […]

Read the Full Article

[WordPress] How to Redirect users if not logged in

Sometimes I have need to redirect users if they’re not admins, here’s how to do it…it’s very very easy with the wp_redirect() function. In your themes header.php file, simply open it up and at the TOP of the file, insert the code: <?php if (!is_user_logged_in()) { wp_redirect( ‘http://yoursite.com/’); exit; } ?> That’s it Make sure […]

Read the Full Article

WordPress Login and Edit Bookmarklet — Version 2

I use everything I post on this blog all the time. Sometimes my sole reason for posting something is so that I can remember it later. About a year or so ago I made this bookmarklet that allows users to click a button in their toolbar when they’re on the front-end of their WordPress site, […]

Read the Full Article

Resetting an iframe when you close a modal window [Bootstrap]

Note: This snippet is for the Twitter Bootstrap framework. The principles can still be applied to any modal window, only the way the function is tied together will change. I use twitter bootstrap a lot, there are a ton of features that make it lots of fun to work with, this particular function applies to […]

Read the Full Article

Nomenclature, template hierarchy, and functions

So, I write a lot about custom functions to add to functions.php in your WordPress theme file. I’ve recently been rethinking a lot of the way I’ve been developing websites, thinking that maybe instead of building all of the functionality into the theme, I should build all of the functionality into a plugin. While I’m […]

Read the Full Article

WordPress Code Snippet — Control Content length of excerpts and content

Shorten the content or excerpt to whatever string size you like by first adding these function to your functions.php file: function excerpt($limit) { $excerpt = explode(‘ ‘, get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(” “,$excerpt).’…’; } else { $excerpt = implode(” “,$excerpt); } $excerpt = preg_replace(‘`\[[^\]]*\]`’,”,$excerpt); return $excerpt; } function content($limit) { $content […]

Read the Full Article

Redesigning…finally

It’s been a very long time since I redesigned this site. I’ve been running the Geek Out theme for a few years now. While this theme has been really unique and has served me well, I’m now going to build a new one…something more specific to my work, my projects, and who I am as […]

Read the Full Article