Getting started building an API can be tough if all you’re looking at are big, monstrous (but useful) APIs. To combat this, I’ve built a really simple API to redirect users based on the hash in their URL. It initializes, take external data, and returns a response block.
I’m still amazed at how often we’re passing up the chance to use HTML5 tags in our documents. It’s hard to break old habits, I know, but it’s time to dump the mountains of DIV tags and get with some semantic markup. There are several awesome tags to start using in HTML5, but I wanted to hit six good ones to start people off.
You all remember parts of speech, right? Nouns, verbs, adjectives, pronouns, and so on from elementary school, right?
Well, some of you do.
Having just run the interview gauntlet (again) myself, I thought it might be useful to share some of my tips and tricks for getting through technical interviews. While your mileage may vary, I’ve found these tips to be pretty standard across all industries that employ Web Developers.
In my last installment, I covered loading external JSON files into your code. That works great, if you have reasonable control over the data format.
If you’re dealing with a vendor or open data source, you may not have the control you want to make a JSONP call (or the data is in XML instead of JSON). There’s a way around this by using a proxy.
I love using external JSON files for data configuration. Maybe it’s my old XML/XSL training, but there’s something solid about separating the content and presentation layers. That said, you need to set up your JSON in a clean and solid format to make it as future-proof as possible (we’ll cover that another day).
For whatever reason, Apple made a pretty big (and in my opinion, stupid) decision regarding their latest OS. The vertical scrollbars are, by default, hidden.
Now, this does not affect FireFox, but it does, however, affect Safari and Chrome. Since we cannot reasonably ask our users to change the settings in their OS, we can do a bit of CSS trickery to make them appear. Note: This will affect the appearence of your scrollbars on all webkit browsers, regardless of OS. The CSS below mimics the look and feel of the Mac OS, but you can tweak it to certain your needs.
- Code is easier to read for the developer and those that follow.
- Structure allows for future additions and creates a pattern for all future work.
- Code is testable
This comes up every few months on my various teams, so I decided to compile a nice, simple list of them for easy reference.
Advantages to shorthand:
- Easier to read
- Saves time
- Saves bytes