melreams.com

Nerrrrd

Mel Reams

This author hasn't added his/her bio.

Chrome extension of the day

I have a bit of a tab problem. Just now I have 31 tabs open in Chrome. I could tell you I’m going to get that under control, but that would be a lie. I like the way Chrome handles tabs but they do eat up a lot of memory if you have a ridiculous number of them open. Fortunately, my problem is so common that there’s a Chrome extension to.. Read More

What does SOLID really mean? Part 5

First, a quick recap: the SOLID principles of object oriented design are, to quote Uncle Bob: The Single Responsibility Principle A class should have one, and only one, reason to change. The Open Closed Principle You should be able to extend a classes behavior, without modifying it. The Liskov Substitution Principle Derived classes must be substitutable for their base classes. The Interface Segregation Principle Make fine grained interfaces that are.. Read More

Mongo tip of the day

If you use Mongo’s mapReduce, pay close attention to which action you output to another collection with, especially if you’re using multiple mapReduces to perform a join. The merge action doesn’t do what you might expect – it merges at the collection level by overwriting the results of the first mapReduce with any results from the second that have the same key. If you want to merge at a document level, which is kind.. Read More

What does SOLID really mean? Part 4

First, a quick recap: the SOLID principles of object oriented design are, to quote Uncle Bob: The Single Responsibility Principle A class should have one, and only one, reason to change. The Open Closed Principle You should be able to extend a classes behavior, without modifying it. The Liskov Substitution Principle Derived classes must be substitutable for their base classes. The Interface Segregation Principle Make fine grained interfaces that are.. Read More

Productivity tip of the day

I’ve been working through the Learning How to Learn course on Coursera, and one of the things the teachers recommend is using the Pomodoro Technique. When I first heard about it it sounded too simple to work, but you know, it’s actually really helpful. I personally have trouble getting started on tasks in part because I feel like it’s going to take all day to get it done and I.. Read More

What does SOLID really mean? Part 3

First, a quick recap: the SOLID principles of object oriented design are, to quote Uncle Bob: The Single Responsibility Principle A class should have one, and only one, reason to change. The Open Closed Principle You should be able to extend a classes behavior, without modifying it. The Liskov Substitution Principle Derived classes must be substitutable for their base classes. The Interface Segregation Principle Make fine grained interfaces that are.. Read More

Postman rocks!

Postman is one of my favourite Chrome extensions, it’s so helpful. If you work with REST APIs, you need postman or something like it. Yes, you could just use curl, but you could also not hate your life :) Postman lets you easily test your REST endpoints by letting you name and save your calls and add them to collections. You can save your authentication data too and you can.. Read More

What does SOLID really mean? Part 2

First, a quick recap: the SOLID principles of object oriented design are, to quote Uncle Bob: The Single Responsibility Principle A class should have one, and only one, reason to change. The Open Closed Principle You should be able to extend a classes behavior, without modifying it. The Liskov Substitution Principle Derived classes must be substitutable for their base classes. The Interface Segregation Principle Make fine grained interfaces that are.. Read More

Windows tip of the day

Windows actually has a builtin file hash function: in powershell, use Get-FileHash [filename] for a sha256 hash, and add the optional -Algorithm switch (-Algorithm MD5, for example) for other algorithms. If you happen to be using Win8 in particular, stick with the powershell commandlet. Trying to find a windows file hash generator and then get Windows to actually run it will just make you unhappy. Screw you too, AppLocker.

What does SOLID really mean? Part 1

Not so long ago I read an article about SOLID design principles in Clojure and started thinking it would be interesting to talk about those principles more generally. I don’t know about you, but I have a terrible habit of skimming over stuff like that thinking “oh sure, SOLID, that sounds like a good idea” and then promptly forgetting all about it. According to Wikipedia, Robert C Martin (aka Uncle.. Read More