FB Web Tips

Whoops! PHP Errors for Cool Kids

By Filipe Dobreira

Whoops is a small library, available as a Composer package, that helps you handle errors and exceptions across your PHP projects.

Out of the box, you get a sleek, intuitive and informative error page each time something goes pants-up in your application. Even better, under all that is a very straight-forward, but flexible, toolset for dealing with errors in a way that makes sense for whatever it is that you’re doing.

The library’s main features are:

FB Web Tips

Parallel Testing for PHPUnit with ParaTest

By Brian Scaturro

PHPUnit has hinted at parallelism since 2007, but, in the meantime, our tests continue to run slowly. Time is money, right? ParaTest is a tool that sits on top of PHPUnit and allows you to run tests in parallel without the use of extensions. This is an ideal candidate for functional (i.e Selenium) tests and other long-running processes.

ParaTest at your Service

ParaTest is a robust command line tool for running PHPUnit tests in parallel. Inspired by the fine folks at Sauce Labs, it was originally developed to be a more complete solution for improving the speed of functional tests.

Since its inception – and thanks to some brilliant contributors (including Giorgio Sironi, the maintainer of the PHPUnit Selenium extension) – ParaTest has become a valuable tool for speeding up functional tests, as well as integration tests involving databases, web services, and file systems.

ParaTest also has the honor of being bundled with Sauce Labs’ testing framework Sausage, and has been used in nearly 7000 projects, at the time of this writing.

FB Web Tips

What Are You Using?

By Rey Bango

We spend a lot of time following the thought leaders in web development, in many cases using the tools and libraries they’ve built, reading the posts they’ve written, articulating cool techniques they’ve learned, and in some cases, attending the defining conference for a specific language. But wouldn’t it be great to learn what they focus on and what they use to build such awesomeness?

I reached out to a group of some of the best and brightest developers in web development to answer those very questions. These are developers that have made strong contributions to the web development community, are highly regarded by their peers for their technical abilities, and continue to help push web development forward via content, code, and leadership. You can check out their bios, below, for more details about them.

FB Web Tips

Working With Data in Sails.js

By Gabriel Manricks

Sails.js is an up and coming Node.js framework, with a focus on freedom and smart defaults. In this article we’ll take a look at some of the data features Sails provides out-of-the-box, for easily making complex apps.

Why Sails Is Different Than Other Frameworks

The reason to choose Sails is best put by the Sails creator, Mike McNeil, “Sails was created out of necessity”. Many frameworks you see around, are built almost for the academic side of things, these frameworks usually foster best practices, and create a platform for developers to create things faster, or better.

Sails on the other hand, was created for production, it’s not trying to feed you a new syntax or platform, it’s a solid base, meant for creating 'client-work' with speed. The contrast may be subtle, but there are a few distinct differences.

FB Web Tips

Intro to Flask: Signing In and Out

By Lalith Polepeddi

Many web applications require users to sign in and out in order to perform important tasks (like administration duties). In this article, we’ll create an authentication system for our application.

In the previous article, we built a contact page using the Flask-WTF and Flask-Mail extensions. We’ll use Flask-WTF, once again, this time to validate a user’s username and password. We’ll save these credentials into a database using yet another extension called Flask-SQLAlchemy.

FB Web Tips

New from Envato: The Easiest Way for Web Devs to Get Design Work Done

By Skellie

As we’ve talked about before on Nettuts+, sometimes it feels impossible to keep up with all the skills, languages and tools you need to learn to be a great web developer.

In an ideal world we’d be masters of back-end, front-end and graphic design, but being truly great at any one of those three things is, on its own, a full-time challenge.

Many of us eventually realize that we should focus only on the skills we love to use, and let others help us with the rest.

For web developers, the skill we often decide we’ll never be able to master is design.

And yet, we struggle on with websites and apps we know look less than great because we don’t have the time to get truly good at design, or we lack the time, energy and money to collaborate with a talented designer.

FB Web Tips

Combining Laravel 4 and Backbone

By Conar Welsh

For this tutorial, we’re going to be building a single page app using Laravel 4 and Backbone.js. Both frameworks make it very easy to use a different templating engine other than their respective default, so we’re going to use Mustache, which is an engine that is common to both. By using the same templating language on both sides of our application, we’ll be able to share our views betweem them, saving us from having to repeat our work multiple times.

Our Backbone app will be powered by a Laravel 4 JSON API which we’ll develop together. Laravel 4 comes with some new features that make the development of this API very easy. I’ll show you a few tricks along the way to allow you to stay a bit more organized.

FB Web Tips

Tuts+ Jobs is now free!

By Joel Bankhead

Our awesome new job board is now free and full of enticing opportunities!

Tuts+ Jobs is a job board for full time, part time and casual employment opportunities for web and creative professionals. A brand new site to go alongside the Tuts+ Educational Network and the Envato Marketplaces, all run by Envato.

There’s no need to sign up to apply for jobs, and it’s now free to post a job – try it now!

FB Web Tips

Building Ribbit in Meteor

By Gabriel Cirtea

This is a continuation of the Twitter clone series with building Ribbit from scratch, this time using Meteor.

For this tutorial, please do not expect an in depth explanation of the Meteor framework. You should already have some Meteor experience so that you’ll understand some of the important concepts that will be presented. In order to get a basic understanding of Meteor I recommend Andrew Burgesses course on Tutsplus Premium.

So, let’s get started.

Step 0: Creating and Configuring the Meteor Application

We begin by generating a new Meteor application. Open a command line prompt and navigate to the folder where you want the application to be stored. Then run: