Avid developer who has a passion for | 

Learn more about myself and what makes me so passionate about various forms of software development.

Updating MongoDB Helper Library

Posted On 2024-03-28

Hi Guys,

I've been quiet, but rest assured, I'm just really busy with things at work.

Speaking about work, I had a task where I needed to access our MongoDB instance to get some data for another system that's using MySQL. I obviously was going to use my handy dandy library and then I realized while it's sole purpose was to be a basic library, I found maybe I made it too basic. >_<

Let me explain, the application that uses the Mongo DB is written in C# and the other system is written in PHP. Not an issue in itself, however, I needed to grab UUIDs and in Mongo, how UUIDs are stored varies between C#, Java, Python, and the now preferred way.

Failing to parse the binary data correctly will mean I'll end up saving the UUID incorrectly, and it won't at all match how C# will render it.

I found a way to resolve that, and with that, I realized my library should have a way to handle this type of situation.

I also realized that there's not much help with formatting the data in general.

Now to be fair, when I originally wrote it, I was mainly using it on a fairly simple project and the applications at my work are anything but simple.

So with that, I decided to spruce up the library and give it more ability.

I also decided to add some unit tests to it and some quality assurance tools to it, so I can be certain the library is working as expected, and it's built well using proper standards.

I haven't fully decided everything that I'm going to add to it yet, but my goal is that it provides more value than it currently does.

Stay tuned, and if you have any suggestions on features, create a new issue on the project's GitHub page.