Continuing my theme of learning all the languages, I took the opportunity of a programming puzzle to try out the same approach in a handful of different languages to compare how they work. For an upcoming APL’ers meetup the challenge was set as posed at the end of in this post, namely Maxxie and Minnie The maxxie of a number n is the largest number you can achieve by swapping two of its digits (in decimal) (or choosing not to swap if it is already the largest possible). The minnie is the sm...| Irregularly Scheduled Programming
In this post I describe a useful programming pattern that I implemented, and hopefully provide a gentle introduction to the idea of monads. The motivation for all of this was that I had a {dplyr} pipeline as part of a {shiny} app that queries a database and I wanted to “record” what steps were in that pipeline so that I could offer them as a way to ‘reproduce’ the query. Some of the steps might be user-defined via the UI, so it was a little more complicated than just a hardcoded query...| Irregularly Scheduled Programming
As October rolls around once more, the term Hacktoberfest might pop across your feeds; an effort aiming to encourage people to contribute to open-source software, particularly if they’re new to that. In this post I’ll describe what I’m offering towards that goal. Hacktoberfest has been running since (I think) 2017 and I’ve participated in at least one year - previously contributors who had the requisite 4 PRs merged received a free t-shirt, but I suspect that program became overly cos...| Irregularly Scheduled Programming
In this post I explore some differences between R, python, julia, and APL in terms of mutability, and try to make something that probably shouldn’t exist. I watched this code_report video which describes a leetcode problem; You are given an integer array nums, an integer k, and an integer multiplier. You need to perform k operations on nums. In each operation: Find the minimum value x in nums. If there are multiple occurrences of the minimum value, select the one that appears first. Replace...| Irregularly Scheduled Programming
Gleam vs R I thoroughly dislike ‘hot takes’ comparing programming languages based solely on a “feel” or differential familiarity (“I know this one better therefore it is better) so when I came across a blog post detailing a small learning project written in Gleam I wanted to understand what advantages and disadvantages that language brings to the problem. This post details a side-by-side comparison after rewriting the project in R with a goal of better understanding the approach on ...| Irregularly Scheduled Programming