FB Web Tips

Understanding Design Patterns in JavaScript

By Tilo Mitra Today, we’re going to put on our computer science hats as we learn about some common design patterns. Design patterns offer developers ways to solve technical problems in a reusable and elegant way. Interested in becoming a better JavaScript developer? Then read on.   July, 2012 Introduction Solid design patterns are the […]

FB Web Tips

Event-Based Programming: What Async Has Over Sync

By Jonathan Creamer One of JavaScript’s strengths is how it handles asynchronous (async for short) code. Rather than blocking the thread, async code gets pushed to an event queue that fires after all other code executes. It can, however, be difficult for beginners to follow async code. I’ll help clear up any confusion you might […]

FB Web Tips

Contracts: The Practical Side of Semantics

By Denis Sokolov We all recognize that we should be writing semantic code. Maybe, you’re even using or correctly, and feel pretty good about yourself. But, are you also considering the implied contract that exists when you code?   Let’s imagine that a customer requests a text link, “See More,” which should reveal additional text […]

FB Web Tips

Building Ribbit in Django

By Gaurav Narula After implementing our Twitter-clone, Ribbit, in plain PHP and Rails, it’s time to introduce the next walk-through: Python! In this tutorial, we’ll rebuild Ribbit using Django. Without further delay, let’s get started! [responsive][/responsive] Step 0 – Bootstrapping As of the time of this writing, Django 1.4 supports Python 2.5 to 2.7.3. Before […]

FB Web Tips

Ruby on Rails Study Guide: Blocks, Procs, and Lambdas

By James Anders Ruby is a language with a set of powerful features – the most powerful arguably being Blocks, Procs, and Lambdas. In short, these features allow you to pass code to a method and execute that code at a later time. Despite regularly using these features, many developers don’t fully understand the subtle […]

FB Web Tips

Using Web Debugging Proxies

By Rey Bango My previous two articles focused on debugging tools, so it’s only fitting that I continue with this theme. When debugging front-end code, you tend to spend a lot of time reviewing how CSS and JavaScript affect your page’s rendering; equally important is how network requests affect your site. In many cases, we […]

FB Web Tips

Git Tips From the Pros

By Chris Kelly You’re already using source control for managing your code, right? You might even be using your SCM as the central piece of your workflow, like we do at New Relic. In this article, we’re not going to review the basics of source control management, regardless of which one you use. Let’s just […]

FB Web Tips

Laravel 4: A Start at a RESTful API

By Chris Fidao RESTful API’s are hard! There are a lot of aspects to designing and writing a successful one. For instance, some of the topics that you may find yourself handling include authentication, hypermedia, versioning, rate limits, and content negotiation. Rather than tackling all of these concepts, however, let’s instead focus on the basics […]

FB Web Tips

Setting Up A Staging Environment

By Gabriel Manricks It’s common practice to work locally on a project and push revisions to a production server, but the step that people often skip is the staging server. A staging server is a mix between production and development; you get to test your app as if it were in production. Let’s review some […]

FB Web Tips

How to Write Code That Embraces Change

By Patkos Csaba Writing code, which is easy to change is the Holy Grail of programming. Welcome to programming nirvana! But things are much more difficult in reality: source code is difficult to understand, dependencies point in countless directions, coupling is annoying, and you soon feel the heat of programming hell. In this tutorial, we […]