Designer. Developer. Writer.

Hi. there..

I'm Pankaj Parashar, 25yo frontend designer and web developer from Mumbai, India. I make things for the web and write about them on my blog here.

Credit Card Custom Element with Polymer

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.

Read more

Scoping index variables in Python

The way scoping of index variables work in Python might surprise a few! This article is all about dealing with them by considering few scenarios and understanding the behavior.

 •  Share

Mapping on iOS and Android

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.

Comparison of mapping experience on both iOS and Android
Google on the left, Apple right. Screenshot grabbed from the original article.

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!

Read more

Beautify CSS code using Codepen

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.

 •  Share

CSS Selectors Level 4

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.

 •  Share

Serving from a cookieless domain?

Google, Yahoo and others for long have been strongly recommending to serve your static assets from a cookieless domain for a faster site. Jonathan Klein, however, questions this notion with the help of a comprehensive article supporting his claim that serving CSS files from the same domain as the base page might be a performance win.

This case study was the result of a recent experimentation done at Etsy and is accompanied by detailed analysis of the top 5 most visited websites in the world. The conclusions are rather surprising given the benefits of serving from a cookieless domain.

Read more

Shorter code is inconsiderate

Allan Reyes wrote an extremely pertinent article describing the pitfalls of writing concise code with the intention of prematurely optimizing the code but ending up making life difficult for everyone. Few downsides discussed in the article accompanied by examples,

The following quote stands out in the article and thus proves that Shorter code is indeed inconsiderate,

Don’t be a prick! Write readable code and write it for others.

Read more

JavaScript Classes

It shouldn't come as surprise that JavaScript doesn't have classes! However, the language is potent enough to match any OO-language and has the ammunition to functionally represent OOP concepts.

 •  Share

Practical Aria Examples

We all know that Heydon Pickering has been doing some amazing work in the field of accessibility. His next project shows us how to make native forms and design components that are part of your application accessible to screen readers.

The results are impressive and I’m surprised how little code is required to make them work. But at the same time this shows how little I know about accessiblity!

Read more

Introducing Pedantic Python

Style guide and best practices to write perfect, performance-oriented and consistent Pythonic code. Written and maintained via Readme.io, an awesome app launched by the incredible folks at Phileas & Fogg.

Read more

Building a Custom Element with Polymer

The natural progression from my previous article on Sitepoint was to explain how easily you can create custom elements with Polymer in as much depth as possible. This article explains the process of creating a custom element to represent pull-quotes in your markup.

Read more

Introduction to Polymer

Louis contacted me with an opportunity to write for Sitepoint and replied with this article. I am quite intrigued with the concept of web components and Polymer appears to be the perfect library to experiment with these technologies at a very early stage.

Read more

Regular Expressions in Python

Regular expressions are hard but this post is not going to make them appear harder. Instead it attempts to simplify the complications that surround the world of regex.

 •  Share

Holy Grail of Script Loading

Well, if you think loading script in HTML is as simple as including the script tag then you need to read this piece by Jake Archibald. The article dicusses various ways in which you can load external JavaScript files in your document, the challenges associated with each of them and how to circumvent problems.

Obviously, there is no clear winner as each method comes with its own set of baggage. But, nevertheless the style of writing is extremely simple yet the depth of topic is immense which is exactly what I like about Jake’s writing.

Read more

Designers Guide to DPI

I wish I had seen this much earlier in my career, but nevertheless it is better to be late than never. All thanks to Sebastien Gabriel for putting up this amazing guide for learning more about cross-DPI and cross-platform design from the very beginning.

Sebastien is a visual designer at Google Chrome and it should come as no surprise given the quality and depth of the article. I am sure reading this article can only make you a better designer and would help you make better decisions the next time you design pixels and adapct them for various devices.

Read more