OPI Blog
Learn from experts in their fields

Browsing Tags: javascript

Apr 29, 2015
Using Gradle and Bower to Manage JS/CSS Dependencies
Gradle (and other build systems) have done a good job of managing classpath dependencies. They are effective at pulling new versions of packages to get bug fixes, et al and including dependencies in packaging. JavaScript, ...
Nebraska.Code() Conf Recap: Functional style!
This past weekend, I was able to attend and present at the 2015 Nebraska.Code() Conference in Lincoln, along with a few other Object Partners developers. With roughly 500 in attendance from presenters, to attendees, to sponsors, ...
Add Javascript unit tests and run them with “grails test-app”
Client-side JavaScript code typically doesn’t get as much testing as back-end code, but with technologies like AngularJS becoming popular, more logic is making its way to the front-end, creating a higher need for tests. Fortunately ...
Unit test your server-side JavaScript with Spock
Java 8 was recently released with Nashorn – a JavaScript runtime for the JVM. There are many reasons you may want to use JavaScript in your JVM application; for example, validation logic or template code ...
Feb 26, 2014
Running a Lightweight Static Server with Grunt
So you’re a Grails/Java/Some Other MVC developer, and you’ve taken the leap: your next application is going to be single page with a RESTful backend. Congratulations! But where do you start? The first thing you ...
Groovy convenience in JavaScript with Lo-Dash
Some of the nice benefits of using Groovy over Java are the convenience methods that Groovy adds to standard Java classes. Methods such as .find(), .each(), and .collect() that Groovy adds to Java’s collection classes ...
Resolving browser-specific issues using the Grails Resources plugin
While upgrading an application to Grails 2 recently, we encountered a couple browser-specific issues (well, more than a couple) that I thought were pretty interesting. These two are relatively well-known in general but I thought ...
Aug 15, 2013
Visualizing Data with D3 Part 1 — The Basics
D3 is a powerful Javascript library for manipulating the DOM based on datasets. This is the first in a series of posts in which I will cover basic techniques for building charts and graphs using ...
Aug 13, 2013
Angular.js – create reusable HTML widgets with directives
What is a directive? Angular directives are a very powerful component of the Angular framework. They can control how the page is rendered in many different ways. Many of the attributes and tags built in ...
Aug 9, 2013
I Wish I Knew Then What I Know Now — Life With AngularJS
AngularJS is a powerful if stubborn Javascript framework. What follows is simply a list of things that I wish were clearer to me when I started working with AngularJS. Hopefully, someone just starting with AngularJS ...