Designer. Developer. Writer.

Hi. there..

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

 •  External link

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

 •  External link

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

 •  External link

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

 •  External link

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

 •  External link

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

Pedantic Guide

A collection of style guides and best practices for popular programming languages to write perfect, performance-oriented, memory-efficient and consistent code.

Languages,
Python, CSS, HTML and JavaScript.

Pedantic series
 •  External link

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

 •  External link

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

 •  External link

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

 • 

Negative Margin, Positive Padding

Neat little trick I learned from Joshua Hibbert's website, where he has effectively used this technique to design backgrounds stretching infinitely on either directions but the content respects the width.

 •  Share

 • 

Random Colors in Sass

Randomly generating numbers in Sass is easy using the random() function that was released in v3.3. Interestingly, we can extend this concept to randomly generate colors as well.

 •  Share

 •  External link

Got featured as Geek of the Week

High fives to the folks at GeekPause for featuring me on their blog, as Geek of the Week! Not sure if I deserve the title by any stretch of imagination but I am the first one to be featured there and I am sure that there are many more great folks that will be featured in the coming days.

Read more

 •  External link

Freelance writing Infographics

Coming up with a cost of an article you’re writing as a guest author for some fancy blog could be quite tricky! Largely because you are unaware of the standard rates charged by fellow technical writers in the developer community and either parties do not want to end up on the losing side.

Thankfully, Expand2Web saved us by designing an infographics that aims to address all the queries and conveniently categorizes the cost based on various parameters that will potentially help you make up your mind.

Copywriting Infographic - How Much Should an Online Article Cost? (via Expand2Web). Click here for full infographic.

Read more