My Front End Development Setup – 2014 edition

My front end development setup is an evolving organism, which changes, grows, evolves as time goes by based on what’s going on in modern web development. When I first started designing and building websites, I worked on a Windows machine hand coding my HTML and inline styling on plain old Notepad. This eventually changed to (still) hand coding HTML with externalised CSS, but using Notepad++ on a Windows machine (I wasn’t very sold on the Apple OSX user experience still at the time), which I loved using for the plugins that powered up what would otherwise be just another Notepad software.

These days, I have so far worked on a Windows PC at work but outside of the office I’m much happier using my MacBook Pro laptop. And I’m fine with this arrangement. Since it means I still have to be familiar with the quirks of both the Mac and PC worlds beyond just the browser differences between IE and Safari and all the other browsers out there in the wild.

But with that in mind, here’s a run down of tools (that aren’t browsers) that I use for my front end development workflow – most of which are available on both Macs and PCs…

Sublime Text 2/3

I quite liked Notepad++ and up until last year I was quite happily still using it. Then I got introduced to Sublime Text 2. I thought it looked better out of the box design wise than Notepad++ and it could do what Notepad++ did, it just all looked nicer to me. Plus it was free too. It now feels like my life wouldn’t be complete as a front end developer without Sublime Text in it. I’m now using Sublime Text 3, if only because it’s available. I like how easily customisable it is, especially with Package Control installed. But what I really like are little shortcuts like easily selecting multiple instances of a word in a file using just Ctrl+D /Cmd+D …once you learn and remember them. Plus I like that it’s a got the IDE-ish functionality of a project explorer view on the sidebar.

In terms of customised preferences, I’ve got Sublime Text 3 set up to do things like removing trailing whitespaces on saving a file by default. If you’re as OCD about trailing whitespaces as I am, to do this, just stick
"trim_trailing_white_space_on_save": true
in the JSON formatted Settings – User file. Also, being from the “4 spaces for tab indentations” camp, I enforce this rule by having these 2 lines of configuration in for my user settings:
"tab_size": 4,
"translate_tabs_to_spaces": true

I personally think that with 4-space indentation code doesn’t look not as cramped together as 2-space indentations. I actually can’t remember who put the idea in my head for 4-space indentations, but I blame my C programming lecturer at Bristol for this as he was well known for “Neil’s Golden Rules” in which this “rule” seems quite likely to have been in that list of rules.

I also have a few plugins installed also to help with my development workflow which I’ll post as a blog post on its own. I’ve also got a custom Build System on my Sublime Text setup so that I can make a “Chrome Build”, which really means I can view a HTML file in my Chrome browser by just pressing Ctrl+B/Cmd+B.

LiveReload

A more recent discovery, made only earlier this year even, mainly because it works really well with Grunt and the Chrome browser plugin is LiveReload. To a certain extent I feel like this takes developer laziness to a whole new level, but when you’ve had to press the refresh button of your browser for the 1,000th time just to see some front end code change you’ll appreciate how not needing to press the refresh button to see your changes, whether it’s a new HTML element or a background colour change in the CSS as you save them is the best thing since sliced bread.

BrowserStack

Before the awesome thing that is BrowserStack came along, the best way to do reliable cross browser testing was to have a virtual machine or a dedicated machine running the OSes with the various browsers to test on, especially for IE and Safari. Maintaining these machines was a hassle…assuming you had the resources available to set them up. For the problem children that are the older IEs, there was/is IETester and the built-in IE developer tool, but those weren’t the most reliable of testing environments. I find that for mobile browser testing nothing still beats testing on the actual device unfortunately. But otherwise, BrowserStack has got my back covered for a reasonable subscription fee.

Git

My source code management system of choice is definitely Git, having used CVS (briefly at uni), SVN (my first workplace) and Git (my first workplace eventually switched to Git from SVN and my current workplace uses Git too). I like the open, social collaboration that GitHub allows and encourages along with all the awesome 3rd party libraries, open source projects it already hosts. But I also like the option of being able to have a free private repo (or 2) on BitBucket for when I have something I just don’t want to or cannot make public for some reason.

BTW, this may seem insane to some, especially if you’re not comfortable with Git. But I had at one point, after mucking around with various GUI clients at work, forced myself to use the dreaded command line to do all my Git commits, branching, status checks to try and understand using Git better – I recommend this…it helps heaps! Except for diffs. I’m not THAT hard core. But if you’re not like me and learning by doing or picking something apart isn’t your thing, I highly recommend giving the Pro Git book a read. In fact, keep it as your bible to all things Git. For those times you can’t remember what’s the difference between a merge and a rebase.

SourceTree

I’ve been told Tower is a pretty good Git client if you’re on a Mac. But if you’re on a Windows machine or just not willing to shell out for a Git client *ahem* like me, I think SourceTree’s already pretty good. And it’s not Git only – handy for if I ever have to work with a SVN or even Mercurial repo.

kdiff3

Sometimes, especially in times of merge conflicts, I need to go through a file’s differences between what’s on the remote vs what’s on my local copy. I like using kdiff3 for this as it has an auto merge function that does a pretty decent job and I can compare up to 3 files. But what I like most is that when I use it to resolve merge conflicts, I get a view of what’s on the remote vs what’s on my local vs what the merged result will look like. It goes through the conflicts line by line and ensures that I’ve gone through all the merge conflicts in the file before letting me save the file – in a resolved state.

Photoshop

I’ve been using Adobe’s Photoshop since Photoshop 7 and still do. But I actually started out using it to whip up graphics like forum signature banners, random artistically tweaked images or just a simple animated/static button as and when I need a graphical asset (like the vinyl records on my site’s Last.fm data visualiser element) or just when inspiration strikes to make something digitally. When I started shifting from being a webmaster/web designer towards a front end developer, Photoshop was a way to design and/or pull graphical assets for a web site or a HTML emailer. I personally prefer just using Photoshop to have a rough idea of what I want to build, how it will look. But ultimately I prefer to design in the browser as I prefer to rely on CSS for styling up web things (and to be honest, being self taught when it comes to design, my style tends to be simple and minimalistic).

Sketch

These days, with responsive web design to accommodate all the many varied device resolutions I’ve started looking at vector based images. Still getting used to using it more over Photoshop or even Illustrator, as I’ve lately drifted more towards the application development side of front end development and my current workplace has a preference for Fireworks. But first impressions: I found Sketch pretty good for my workflow, especially when I worked on the Twickets iOS app. This is partly probably because Sketch was developed from the ground up with UI and web design in mind. With Photoshop, I had resize the images manually by working out what resolution the “standard” image should be and what the @2x (double) version should be. Sketch has a 1-step option to also generate the @2x (or @1x, half size) version when exporting a graphical asset. It also helps a lot for the pocket that Sketch is pretty affordable compared to Photoshop or Illustrator (up until Adobe’s subscription based Creative Cloud service came along anyway). Love it.

One thought on “My Front End Development Setup – 2014 edition

Leave a Reply to Here Cancel reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>