Today’s running session smashed me down totally (but I’ve managed to improve my record for 10 km by over 2 mins, what has a great impact on my overall mood :)), so I’ll be brief today:
Data in the fast lane
First, very interesting article I’ve found yesterday. It covers the latest Microsoft announcement - their Research Labs have set a new world record (today is an evening of records, it seems!) in data sorting (including I/O - both reading and writing to persistent storage). Why should we care? Such solutions are a great R&D stuff that may end up in new distributed computing products quite soon - it’s worthy to keep yourself updated about what’s fresh and new.
- deferred objects in jQuery
- callback objects in jQuery
First of those make you able to encapsulate every asynchronous action in an object. What can you do with such an object? Add handlers that are called when object is resolved (asynchronous action is complete - separately for success and fail), add more asynchronous action to the object (so you can wait for all them being completed) and manually mark object resolved. This brings a great palette of options: you can have dynamic content loading based on other dynamic content loading; you can erase dynamic content regardless of which page part it’s loaded in, when somebody logs out (without postbacking full page). Isn’t it awesome?
Callback objects are very similar in use, but they are not bound to asynchronous actions - you can freely decide when they should be executed.
You can read more about those 2 concepts here: