Archive for the “Javascript” category

My controlled input dilemma with react & redux

by Cedric Dugas on January 28, 2016

“An input that does not supply a value (or sets it to null) is an uncontrolled component. In a controlled input, the value of the rendered element will always reflect the value prop.”

The input onChange event is something I always…

Thoughts about React, Redux & javascript in 2016

by Cedric Dugas on December 30, 2015

The Javascript language is transforming, with ES6 & new frameworks following different philosophies, if you are currently doing some ES5 with Backbone; it’s time you give it a look before the whole ecosystem changes without you.

To put this piece in…

PhoneGap build, 6 frustrating issues explained

by Cedric Dugas on December 9, 2013

Phonegap & phonegap Build are amazing technologies, unfortunately the documentation does not always tell you want you want to know. Here a compilation of issues I encountered while using phonegap build for the first time & how I solved them.



An html5 app turned native in 10 minutes with phonegap build? It’s possible, kind of.

by Cedric Dugas on December 3, 2013

By now I’m pretty sure you know of PhoneGap. The framework that enables you to put an html5 app in a web view & push it into the different appstore. But do you know about PhoneGap Build?

Intended for the…

Tap & click events in mobile web apps, the madness has to stop

by Cedric Dugas on December 1, 2013

You should know by now that when you click on a link in the ios mobile browser there is a 300ms delay. Not so many people know where this come from, in fact it comes all the way back from…

Extending Backbone.js constructors, the easy way

by Cedric Dugas on October 20, 2013

One thing that really is really annonying with backbone 1.1 is the fact that the options are not passed has this.options anymore in the Backbone.View.

Well simply enough we can add this (or anything else) in the view constructor.

// Compatibility override…

Gluing together Jasmine, Grunt, Travis CI & Github, testing front-end code has never been easier

by Cedric Dugas on July 8, 2013

Battle testing api’s, that’s a pretty common task in the testing world. Now testing the front-end code of an application, or website, that’s a bit newer. Go back 3 years ago and there wasn’t a whole lot of frameworks to…

How to style select, radio & checkbox form elements only with css

by Cedric Dugas on July 4, 2013

Form elements have always been a problem for designers, they are ugly as fuck and never match a website or app style. In an earlier age javascript plugins popped up to solve this problem, at the expense of creating new…

backbone-generate scaffolding plugin becomes better, evolving into Grunt-generate

by admin on May 26, 2013

3 months ago I open sourced bb_generate, a grunt plugin that scaffold files for backbone.js, the idea was to have an easier solution than yeoman to generate a custom scaffolding solution for specific projects.

It seems I was not the only one…

The weird state of mobile web apps

by Cedric Dugas on May 12, 2013

There are countless of articles debating going native or HTML5 for your next mobile app. But with Linkedin recently deciding to going back to native I am really starting to ask myself if HTML5 is still part of the equation…