Posts
Please Don't Do This
So I was working with a popular, open-source C library and came across something like this:
#if defined(!WINDOWS) // Make things portable #define closesocket close // etc... #endif I’m not going to state which library as the details don’t really matter here.
Please don’t do this! My code was written in C++ and used another C++ cross-platform wrapper library that had its own class members named “closesocket” and “close.” For the sake of clarity, let’s call them Lib::closesocket() and Lib::close().
Posts
CLion’s New UI is Crap
So I use CLion as my C++ IDE at work. One reason why I like it is that it doesn’t really force you to do things its own way like many other IDEs do. It’s pretty flexible in letting you do things the way you like best.
The latest update includes a beta version of the new UI that JetBrains plans to move all its IDEs to. I’m not a fan.
Posts
The Blog Has Returned
So after a long hiatus, monkeying around with several different site solutions, and so on, I’ve resurrected my blog. Instead of using Wordpress or anything like that, I’ve decided to go with Hugo instead.
I realized that since this blog will be static content, I can use a nice static generator to create it and update it via rsync or similar technologies. I also don’t care about lacking the ability for people to post comments as, frankly, most of them are spam and I don’t want to deal with it.