michael 📈 👨💻 @mikedecr.computer · 01/06/2026I like language exercises like these, so I implemented some of these functions in Hy, which is a Lisp that generates Python. We like functions right? Would we still like functions if they were **evil**? mikedecr.computer/blog/r-hy/ 000
michael 📈 👨💻 @mikedecr.computer · 20/05/2026scope in Python *is* possible but for your sanity you should ask no more questions 000
michael 📈 👨💻 @mikedecr.computer · 29/04/2026I love the conceptual model of ggplot but believe that implementing the exact syntax feel in python is not desirable or important. The "adding" of the plot components... how much will you suffer for this? I write this helper fn all the time 030
michael 📈 👨💻 @mikedecr.computer · 19/01/2026I don't normally do really oop-y solutions to advent of code problems but it helped clean up the main fns a lot here github.com/mikedecr/aoc... 010
michael 📈 👨💻 @mikedecr.computer · 10/01/2026I suppose this is also less clunky then popping an element only to maybe re-append it 000
michael 📈 👨💻 @mikedecr.computer · 10/01/2026de-structuring the tuples here creates a more pleasant reading experience 100
michael 📈 👨💻 @mikedecr.computer · 10/01/2026did I overly functionalize Day 5.2 or is this just the thing to do 100
michael 📈 👨💻 @mikedecr.computer · 21/09/2025Look, I ride a bike and I want better bike infrastructure, but this is magical thinking. If every car disappeared there would be way more bikes, way more bikers who don't ride as fast as you want to go, so way more bike traffic 030
michael 📈 👨💻 @mikedecr.computer · 21/09/2025will anybody ever want this? idk. a cheaper / better way might be to just define the fns with lambdas 000
michael 📈 👨💻 @mikedecr.computer · 21/09/2025I re-published this post about "lazy" pipeline functions: mikedecr.computer/blog/lazy-dp... Basically, exploring how to make pipeline-style R code more re-usable and composable by abusing partial function application 130
michael 📈 👨💻 @mikedecr.computer · 14/09/2025I wrote a "lazy pipe" operator %=>% that lets you build function compositions from partial function expressions in a linear way. Instead of passing data up front, you define pipeline steps without reference to the data. You get reusable + composable pipeline steps w/out as much function boilerplate 020
michael 📈 👨💻 @mikedecr.computer · 01/09/2025good slide from this talk: www.youtube.com/watch?v=EGLo... 110
michael 📈 👨💻 @mikedecr.computer · 19/04/2025...which will let me figure out why the checking for legal moves is broken. The existing code lets you just bring a piece out of bounds to the left, then when the piece settles it is somehow chopped between left and right sides of the board 100
michael 📈 👨💻 @mikedecr.computer · 19/04/2025- I had to add a few missing pieces? Originally S and Z were somehow blended into one piece, so had to be separated. We had an L but not a J? O needed to be added entirely. - I am now running main() using typer, which lets me easily pass CLI args. This is very convenient for activating "debug" mode 100
michael 📈 👨💻 @mikedecr.computer · 19/04/2025The game display looks like this. I have already fixed a few things about it: - colors were random which was confusing. I didn't expand it to full colors but did add some classics: I=blue, O=gray, T=yellow - pieces were rotating counter-clockwise-only so that had to get fixed 100
michael 📈 👨💻 @mikedecr.computer · 12/03/2025if you can remap keys with either firmware or software I put the EQ here on key tap, and ctrl/cmd on key hold, so it’s on the thumb 110
michael 📈 👨💻 @mikedecr.computer · 26/01/2025i let myself get nerd-sniped by this and I looked up the marginal rates and computed the weighted avg tax rate for some income blah blah 220
michael 📈 👨💻 @mikedecr.computer · 20/01/2025I want a way to search / interact with my archive of tweet data so I began a little project for parsing & presenting the data. extremely WIP, no designs are finalized, just kinda goofing around for starters github.com/mikedecr/twe... 000
michael 📈 👨💻 @mikedecr.computer · 03/12/2024I saw some people talking about "No syntactically significant whitespace Python" which was enticingly evil... I am being too strict about it...function defs aren't even allowed, only lambdas, so the type hints are trying to make it interpretable but now it look messy. Some of my worst filth yet! 010
michael 📈 👨💻 @mikedecr.computer · 09/11/2024"the terminal is a vibe" but playing with personal website themes. Quarto is great but I do not like the Bootswatch themes for websites and hacking on CSS is always miserable for me. Remember the ol' Hugo days? I'm trying to make quarto x hugo go nicely. Theme is github.com/panr/hugo-th... 010
michael 📈 👨💻 @mikedecr.computer · 09/11/2024progressive academics went insane about (a) Silver not using comma-robust or (b) accusing him of finding excuses to invent bad news for Democrats (?) instead of, idk entertaining the face validity that inflation might be a big part of a future story of Dem loss. Lefty derangement about NS is so odd 270
michael 📈 👨💻 @mikedecr.computer · 30/12/2023julia is a delight. an in-your-face type system is good, folks 000
michael 📈 👨💻 @mikedecr.computer · 08/11/2023oh weird, sorting the counting by the average of the two points makes what initially looks like a suspicious vertical symmetry in the data and then you're like wait no obviously the average is between the two nearly-equally-weighted points 😵💫 010
michael 📈 👨💻 @mikedecr.computer · 31/10/2023new silliness in my already very silly {prefix} R package 150
michael 📈 👨💻 @mikedecr.computer · 18/10/2023the hardest thing IMO about writing functions atop dplyr in R is R's evaluation model, and I am not very smart. Julia just gives me :symbols directly so the lispy playfulness is way more on display. The flexibility w/ operators and function syntax make it easy to write what I want how I want it 010
michael 📈 👨💻 @mikedecr.computer · 25/07/2023But the code I'm playing with in the top-linked post lets you do that. More examples in the excerpt: 000