I have written quite a lot about how to follow SOLID principles, but one thing that can be useful is examples of where a principle is not being followed. What does your code look like when it wants to tell you something? Here are the signs that you broke the Interface Segregation Principle (ISP). Here […]
You can subscribe to the typescript tag micro-feed.
Rather sadly, the FirefoxOS project got binned, which removed the momentum of the device sensor APIs that Mozilla was the big sponsor of. What this means for these APIs is that, while many are actually well through the standardisation process, the browser support is sketchy. Your motion and orientation sensor will show you very low […]
I had a feeling I would be writing this article when I first penned TypeScript Mixins Part One back in 2014. For simplicity, I have used exactly the same program in this updated example, so you should find it easier to compare the simple mixins from the olden times, with the real mixins in this […]
There are lots of ways to make an identity immutable and unconfusable. I’ll show just a couple, but first the principle behind it. Your identity should be immutable, because you will accumulate lots of threads back to your item that need that identity. If the identity changes, you will be breaking all of the relationships […]
A long time ago I wrote that you should Stop Mixing TypeScript Internal and External Modules. Well it is time to update my information on this point… because they are now called namespaces, and modules. So my update is simply this: Stop Mixing TypeSCript Modules and Namespaces Let’s back this up with a bit more […]