jQuery deferred

The Deferred object has been in jQuery since version 1.5 but I haven’t had the chance to get to know it until recently – turns out that it’s rather handy to have in your toolset. For a brief introduction, take a look at this link. Cheers…

By on (tags: jQuery, categories: web)

Getting MIME type for file

All I can say is THANK YOU. http://blogs.msdn.com/b/webdev/archive/2013/02/14/getting-a-mime-type-from-a-file-extension-in-asp-net-4-5.aspx and the msdn docs: http://msdn.microsoft.com/en-us/library/system.web.mimemapping.getmimemapping%28v=VS.110%29.aspx…

By on (tags: None, categories: web)

QUnit

Another handy javascript lib for your toolbox, but this time, for a slightly different purpose than usual – unit testing For me, javascript development has always been tied with a sense of uncertainty. I mean, you write the code, check that it works but that’s usually with strong assumptions. What if the DOM element is not there, what if a dependent script is missing. Well, wit…

By on (tags: qunit, categories: tools, web)

Web sockets

Web socket is a technology developed to establish a bi-directional communication between client and server, over the web. It works on top of TCP and hopefully will render hacks like long polling obsolete. It’s supported by all modern browsers with 2 exceptions – opera mini and the default android browser (chart can be found here). Here’s a basic example how to use it along with…

By on (tags: web sockets, categories: tools, web)

sammy.js

Another nice javascript lib that’s handy to have in your utility belt. From the library website - sammy is “a small web framework with class”. I’m sure there’s much more to it than what I will describe here, but there’s one aspect I’d like to focus on: view switching. When building a SPA or another type of ‘front-end heavy’ app, there’s a matter of representing and switching be…

By on (tags: javascript, sammy, categories: tools, web)

CoffeeScript

There’s been a lot of fuss about coffee script in the last few months. It’s a language that compiles into pure javascript. Some people like it, some don’t. So what’s it all about? Javascript causes vigorous discussions. It’s a very specific language – it has it’s flaws but has it’s strengths as well, but most importantly, it allows you to do a lot of things generally considered…

By on (tags: coffeescript, javascript, categories: tools, web)

knockout.js

Knockout is a MVVM framework for javascript. It has been around for a while, but I never spent too much time with it until recently, when pluralsight released a free training that included knockout. My impressions – this is definitely something I could utilize in quite a few places, but it carries a pretty big startup cost, so I’d think hard before using it in a project. First,…

By on (tags: javascript, knockout, categories: tools, web)

CSS Preprocessors – Sass, Less, Stylus

CSS has been around for a while and will stay for a while longer and although I think it’s a good and working ‘language’ it has a few pitfalls – the biggest one being the lack of ability to reuse certain parts. Take colors for example, when you want to style a site you need to repeat the color declaration everywhere you want to set it, so when you change your mind, the only way…

By on (tags: css, less, sass, stylus, categories: code, web)

WYSIWYG, WYSIWYM and all that jazz

So you have a requirement – supply the possibility to create and edit rich formatted text in a web application. Seems pretty straightforward – use a ready editor and you’re done. Now, add some constraints to that, like – the editor needs to be dead simple because the target user does not care about all that semantic stuff (that’s your job), it needs to perform well and be as in…

By on (tags: editors, categories: web)