FB Web Tips

Testing Like a Boss in Laravel: Models

By Zizaco Zizuini If you’re hoping to learn why tests are beneficial, this is not the article for you. Over the course of this tutorial, I will assume that you already understand the advantages, and are hoping to learn how best to write and organize your tests in Laravel 4.   Version 4 of Laravel […]

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

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

Chrome Dev Tools: JavaScript and Performance

By Umar Hansa In this third part of our Chrome Developer Tools series, we’ll review how to modify and debug JavaScript. Optimization is an important part of the development process, especially for performance-critical applications. We’ll also discuss techniques for identifying potential bottlenecks in our code.   As in the previous two articles, I’ll be focusing […]