SpyreStudios

Web Design and Development Magazine

  • Design
  • Showcase
  • Inspirational
  • Tutorials
  • CSS
  • Resources
  • Tools
  • UX
  • More
    • Mobile
    • Usability
    • HTML5
    • Business
    • Freebies
    • Giveaway
    • About SpyreStudios
    • Advertise On SpyreStudios
    • Get In Touch With Us

Simple Ways To Save Time With A Default Code Library

November 6, 2008 by TDH 8 Comments

We’re all busy designers here, and that means we’d rather not spend more time hacking away than necessary. It is very easy to cut down on development time by collecting, organizing, and using default code snippets. Most of us probably do it already, but are we doing it good enough?

WordPress DevelopmentAs for me, 95% of every site I design is based on WordPress, one way or the other, which means I’ve got a default WordPress theme for my own usage. This default theme is written by me from scratch, and I’ve made sure that it is easy enough to modify. If you are a WordPress theme designer you could do that too, or pick any of the free open-source themes out there to base your freelance design work on. Some of you might prefer Sandbox, others will modify Kubrick (the default WordPress theme), and so on. It doesn’t matter, as long as it is a theme that you can bend to your will in as little time as possible.

Another area where you can save time by using default code snippets is the various scripts we use to make our sites more bling-bling. There’s a gazillion jQuery tutorials out there, so collect the best of them for your fancy navigation menus, tabbed boxes, and so on. That way, when you need a dynamic element, you can just pull up your favorite jQuery code snippet. jQuery Javascript Or Mootools, or Prototype.js, or whatever’s your poison.

Naturally, this also goes for PHP scripts, ASP.net, and any other programming languages you might use in your web sites and applications.

In essence, here are some tips on how to store these code snippets for easy use:

  • Set up a reasonable directory structure on your hard drive. I suggest using one folder for scripts, then have one for jQuery in that one, and so on.
  • Store the code snippets in plain text files, using descriptive file names, like tabbed menu or wisiwyg textarea adaption. That makes it searchable.
  • Consider setting up some sort of index file containing all your saved code snippets. That way, if you’re not sure wether you want to use this or that to do a specific solution, you can just scan this file for code snippets that do what you wan.
  • Index hardcore style: Setup a local WordPress blog and put each code snippet in its own post, then tag accordingly. Would work with a wiki and whatnot as well, the functionality we need is tagging. There are software solutions to do this to files as well.
  • Use a text editor that supports storing code snippets. My favorite is Coda.

It is all about saving time, and avoiding doing the same thing twice. If you keep track of all your nifty solutions and fancy hacks, then you’ll produce faster, and that means more time for other things. So, how do you do it?

Filed Under: Uncategorized

Comments

  1. David Hayes says

    November 6, 2008 at 8:47 am

    My “sandbox” runs on RadiantCMS with a lot of customization and extensions along with jQuery and a custom css framework. All of this and my growing collection of Radius snippets, makes it a snap to get a fully functional site with backend up in just a few hours.

    It took me about a month to get all this together, but the effort I put into all this prep has saved a lot of time.

  2. Jack Keller says

    November 6, 2008 at 10:35 am

    I agree with you, snippets I’ve written and reuse over time have been very helpful. I utilize Coda mainly for my programming and set up Global and Per Site snippets during a project. An Alternative for some of your readers who may not own Coda or a Mac would be Snippely (http://code.google.com/p/snippely/) which is written to run on Adobe AIR, may be another helpful spot for developers to keep snippets and time saving code blocks.

  3. Steve says

    November 6, 2008 at 12:06 pm

    Great article I had not thoought about using wordpress or a wiki to track the apps. I go one step further and keep the directory tree in subversion making use of the tag feature> This allows me to track multiple versions versions of the code jquerry for example. I also keep them all indexed in snippely (an adobe air app).

  4. Andris says

    November 7, 2008 at 12:35 am

    Definetly a good point. I think the idea with a wordpress-site storing all the code snippets is pretty good. I guess I will try that one.

  5. Thord Daniel Hedengren says

    November 7, 2008 at 2:08 am

    Thanks for the kind words all, and thanks for sharing your own setups. Always interesting to hear how other designers solve things like this.

  6. Silvan says

    November 20, 2008 at 5:37 pm

    Thanks for the great blog, like Thord Daniel, i’m always interested to hear how other designers solve those kinds of problems.

    The idea of a local wordpress site or wiki is great.

  7. Graham says

    January 5, 2009 at 6:10 am

    I couldn’t agree more – it is something we know we should do, but don’t seem to do. I am going to be more proactive in this area. Thanks for the great article!

  8. Indranil says

    August 18, 2009 at 5:07 am

    I usually get jobs based on WordPress, plain html or Expression Engine. So what I do is keep a working copy of a bare-bones template I’ve created which suits my style for all three of these systems. Then, I just import them into a project and start off from there with all the basic ingredients already added. Saves a few hours, every single time!

Leave a Reply

Your email address will not be published. Required fields are marked *

Please prove you're human *

Recent Posts

  • 31 Fresh Design Elements for Spring and Easter
  • 10 Templates for Music Concert Flyers
  • How to Build a Web Scraper Using Node.js
  • Best PHP Books, Courses and Tutorials in 2022
  • How to Get Your First Web Design Client

Archives

  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • May 2008
  • April 2008

Categories

  • Accessibility
  • Android
  • Apps
  • Art
  • Article
  • Blogging
  • Books
  • Bootstrap
  • Business
  • CSS
  • Design
  • Development
  • Ecommerce
  • Fireworks
  • Flash
  • Freebies
  • Freelance
  • General
  • Giveaway
  • Graphic Design
  • HTML5
  • Icons
  • Illustrator
  • InDesign
  • Infographics
  • Inspirational
  • Interview
  • Jobs
  • jQuery
  • Learning
  • Logos
  • Matrix
  • Minimalism
  • Mobile
  • Motion Graphics
  • Music
  • News
  • Photoshop
  • PHP
  • Promoted
  • Rails
  • Resources
  • Showcase
  • Tools
  • Tutorial
  • Twitter
  • Typography
  • Uncategorized
  • Usability
  • UX
  • Wallpapers
  • Wireframing
  • WordPress
  • Work

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

SpyreStudios © 2022