Posts

Showing posts from January, 2016

Beautiful Code Makes Life Beautiful

Image
This is the Part 1 of my post series about good code.

Part 2 : Why I Always Choose Decorator Pattern

There are two kinds of software developers. Those who write crappy code and those who write beautiful code. I'm sure if you are a fan of beautiful code, you'd agree with me. Those who don't agree and those who think I'm stupid, read on.

Everyone has to start somewhere, right? Us, developers, when we start creating our first program, most of us don't really know what design patterns are or don't understand them or why we should be using them. We just jump right into writing code. And then we hit run and the code works. So fucking great!

Atleast, that's what I thought before I start making a living out of my code. Organizations need readable, maintainable, bug free, well commented and well understood code. Imagine we were tasked with adding a new functionality to assembly code. I don't even know assembly because that shit is ugly. Sure, we can talk to the …

New tool to embed git source code is now available at DinkLabs

I have created a new helper tool quickly generate the markup to embed a gist in my blog in DinkLabs Tools Section

Instead of manually typing, I can now paste the gist url and get the markup. It also shows a preview.

Special thanks goes to original Gist-Embed author Blair Vanderhoof.

In order this to work, you should have the following scripts in your blog.

<head> <scripttype="text/javascript"src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <scripttype="text/javascript"src="https://cdnjs.cloudflare.com/ajax/libs/gist-embed/2.4/gist-embed.min.js"></script> </head>
ToDo:
 Add customization options