Collecting my attempts to improve at tech, art, and life

2024-12-02

Tags: hackers-town

Does any of this enlighten, entertain, or otherwise please you? Please consider a Tip. Every little bit helps!

I last updated this page

Activity Log

hackers.town: 2024-12-02 Mon 12:33

@kirch @djsundog I was just pondering a documentation project this morning the visual design of which would be five minutes with frames.

Ah well I’m sure the hours of figuring out components will be good for my resume.

hackers.town: 2024-12-02 Mon 18:07

@jacobydave you could use a generator function with yield, or build yourself a list comprehension.

not necessarily the best solution – that would likely be a generator function – just the one that popped in my head fully-formed. Most of Python’s surface level conveniences require fiddling around a level lower.

hackers.town: 2024-12-02 Mon 18:32

@jacobydave right, that’s one of those things that’s just so much easier to say in Perl.

My brain is on other tasks, but doing a quick skim of other folks’ Python solutions this one seems reasonable:

https://algo.monster/liteproblems/221

hackers.town: 2024-12-02 Mon 18:41

@tek It’s our fault for not sticking with Perl.

hackers.town: 2024-12-02 Mon 18:42

@tek (though TBH one of the more enthusiastic coding assistant proponents I know of uses it for mostly Perl so that joke doesn’t really work)

hackers.town: 2024-12-02 Mon 23:01

git commit -m "feat: the rest of the owl"

hackers.town: 2024-12-02 Mon 23:05

It’s an owl with one wing and three legs, but – you know – time constraints.

hackers.town: 2024-12-02 Mon 23:18

@TerraGloba I’ll have to revisit WebMentions at some point, but to the best of my knowledge the structure and flow would be about the same. Minor differences of preference, as I currently prefer Nushell to jq.

And oy sorry about the busted link. For the moment:

https://randomgeekery.org/post/2020/05/querying-hugo-content-with-python/