Someone on twitter asked me a question about promises a while back. It was a good question about the general use of reject and resolve to manage a yes/no dialog box. The short answer is always resolve with a status indicator – but I think they wanted more of the “why” than just this one specific answer. To understand why, there is some background to dig in to, first: modal dialog results and reject vs resolve.
A long time ago, in what seems to be a previous life at this point, I wrote a small blog post about modeling and creating an explicit return value from a dialog form in a Windows application. Fast forward a lifetime and I’m finding that this knowledge and experience is resurfacing itself in my daily […]
I started a new Backbone/Marionette application this week, and decided to put Babel in place so I can use ES6 features (if you want an introduction to Babel / ES6 features, check out my WatchMeCode series on ES6). I honestly wasn’t sure what benefit I would get, at first. I’ve been playing with ES6 for […]
I’m a huge fan of component based UI development – the idea of having individual functional things in a UI be an encapsulated “component”. Have a search form? That’s a component. The search results? A separate component. That menu system? You guessed it… a component. There are a lot of benefits to doing things this […]
I am all kinds of excited about this – PragProg.com is now distributing my Building Backbone Plugins eBook! This is a huge deal for me and the book, as it will bring the knowledge and experience that I’ve poured in to the book, to the hands of so many more Backbone developers out there in […]
For the many things that I think I got right in MarionetteJS, there are a number of #facepalm things and “WHAT THE?!?!?” things… the most notable being the module system. Let’s face it, this is probably the clunkiest module system ever written – and all because I hate AMD (Asynchronous Module Definition) and RequireJS. It […]
It’s been near a year and a half, but I’m finally working on a Backbone.js project again! I’m excited… the MarionetteJS team has been kicking butt since I handed off the keys to the castle, and there’s lot of new things for me to play with. But almost immediately after starting to dive in to […]