For more than a year, people have been asking us how they can better organize their JavaScript application code. And for more than a year, we’ve been working on an answer to this question. At Bocoup, we’ve realized that modern client-side web applications present complexities previously only seen in server-side development. Maintaining separation between data […]

Tagged:

Whenever you ask for a page on the web, your request has a lot of data attached to it. One part of your request (the “user-agent” string) describes your software environment—usually your operating system and your browser’s name and version number. Like many things on the web, this data is a convention, not a law. […]

Tagged:

CC BY-SA

Late last week, excitement buzzed here at Bocoup, when David Humphrey of Mozilla dropped us a line with links to a Firefox nightly build that had added rudimentary support for a set of DOM Joystick events. Several hours later we, along with Jason Orendorff and TedMielczarek of Mozilla, put together a couple of prototype experiments […]

Tagged:

Bocoup is excited to be working with Gradient Studios to port the hit mobile game Fieldrunners, by Subatomic Studios, to HTML5. This is the third in a series of weekly development blog posts. Last week we posted a demo of our WebGL port of the Fieldrunners particle system. What I didn’t mention in that post […]

Tagged:

Bocoup is excited to be working with Gradient Studios to port the hit mobile game Fieldrunners, by Subatomic Studios, to HTML5. This is the second in a series of weekly development blog posts. Last time, I posted about some basic WebGL particle system benchmarks we ran. We were extremely pleased with the results. The next […]

Tagged:

Bocoup is excited to announce that we are working with Gradient Studios to port the hit mobile game Fieldrunners, by Subatomic Studios, to HTML5. This is the first in a series of weekly development blog posts. One of the earliest tasks in porting an existing game to a new platform is to assess feasibility. This […]

Tagged:

I gave a talk in February on Advanced jQuery Templates that had an interesting and unique twist. Instead of changing slides using traditional presentation delivery methods such as a clicker or a laptop keyboard, I used my smartphone which made asynchronous calls to a Node.js server. The server then propagated events to all connected viewers, regardless of […]

Tagged:

I was recently re-factoring some code under Rick‘s guidance, and we implemented what I would later recognize as the Strategy pattern. JavaScript’s objects and first-class functions make this pattern extremely simple to implement, although you can optionally take some additional steps to add robustness. Background: Design Patterns A lot of my troubles with design patterns […]

Tagged:

CC BY-SA

Google AuthSub follows a common oAuth style handshake flow. Unfortunately, it is not immediately clear how to implement this flow with the AuthSub GData JavaScript Library using their documentation examples or the library’s API. I recently implemented the flow for a Google Contacts viewer that we are working on here at Bocoup, and thought I […]

Tagged:

UPDATE: With some serious modification to the server end point, Luke Morton was able to achieve a single open event that fires message events as responses are received via a “push” from the server: https://gist.github.com/1002722. By modifying the original example’s PHP end point, Luke’s approach was to omit the closing PHP tag (ensures that no […]

Tagged: