Front-End Interview Questions – Part 3

This post is more than 2 years old.

This post is part of a series I’m writing where I attempt to answer, to the best of my ability, a set of Front-End developer questions. I expect/hope my readers will disagree, augment, and generally hash out my answers in the comments below.

Talk about your preferred development environment. (OS, Editor or IDE, Browsers, Tools, etc.) I covered this pretty deeply in a blog post from late last year (My Cordova/PhoneGap Developer Setup (Fall 2014)). While that post was focused on Cordova development, it pretty much covers my development setup in general. I don’t think I have anything to add to that list so I’ll carry on.

Which version control systems are you familiar with? Git, although I suck at branches and merging. I’ve made a note in Evernote that lists different types of Git commands based on what I’m trying to achieve. I’d like to be a bit better at Git, but my current level of skill hasn't really hurt me so far. When I have some free time, I plan on taking the Code School Git course as I absolutely love Code School.

I can use SVN as well, but since I use it so rarely I keep a note around to help me remember the basics.

I have some experience with Perforce. I’ll use it if you put a gun to my head.

And yes - you will all laugh at me - but I used to love Visual SourceSafe. It was simple, easy to use, and I never had data corruption with it.

Can you describe your workflow when you create a web page? That’s a bit open-ended. In my editor, I use snippets so I can quickly lay out a simple HTML page, quickly add jQuery if I need it, etc. Most of my demos are JavaScript-based so I’ll normally:

  • Make a new folder for my test.
  • Make an index.html file and drop in the snippet.
  • Make an app.js and start coding.

That’s it. I don’t use Yeoman as I find it super heavy for quick one-offs. Ditto for Bower. My issue with these tools is that they tend to add a huge amount of files. If I were building a proper "project", i.e. something I’d be working on for a month, it may make sense, but for my blog posts, presentations, etc, they are way overkill. I actually built my own tool for Brackets to quickly download JavaScript frameworks with a simple right click. It only downloads the core files needed to use them because - that’s all I want to do - use them. (Maybe I’m crazy that way. ;)

If you have 5 different stylesheets, how would you best integrate them into the site? Oh, this is a good one. Keeping in mind I try to avoid CSS and just use a library (like Bootstrap), it seems to me I’d do the following:

If the 5 style sheets were all application specific, I'd combine them into one file. If they were a combination of application specific style sheets and libraries (like Bootstrap), I'd only combine the application specific ones. I’d want Bootstrap (or whatever) separate to ensure it is easy to update in the future.

I never really thought much about "organization" of my CSS because I rarely write much of it. I’d run CSSLint against it, but I don’t think CSSLint deals with "organization" of a large sheet. I’d also run a tool to find unused css, like uncss.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Joel posted on 1/29/2015 at 12:04 AM

Not sure I like your "5 stylesheets" answer. If all five were local, I'd keep them separate in the code-base, and use a bundling tool to combine them into a single file for deployment, to minimize HTTP requests and speed up load time. Alternatively, "framework" CSS like Bootstrap may be best loaded from a CDN, since it increases the chances that your user already has the CSS in their cache and doesn't have to download it at all.

Also I can't imagine a real-world application where Bootstrap is enough, and doesn't require any application-specific CSS at all. Even my toy learning apps tend to have their own CSS (and little-to-no inline style attributes).

Comment 2 (In reply to #1) by Raymond Camden posted on 1/29/2015 at 2:04 AM

Joel, first off, thank you. I've only done two of these, but this is my first disagreement. I'm hoping for more of them. :)

So to your first part, isn't that what I said? Or did you not agree with my saying I'd keep "frameworks" like Bootstrap out? I think we agree *except* for that.

Comment 3 by Chris Geirman posted on 1/30/2015 at 4:54 AM

I loved VSS actually. It just made sense to me. My last client used perforce (ug!). I highly recommend the Git Pro book! Very easy to get through and will very quickly ramp up your skillz! If you'd rather not buy the book, you can read it online free... http://git-scm.com/document...