This Week's Sponsor:

Kolide

Ensures that if a device isn’t secure it can’t access your apps.  It’s Device Trust for Okta.


Snippets, Code Library of Choice. Review and Giveaway.

I’m not a web designer by any means, but simply someone who is interested in the beauty of code. Being a big fan of HTML and CSS, I decided to learn a thing or two when I decided to craft my own WordPress blog. It’s not particularly fancy or make use of any cool CCS3 effects like Mike Matas’ new site, but it’s a step. I’m not at the point yet where I can drill out code or figure some (okay most) things off the top of my head, so I often reference a lot of code that I reuse or edit for my own purposes. I learn a lot through the myriads of tutorials that are available online. All of this eventually leads to Snippets, which I love to death. Finally, instead of having to reference bookmarks shoved into a desktop folder, I can store and save code in a beautiful desktop library that makes acquiring code incredibly easy to do.

Now, I image the developers (well, most snippet app developers) have in mind that you’d only want to store your most used pieces of code. Well, I certainly do that, but because Snippets is such a great container for everything I find, I store just about everything I can in it. You never know when you’ll need a stray or unique piece of code again.

Snippets App Mac

Snippets App Mac

Snippets App Mac

Snippets App Mac

Snippets is great for organizing code between the Library, Highlights, and Groups. The Library shows you everything available in Snippets, where you can sort between name, date, or syntax highlighting. But If you want to narrow your choices down to a particular syntax, Highlights only shows you lines of Javascript, CSS, or whatever else you choose. It’s kind of like narrowing down categories or tags in a project management application. Lastly, Groups allows you to make folders, groups, and smart groups to organize your code. Folders can be code containers (you could have a folder for WordPress, one for Movable Type, another for Drupal), and groups are your sub-containers (under the WordPress folder, you might have a group for snippets specifically for functions.php). Smart groups allow you to bundle snippets according to various data, such as a words from the description, its name, what’s contained in the label, etc.

Snippets App Mac

Snippets App Mac

Snippets App Mac

Snippets App Mac

But what I find most useful is the menubar. For my Macbook, a combination of command-fn-F12 will bring up the search bar from the menubar (you could also click the scissors). Simply typing in the name of your snippet (or line of code) will display the snippets you saved. You can either arrow-down or click a snippet to insert it where the cursor is in your text document or HTML editor. The keyboard shortcut is extremely useful if you don’t want to navigate the Snippets library each time.

Lastly, Snippets has a plugin architecture that allows you to add Scrippets - extra functionality that allows you tie into online services. This is useful for those who would like to save their code out to Pastebin or another service (check slide 11 here).

For someone like me who needs constant reference material or can’t remember all of the different tags associated with things like WordPress, Snippets is absolutely wonderful. I couldn’t recommend it enough for any apprentice or master web designer, so we’ve teamed up with the fellas at Lucky Ants so you could have a chance to win one of three copies. Just check the rules below for more information. Again, thanks to Lucky Ants for our review copy.

Giveaway

Alright, settle down you code hoarding snippet snatchers. Why not share with us some of the valuable pieces of code you happen to you use in your daily rhetoric? In the comments below, paste a piece of code (a short piece please), and explain how it’s valuable to you in your web projects. Good luck!

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.