news
Programming Leftovers
-
Sean Goedecke ☛ 'Make invalid states unrepresentable' considered harmful
I can see why people like this principle. The more you can constrain your software to match your domain model, the easier it will be easier to reason about. However, it’s possible to take it too far. In my view, your software should include as few hard constraints as possible. Real-world software is already subject to the genuinely hard constraints of the real world. If you add further constraints to make your software neater, you risk making it difficult to change when you really, really have to. Because of this, good software design should allow the system to represent some invalid states.
-
Andrew Domain ☛ Gitea_install En
The git server is one of the most versatile pieces of software that you can find around. It has a small and simple core idea, but it does it so well and is so elegant, that it can be used as a lot of things.
The main purpose of a git server is to store a codebase for something, or a collection of scripts, or a collection of notes, or automation workflows and IaaC stuff, or it could be used to store an installer and its dependencies, or to become the backend of some sort of cache.
Its ability to keep track of changes makes it an invaluable tool for a lot of use cases.
-
Great Lakes Consulting Services Inc ☛ Accelerate Your Julia Code with Effective Profiling Methods
In this Julia for Devs post, we will discuss using Julia's Profile standard library for performance and allocation profiling. We will illustrate these tools with example code and then show how to improve the code.
This post will showcase the powerful techniques we used to significantly accelerate our clients simulations, resulting in a remarkable 25% reduction in run time of code that was already highly optimized for performance. The impact of these techniques on our client's work is a testament to their effectiveness and should inspire you in your own projects.
-
Rlang ☛ Building DNA Sequence Alignment With Needleman-Wunsch Algorithm From Scratch – A Note To My Self
-
Rlang ☛ Creating and managing Canvas quizzes with R/exams and vvcanvas
Canvas quizzes can be created with exams2canvas in R/exams and then imported and managed in Canvas using the R package vvcanvas.
-
Rlang ☛ Transfer Learning using ahead::ridge2f on synthetic stocks returns
I pretrain ahead::ridge2f on 1000 synthetic stock returns using Bayesian Optimization, and test its performance on real market data.
-
Perl / Raku
-
Rakulang ☛ 2025.36 Raku.org Reboot
Steve Roe tells us how delicious it is to eat your own dogfood.
-
-
Python
-
Jim Nielsen ☛ Some Love For Python
Personally, I don’t write much Python and am not involved in the broader Python community. That said, I love how this documentary covers a lot of the human problems in tech and not just the technical history of Python as language. For example: [...]
-