My first coding kata, maybe yours too

kata

I have been reading a lot over the the few months. Mostly books revolving around programming principles and patterns as I figured they would help improve myself. Most recently I read “The clean coder” from Robert “Uncle Bob” Martin. It is basically a compilation of his life experiences and lessons he learned from them. And there is a lot of things to take away from that book. It is a very hard book to put down once started but you should be the judge of that.

Continue reading “My first coding kata, maybe yours too”

Domain name migration without losing SEO

How did that even come up?

I originally started writing another post last week but in the meantime I did a domain name migration. What is a domain name migration you will ask? It is the act of migrating content from a domain to another domain. Not host, domain. If this was about host migration there would be no need for a post as the changes would be straightforward. People may give you a different or more precise description but it is basically what I did. And also what it sounds like. I like to name things so that when they are described or revealed they turn out to be pretty much what you expect. It’s like coding. If I have a piece of code with a method boolean validatePassword(string username, string password) when looking at the code you pretty much expect to see some user retrieval and maybe encoded password validation. You definitely do not expect a session to be started or anything funny like that. Enough with this, let’s get back onto today’s topic. Domain name migration.

Continue reading “Domain name migration without losing SEO”

Serverless’ latest release breaking Babel polyfill?

Here, get some context

Hey everyone, let me tell you about Serverless‘ latest release. You must be thinking “Three posts in ten days after three months absence what got into you JD?”. Nothing particular, well now that I go exercise in the morning and finish work around 5 I have tons of time to do stuff afterwards. Also I keep running into things from that feel blog worty. Indeed, today I experienced what can easily become a nightmare for developers. Broken continuous integration from out of nowhere. Indeed, this morning as I was making the latest adjustments to a project set to move towards production in a few days, the continuous integration broke after merging my latest pull request. The pull request contained minor changes in a configuration but nothing that would be used at any point  through CI.

Continue reading “Serverless’ latest release breaking Babel polyfill?”

Did you notice a MemoryCache problem with decimal precision?

A little bit of context first

Hi everyone. A couple months ago as I was building the CoinzProfit API, I ran into a weird issue with MemoryCache. In order to avoid hitting too often the various APIs CoinzProfit depends on like Coinbase’s, I decided to implement caching. Indeed, a cache allows keeping user calculated profits and various currency rates without having to fetch data too often. In order to save on costs since the app is free and has no ads, I used .NET Core in-memory caching.

Continue reading “Did you notice a MemoryCache problem with decimal precision?”