Tag: web
-
Story Coverage: Measure Integration Testing
TLDR: Integration tests often provide the most bang for the buck, but unlike unit tests, their benefits are hard to quantify. Linking the success of integration tests to user stories can provide a framework to think about integration testing success. Integration Tests Kent C. Dodd’s testing trophy provides a great way to think about the […]
-
Delegate Rendering in Symfony
Warning: pretty advanced Symfony ahead: if you’re not familiar with the framework, this wouldn’t make sense. I recently developed a bare-bones API for Mobshare (it’s not yet live), and to keep everything clean, I abstracted away the rendering bit from the controller to an external class. It ended up being a sweet solution, so here […]
-
Mouse Wheel Handling in Prototype/Javascript
Here’s how to handle mouse wheel events in prototype, code heavily borrowed from other places on the net, but brought together and made unobtrusive: /* Mouse Wheel */ Object.extend(Event, { wheel:function (event){ var delta = 0; if (!event) event = window.event; if (event.wheelDelta) { delta = event.wheelDelta/120; if (window.opera) delta = -delta; } else if […]