How To Initialize a Go Struct With a Lot of Pointers

I’ve been working on a project using Go Swagger. It can generate your models as golang structs for you. However, if you have a lot of nullable fields, you will end up with structs with a lot of pointer attributes. If want to conviniently initialize that struct with zero pointers of all the pointer fields,…

Performance Benchmarking Your Coding Ideas in Go

I recently switched to working with Go as one of the primary languages that I work with on a day to day basis. I’m still getting the hang of it, but so far I’m enjoying it. I love the set of standard tooling that comes with the language. One of the tools, which is usually…

Parsing & Evaluating Reverse Polish Notation in Python

The Reverse Polish Noation (RPN) is a mathematical notation to define a sequence of steps where the operator follows the operand. This post will show you how to parse and evaluate them in Python. This exercise will then allow us to go one step further and write an Infix Notation evaluator to parse standard simple…

The Best Way To Use a 32-Bit DLL Library In a 64-Bit Platform

We recently transitioned to a complete 64-Bit Windows platform across all our servers and workstation. All proprietary vendor applications already had 64-Bit versions. Almost all of our internal code, written in either Java, Python or .Net, could be easily compiled to a 64-Bit versions. However, our biggest problem was trying to incorporate our 32-Bit DLL…

Why I’ve Been Cheating On Java With Python

My first programming crush was AmigaBASIC, it opened up a new world! Soon, I started going out with QuickBASIC and soon dumped QuickBasic for Visual Basic. We did wonderful things and amazed a lot of people. However, in collage I met C++ and realized what I had been missing with Visual Basic. I needed a…

Python Module Naming Pitfall

I recently ended up naming my Python .py module as the same name as one of the standard Python library modules. This caused an import exception and ended up wasting me a lot of time and left me feeling completely lost for a while trying to debug it. Here is what I did and how…

How To Generate Javadoc Style Documentation For Python

I’m a pure Java developer turned to a 50/50 Java/Python developer. Although I was skeptical about Python initially, but I’ve learned to love the language. Once you stop trying to program like Java in Python, it becomes much easier to see the Pythonic way. However, I do miss the explicitness of Java but have found…

Maintaining Read More Links When Moving From Drupal To Jekyll

I recently switched to using Jekyll to maintain my blog instead of Drupal. I wanted to maintain the front page as headings along with the initial excerpt of the post with a “read more” link at the bottom of the excerpt. In Drupal, this was achieved by adding the snippet <!– more –> where you…