Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

'Javascript'

Part 1: Shifting From Android To Web Development

Learning to make front end web applications requires learning a few things in parallel—the language, the framework of choice, the test framework, the build system, and the different ways you can style things. This post will help you map your knowledge of Android to the equivalent in web in 5 easy steps.

Read More

Unit-Testing AngularJS in a Rails app using the Jasmine gem

Testing AngularJS applications is easy with Jasmine. If you look at the AngularJS docs, many of the code examples show a corresponding Jasmine spec.

One important part of AngularJS’s testing support is the included angular-mocks.js file. This file contains a …

Read more

Read More

Getting Started with Angular: Dealing with Scopes/Controllers

A common source of confusion among new Angular developers is scopes. The parent-child scope model is confusing, and it isn’t straightforward how to share data between scopes. It’s common in applications to see nested controllers and heavy use of scope …

Read more

Read More

Rails is omakase; so is AngularJS

Opinions

DHH, one of the creators of Rails wrote a seminal blog post about Rails’ configurability and design to permit choice, while still presenting opinions on application structure. This sits well with my general sense of what’s right. I like …

Read more

Read More

How to use Analytics.js to fix your analytics code and achieve metrics nirvana

There are so many great analytics tools out there that it’s often hard to know what to use. What’s more, each one comes with its own flavor of JavaScript API that’s slightly different from all the rest, meaning each new …

Read more

Read More

Decoupling JS from the DOM

There has been a big shift in the last few years toward javascript frameworks that dictate how we deal with the DOM. In this series I want to highlight the value in “progressive enhancement” style patterns when it comes to …

Read more

Read More

Swapping between JavaScript spec and implementation in RubyMine

When test driving your code, you inevitably end up switching between the tests and the implementation.  In Rubymine, there is a handy command-shift-T shortcut for doing this with ruby files, but it does not work for javascript files.  It isn’t …

Read more

Read More

Writing Beautiful Specs with Jasmine Custom Matchers

Custom matchers are one of Jasmine’s most powerful, and yet underutilized, features.

Here at Pivotal Labs, we write tests for a few reasons: to drive feature development, to catch regressions, and to provide code documentation to other developers.  Because of …

Read more

Read More

Copying text to the clipboard in Ember.js with ZeroClipboard

If you’re used to working with Backbone.js, you may be accustomed to writing your own render method for your views. Typically, it looks something like:

var MyView = Backbone.View.extend({ render: function () { this.$el.html(this.template(this.model.toJSON())); } });

In contrast, in Ember.js, …

Read more

Read More

Accessible UI Widgets using ARIA

ARIA attributes are a robust alternative to arbitrary class names when applying styles and behaviors to your markup. When you use ARIA attributes to target elements, you introduce accessibility support while standardizing your markup.

Non-standard class names

As a web …

Read more

Read More