Apart from __init__, Python's got a bunch of very useful magic methods that most of us do not use in day-to-day practice. This article is all about the dunder methods that can add magic to your python code.
Mike Pirnat wrote about the diaper pattern almost
6 years ago, but the essence of his writing is still fresh in my mind. It refers
to the practice of catching generic exceptions in your code, allowing them to
silently pass through your code which could yield dangerous results.
Its called diaper because it catches all the shit. In practice, it is always
recommended to catch specific exceptions and let the code break for any runtime
exceptions. This principle is not new and has been captured in the
Zen of Python - PEP20.
I wrote a new article for Sitepoint after a while about migrating your web application to the latest version of the Polymer
library. I am not particularly happy with some of the upgrades but the new version certianly makes the library much faster
than its predecessor.
The awesome folks at Webucator converted my article on Regular Expressions in Python
into a training video which can be found here on Youtube. I particularly liked the
concept of transforming an article into a full length training video and I must say that Webucator has done an incredible job.
Webucator also offers customized Python training for public online classes and self-paced Python courses for individual
students on its website. I couldn’t be more happier to recommend them not
just for learning Python but a bunch of other languages as well that they have to offer.
Yet another article for SitePoint toying with the idea of
creating a custom element for a payment form using credit card with Polymer. Lately,
Polymer has undergone few functional changes that has been discussed in this article.
The UX Launchpad team has done an in-depth analysis and a comprehensive
review of comparing the mapping experience on iOS and Android. The article uses a bunch of parameters
to evaluate the user experience on both the apps with no clear winner.
The idea behind this article is to teach rather than judge, with just a bunch of design lessons inspired from studying two
similar products. Do not complain if you find the article too long for your liking!
Few would argue that Codepen has been an indispensable tool for the Frontend developer community. Although, I have been using Codepen for a long time, only recently, I realised that it can also be used to beautify your compressed CSS code.
Not-so long ago I remember writing about CSS Selectors Level 3. Fast-forward 14 months, I'm now writing about the next specification of CSS that aims to improve and enhance CSS3 by introducing wide-range of new selectors and pseudo-classes.