Programming Leftovers
-
James G ☛ Filter before running computationally expensive tasks
In “Regular Expression Matching with a Trigram Index or How Google Code Search Worked”, Russ Cox describes a system that allows for code search with regular expressions. It has taken me several reads of the article to understand roughly what is going on, and I still don’t have a full understanding.
-
James G ☛ Ideas for performance testing infrastructure
I wish I had a tool like this in Python, ideally integrated with pytest, that allowed me to measure performance changes per commit.
-
DJ Adams ☛ Separating concerns and focusing on the important stuff
The phrase "separation of concerns" is one that I hear relatively often, but have never until now stopped to think properly about what it is, what it means. It's a concept discrete and important enough to have its own Wikipedia page, but ultimately simple enough to understand in an instant. It's all about modularity, separating code (be that imperative code in a regular language, or declarative code such as we find in our CDS models) into distinct sections, each of which addresses a separate "concern", i.e. serves a separate purpose.
-
Connor Tumbleson ☛ HTML to PDF (PHP) in 2024
Lately I've been obsessed with PDFs and how you produce them while working in a PHP project and the more I dig and learn - the more stressed I feel.
-
Qt ☛ C++20 comparison in Qt (even with C++17🤩)
In the Qt 6.7 release, we enabled support for C++20 comparison and also back-ported some of its features to C++17. This blog post will give you an overview of the comparison enhancements we are taking advantage of and offer guidance on implementing them in your custom classes.
-
Federal News Network ☛ What’s behind a software development strategy at the Agriculture Department
"With Low-code, no-code it's no different than your standard traditional coding. You still have the ability to scan the code, said Jerry Hingtgen.
-
Rlang ☛ Data at Your Fingertips: Crafting Interactive Tables in R
Why Interactive Tables MatterWhen people think of tables, they often picture static rows and columns, a no-frills way to present data. But interactive tables are a whole different story! These tables let users engage with the data directly, exploring it in ways that feel almost hands-on.
-
Rlang ☛ Shiny for Python and JavaScript: How to Add JS Scripts to Your Dashboards
Web developers love JavaScript. And who can blame them, it’s a fantastic do-it-all language for making stunning websites. But what about Shiny and Shiny for Python? As it turns out, you can add JavaScript scripts to your Shiny for Python dashboards without too much trouble.
-
Rlang ☛ How to Use NOT IN Operator in R: A Complete Guide with Examples
In R programming, data filtering and manipulation are needed skills for any developer.
-
Education
-
David Revoy ☛ A free Krita workshop at Capitole du Libre 2024 - David Revoy
In just two weeks, I’ll be offering a free Krita workshop (in French) at Capitole du Libre 2024. This session will be a perfect blend of exploring Krita’s features and sharing valuable drawing tips.
-
Perl Hacks ☛ Advertising Perl
Last weekend, we had a very successful (and very enjoyable) London Perl Workshop. After a five-year break, it was great to see so many old faces again. But in addition to people who had been regular attendees at recent workshops, two other groups of people were there in large numbers—people who had moved away from the Perl community (and who were coming back for the nostalgia) and new Perl users who hadn’t been to any Perl conference before. In both cases, it seems that one marketing move was particularly effective at telling both of these groups about the workshop.
It was a small, text advert that ran on MetaCPAN.
-
-
Perl / Raku
-
Rakulang ☛ Rakudo Weekly 2024.43 One Of 21
Andrew Shitov has just published a new book called “A Language A Day” in which they introduce 21 programming languages, allowing one to compare them for several little projects demonstrating strengths and weaknesses for those projects. And the Raku Programming Language is one of them!
-
-
Python
-
Linuxiac ☛ Python Became Microsoft's proprietary prison GitHub’s Most Popular Language [Ed: But a lot of the world's code is not there though]
GitHub's 2024 Report: Python has surpassed JavaScript for the first time, becoming developers' most preferred language.
-
-
Standards/Consortia
-
Rob Knight ☛ Thinking About Recipe Formats More Than Anyone Should
I've had a note in my todo list for quite a while to get my (admittedly small) collection of recipes on my website. The note mentioned to look into Cooklang which is a "recipe markup language" but I also wanted to see if anyone knew of any other standards I should be looking at before I went ahead. I got a few responses: [...]
-
University of Toronto ☛ The history of Unix's ioctl and signal about window sizes
One of the somewhat obscure features of Unix is that the kernel has a specific interface to get (and set) the 'window size' of your terminal, and can also send a Unix signal to your process when that size changes. The official POSIX interface for the former is tcgetwinsize(), but in practice actual Unixes have a standard tty ioctl for this, TIOCGWINSZ (see eg Linux ioctl_tty(2) (also) or FreeBSD tty(4)). The signal is officially standardized by POSIX as SIGWINCH, which is the name it always has had. Due to a Fediverse conversation, I looked into the history of this today, and it turns out to be more interesting than I expected.
(The inclusion of these interfaces in POSIX turns out to be fairly recent.)
-