Prahlad Yeri

Freelance Programmer and Writer

Why you should never use the dict.get() method in Python

There is an increasing trend towards using the dict.get() method in Python, its very widely used in many tutorials and examples too. Condsider the below example for instance: >>> dd = {'a': 1} >>> dd.get('a') 1 This simple dictionary dd has only one key ('a') and its corresponding value is … Read More

Python Recipe: Combine Multiple Images Into One PDF

Many a times, you come across the need to combine multiple image files (.jpg, .png, etc.) into one single portable document format (.pdf). Maybe, you have a bunch of handwritten notes which you want to organize into one file. Doing that is very trivial if you know python. To being … Read More

How to implement URL Routing in Vanilla JavaScript

In this post, I'll show you how to implement dynamic URL routing in vanilla JavaScript without using any heavy frameworks like angular, vue, react, ember, etc. in less than 30 lines of code! The important attributes you need to know are window.location and more specifically to our purpose, window … Read More

The gimp, the git and the sacred rules that govern offensive behavior

Yesterday, I was reading this heated debate on the GIMP issue tracker which was also perhaps the most discussed topic of the day. Offensive behavior is a very serious and delicate topic, and needs to be handled with care. More importantly, rules should be codified which can objectively determine whether … Read More

Agile Manifesto is problematic

After reading the agile manifesto, I felt like it is too one-sided and imbalanced, it gives too much importance to some aspects of software development and belittles the other. The stuff they give prominence to isn't any extraordinary new age rocket science (though the practitioners of agile try very hard … Read More

« Page 2 / 11 »