YouTube Version

As I face a future in which my current career becomes a relic of the past, one of the things that keeps rearing its ugly head is the question “What language am I going to code in?” Of course the very fact I’m asking this question at all betrays a lot of my underlying beliefs around coding thus the purpose of this post is to discuss the question as well as those beliefs. For starters, I’m going to be forthright and address the obvious baseline assumption. If I’m no longer a software engineer, does this even matter? Well as it turns out this is a rather complicated question but at the end of the day I basically believe that coding is a valuable skill, even if only used for personal projects. Thus it is not one that I’m willing to just be done with, so to speak.

But to take this even further, how often am I coding on my own? Well as it turns out - not very often. In fact over the last couple of years, outside of bash scripts (used for automated jobs on my home servers) and home assistant scripts / templates I have only written code for my personal use twice over the last year. One of these projects was a still not complete Cracker Barrel “Pryamid” game solver which in theory would determine the most optimal solutions for “boards” of any given size. That project has yet to be done mostly because I just lost interest in it before I could actually finish it. The second project was a quick piece of code I wrote last week that basically took the export of my “Portly Poet” book (originally stored as docx and exported to a huge markdown file) and split out each poem into a separate file and into the desired folder structure. That project was completed last week and enabled me to upload all of the content from that book to this website. That content is now freely available within the Verses section.

Both of these projects were written in C# / .NET. Why? Well that’s the language I have the most experience with as I have been using it professionally for years on end. However that language is totally tied to Microsoft and whatever ambitions they currently have. If you are a frequent reader of this blog, then you know that I’m also fully dedicated to removing all vestiges of Microsoft technology from my life. This of course represents a conflict that I now want to resolve. In addition, one of the things that I’m growing more and more tired of is the endless churn associated with current technology platforms. To be clear what I mean by that is that every 18 months, Microsoft releases a new LTS (Long Term Supported) version of .NET and these major releases tend to include breaking changes.

I’m more than a little tired of that. As a professional, I’m fine dealing with that because keeping up comes with the territory. However as a more casual user I gotta be honest: I’d rather not deal with it. But that isn’t the whole story. Maybe I end up sticking with C# / .NET here. The reality is that as a development platform its exceptionally well supported on Linux and on a wide variety of other OSes including BSD variants. The tooling around it is solid and widely available. I can also use VSCodium instead of VS Code and there are open source replacements for every extension I need so I can effectively do this without relying upon proprietary Microsoft code.

But rather than give up before we even get started here, let’s delve into what the realistic alternatives are. Lets do that by defining what the criteria are for choosing my new casual coding language. As we discuss each point, I’ll discuss how each of the languages I’m actively considering measures up.

  1. Universally Available

    One thing that would be very nice would be to simply know that the tools required to do basic work with the language in question, are easily made available either by virtue of being installed by default or via a core operating system repository on whatever non-minimalistic Linux distribution I choose to use (both in terms of bare metal and container installs). I’m specifically excluding proprietary operating systems and mobile operating systems from this consideration, so your mileage may vary widely here. The fact is that as a casual user, I don’t care if a language is easy to use on either Windows or MacOS because I choose not to use either one of those operating systems. Regarding mobile operating systems, I don’t approach mobile operating systems the same way I do desktop operating systems. Mobile operating systems are less about coding and building things and more about remaining connected and consuming things. As usual, your mileage may vary.

    .NET halfway satisfies this requirement. It’s generally not installed by default but it is generally accessible as a package to be added when it comes to most Linux distributions. However there are other languages that do a much better job in this regard, namely… Python. Yes I regret to inform my readers, but despite my years long hate affair with Python, it’s name is probably going to come up a lot here, because as it turns out, it satisfies a lot of the requirements we are discussing today.

    One of the other alternatives I’ve been toying with in my head is Lua. It is available by default in some cases and installable as a package in others from what I’ve seen. But the flip side of this is that sometimes the shipped version of Lua included with distributions is quite old at times. For example on one of my Raspberry Pi OS boxes, it has lua 5.1 installed by default (or perhaps as a result of something else I’ve installed) which is really old. However the Debian repos also contain the latest 5.5 version as well.

    Finally I’m also considering Ruby as well. However unlike Python and sometimes Lua, it does not appear to be distributed by default very often. That being said, it does appear that Ruby is available as an installable option from most distro repositories.

  2. Open Source From Start To Finish

    Whatever language I pick, it must be open source. This includes the language itself along with all of the tooling required to work with it. I’ve been doing this long enough that I know that adding yet another proprietary tool into my life is more likely going to be a decision I come to regret so I’m not going to do that. .NET checks this box of course, but its use of the MIT license tends to result in kvetching on the part of purists. From my perspective at the end of the day the MIT license is good enough and I can live with that.

    Python appears to have a GPL compatible license and Lua seems to also use an MIT license. Ruby has it’s own license with a dual clause attached to it - meaning its compatible with itself, the GPL license and the BSD license. Honestly I’m not sure I fully understand the dual licensing thing, but nobody seems to be complaining about it, so its not likely an issue worth worrying about. In any event the MIT, Python and Ruby licenses are all Free Software Foundation approved and that’s good enough for me.

  3. Actively Maintained, Developed and Supported

    This one ought to be obvious, but the last thing I want to do is to pick a dead language for my future casual coding. Of course that in and of itself is a double edged sword as in our industry something that is actively maintained is generally something that you can assume will make breaking changes from time to time. .NET has codified this pretty well with their version number system so its easy to know when you can expect to have to deal with at least some breakages.

    Lua, Python and Ruby just like .NET are being actively maintained. Lua sees far fewer updates, but it is maintained. Python is obviously very active and very well maintained as it is one of the most popular languages in the world. Ruby is also seeing new major releases each year. Python like .NET seems to have a very well defined support lifecycle and appears to support older releases far longer than .NET does. Lua on the other hand doesn’t seem to have a well defined support cycle, but looking at their versions page, they seem to support most releases for at least five years. Ruby seems to support each release for about three years.

  4. Easy To Use Tooling

    So the one thing I don’t want to do is to pick a language for casual use that requires me to spend a ton of time getting to know various esoteric and specific tool sets to make things work. This is one reason why .NET is even being considered as a contender here. It’s command line tooling is quite simple and easy to use, plus it helps that I already know how to use them. I don’t want to spend my time fucking around with Makefiles or Build Scripts. I want to be able to quickly code up small programs and scripts and be able to run them with minimal effort on my part. I also want to be able to have tooling support within VSCodium as it is my preferred IDE and works very well with container systems like Distrobox, which is what I use for the development environments I setup on whatever Linux distribution I’m using (currently Bazzite).

    Frankly all four contenders check this box. Python is of course just insanely well supported because its basically universal and has become the language for “n00bs” (sleep well BASIC my old friend). Ruby and Lua both have a very simple system for compilation and execution.

    Finally I think at this point I just have to say: It’s kind of awesome that we have all of these languages being made freely available to us with this kind of free tooling and update support. Every single one of these options has been around for quite awhile and all of them are arguably quite mature. It’s even more amazing when you consider that this blog post is only scratching the surface in terms of examining all of the available options.

  5. Not Tied To A Sinking Ship

    This is probably the biggest black mark against .NET as I really really don’t fucking like Microsoft nowadays. Of course my career started off working in Microsoft platforms (writing medical system data conversions in Visual Basic 6) and it seems that is where my career is also going to end. This is a shame because one of my longest unfulfilled career goals has been to get completely away from Microsoft products. Sadly I have clearly failed at that. However if I am to claim even a semblance of victory, .NET cannot win this competition. So with that in mind, I will not be picking .NET.

    This is also the reason I have ignored options like Java. Java is a multi-year mess and it’s tied to a tech company even worse than Microsoft, Oracle. I want nothing to do with anything that even has a chance in hell to breathe the same oxygen as any Oracle Executive, much less Larry Ellison himself. I have watched that company screw over FOSS for years and even go so far as to attack their own customers. The ship for me on Java sailed a long time ago and it ain’t coming back to port. This includes Kotlin as well as it basically is a wrapper around the Java Virtual Machine.

    I can tell you a similar story with Go. Fuck Google. I won’t be escaping their influence anytime soon sadly (thanks YouTube and Chromium), but I can do my damnedest to avoid them whenever possible past that. Another option, PHP, is something I just pretend doesn’t exist because its one of the least secure things developed on the planet, perhaps only coming in second to its hell spawn, WordPress.

  6. Not Irredeemably Stupid

    So now we address the elephant in the room. Why not Javascript? It and its syntax chameleon TypeScript are two of the most popular languages in the world. Why am I not even giving them a chance? Well… that’s simple. As a professional web developer I have spent a lot of time in my life working with Javascript and its various water bra like appendages such as CoffeeScript and TypeScript. I don’t like it. Actually I kind of fucking hate it. Yep. Javascript and its endless stupidity and its inability to fix even the most minor of shitty design decisions from back in the day due to the need to maintain backwards compatibility with every single piece of shitty Javascript written since the dawn of time before Conner McCloud got around to picking up first fucking Gopher browser after dialing into the goddamn Internet on a 9600 baud modem…

    sigh

    Did I get a little carried away there? Yep. I sure did. Well let’s move on to another elephant in the room: Python. Anybody who knows me in real life has been reading this post banging their fists and screaming at their screen: “HOW IS PYTHON EVEN ON THIS LIST?”

    So yeah umm…. I have been famous for telling people I know how much I hate Python for years on end. Why? Because they fucked up division in the original versions. Now to their credit they fixed and it was a massive breaking change that split the Python user community into two parts for years afterwards. Don’t know what I’m talking about? This Stack Overflow post illustrates the problem perfectly. That my friends is what I call irredeemably stupid. Like the immoveable object that I am, I refuse to budge, thus Python has been dropped from consideration.

    The real question you have to ask yourself is, did I include Python just so I could have an excuse to yet again share how stupid I think it is? The answer is simple: No I didn’t. I treated it as a serious contender, but as it turns out, I’m not ready to just “get over it” yet. Maybe in a decade or two?

  7. Not In my Bag of Holding (for Excuses)

    Regarding Swift, I don’t hate Apple as I’m an iPhone, AppleTV and HomePod user. But that doesn’t change the fact that I just don’t care about Swift. The same goes for Rust. Sure it seems really cool and everybody is all about Rust, but as a future casual coder, I’m not chasing those kinds of waterfalls anymore. This is purely a practical decision that revolves around my intended use cases: Doing very small scale things that either solve a problem or entertain me. I want established, stable and refined. Not new and exciting. I will leave the rest of it to the whipper snappers out there!

    The last serious options we should discuss are C and C++. Those are great languages and perhaps the greatest most important pieces of software ever written were written in those languages (seriously). While I have dabbled in both over the years, I just don’t like them for this purpose. I’m a big enough fan of C-Style syntax (ala my use of C# for decades on end) but screwing around with pointers and things just feels like the exact opposite of the kind of shit I want to focus on as a casual coder.

    To be crystal clear: I’m not throwing shade at any of the languages mentioned in this section… so don’t worry.

Well we’ve reached the end of the list. That leaves me with two remaining contenders of the original four:

  • Lua
  • Ruby

Well shit, I wasn’t sure how this was going to end when I started writing it. Past Jay figured that .NET would probably win because well… it’s literally the easiest option. It requires no effort on my part to stick with .NET as I already know precisely how to use it as I use it five days a week at work. Instead here we are facing a tie. In America we don’t tolerate ties. Somebody must win and we’ll keep on playing until one team cries Uncle or one team makes the other its bitch. Fortunately, this is not America. This is my blog. And this blog post represents my current thoughts on this particular topic which sadly have not reached a conclusion yet.

However one thing you may be asking is how did Lua even get into this competition? It’s not popular. In fact it actually ranks below COBOL in terms of popularity per TIOBE. Well Lua is used as a scripting language for a lot of other pieces of software so I have interacted with it before. But the real appeal to Lua started when I discovered the PICO-8 fantasy console. It uses Lua. And I’ve always wanted to write a simple game for it. An open source alternative to PICO-8 is TIC-80 which also allows for use of Lua to write games. It also allows you to use other languages such as Ruby, Python and Javascript.

Anyway I will keep thinking on this topic and once I reach a conclusion or just have another set of thoughts to share, I will follow up with another post. The next steps probably involve me putting real time into evaluating each language by working on an actual problem in each. In the meantime, feel free to send me your thoughts on the matter. Did I ignore the best language ever made? Tell me about it! Did I shit on your favorite language? Yell at me! Did I narrow down it to your favorite language and you want to sell me on it? Let me know!