FB Web Tips

Beginning Test-Driven Development in Python

By David Sale Test-driven development (TDD) is a process that has been documented considerably over recent years. A process of baking your tests right into your everyday coding, as opposed to a nagging afterthought, should be something that developers seek to make the norm, rather than some ideal fantasy.   I will introduce the core […]

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

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 […]

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

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 […]