HackerTrans
TopNewTrendsCommentsPastAskShowJobs

benji-york

no profile record

comments

benji-york
·10 วันที่ผ่านมา·discuss
I have joint problems in my thumbs and have trouble with thumb-heavy layouts, but have found the Sofle V2 to work well for me. For my hands it is important that the center thumb key be directly below the N and B keys, which the Sofle provides.

Details at https://josef-adamcik.cz/electronics/another_year_for_sofle....
benji-york
·เดือนที่แล้ว·discuss
Although that's a different knot (I use the one originally referenced), I taught my kids the knot in the animation and it's worked out well.

Added benefit: adults are impressed when they see my kids tie their laces.
benji-york
·3 เดือนที่ผ่านมา·discuss
By way of experience report: I've been using this app for a week or so on my daily driver and it's been great.
benji-york
·6 เดือนที่ผ่านมา·discuss
I love reST and I think it lost primarily because of distribution. I.e., the people using it did not have large audiences and didn't put much effort into promoting it.

It's a shame because reST is almost as easy on the eyes as Markdown and is much more capable without being too much more complex.
benji-york
·7 เดือนที่ผ่านมา·discuss
> polluted my codebase

I'd love to hear more about that.
benji-york
·8 เดือนที่ผ่านมา·discuss
You might enjoy this video: https://www.youtube.com/watch?v=a9xAKttWgP4
benji-york
·8 เดือนที่ผ่านมา·discuss
> Zig doesn't even pretend to do memory safety - if you don't free something manually it won't get freed

Preventing memory leaks isn't normally what people mean by "memory safety".

As an aside: a common memory management approach used in Zig is to have a dedicated memory pool for an operation and simply free all of the memory after the operation is over instead of freeing individual allocations.
benji-york
·9 เดือนที่ผ่านมา·discuss
I don't think the character is that uncommon in the output of slightly-sophisticated writers and is not hard to generate (e.g., on macOS pressing option-shift-minus generates an em-dash).
benji-york
·9 เดือนที่ผ่านมา·discuss
I appreciate the consideration. I'll be watching Vedro with interest.

I do like the nicer vedro.asserts mechanism. If that works with unittest and pytest it would be really nice. You might get a few converts that way, too.
benji-york
·9 เดือนที่ผ่านมา·discuss
Looks pretty normal: https://playcanv.as/p/apIKHp7a
benji-york
·9 เดือนที่ผ่านมา·discuss
Your first and second points makes sense. They don't matter much to me, but I see how others could value those things.

Aside: I also don't like the hamcrest syntax. I also don't love unittest's syntax but it's OK and it's pervasive (i.e., available in the stdlib).

The third point is where I start to disagree more strongly.

> I like that there's nothing new to learn, the expressions work exactly like they do in any Python code, with no special test behavior or surprises.

This doesn't seem true to me.

> the expressions work exactly like they do in any Python code

Not to my mind. In normal Python, an assertion communicates something that is unequivocally believed to be true, not something that may or may not be true (a test). Let me see if I can explain it this way, I often use asserts in tests to show (and enforce) something that I believe to be true and must be true, before the test can have any meaning. E.g.,

assert test_condition() == False invoke_the_code_under_test() self.assertTrue(test_condition())

The "assert" communicates that this is a precondition, the "self.AssertTrue" communicates that this is a test.

I can 100% see that others might not see/care about the distinction, but I think it is important.

> no special test behavior

Well, that's not quite true. You have to handle the AssertionError specially and do some fairly magical work to figure out the details of the expression that failed. The unittest-style assertions just report the values passed into them.

I don't really like that magic, both from an aesthetic standpoint and from a least-complexity-in-my-tooling standpoint. Again, I can understand others making different tradeoffs.
benji-york
·10 เดือนที่ผ่านมา·discuss
As someone that loves Python and hates pytest, you have my support.

(Although, I don't like using bare `assert`s in tests, but maybe you'll convince me.)
benji-york
·10 เดือนที่ผ่านมา·discuss
I'm not great at electronics, but it looks like it alternates turning on the two LEDs.
benji-york
·10 เดือนที่ผ่านมา·discuss
This is insane and I love it!
benji-york
·10 เดือนที่ผ่านมา·discuss
Stray thought: the way Zig uses first-class allocators might make it interesting for doing things with multiple memories.
benji-york
·10 เดือนที่ผ่านมา·discuss
"Even with a 13% bigger budget, we still managed to spend 92% of our money in 2024 paying contributors for their time."

The Zig Foundation model of paying contributors is really interesting. I don't think I've seen it done on this scale before, but hope it takes off.
benji-york
·11 เดือนที่ผ่านมา·discuss
The Information Society song "Mirrorshades" would pair well with this.
benji-york
·3 ปีที่แล้ว·discuss
This is probably old-hat to you, but I enjoyed this recent StateChart video: https://www.youtube.com/watch?v=-6VzMNoHhtU
benji-york
·4 ปีที่แล้ว·discuss
https://en.wikipedia.org/wiki/Pre-mortem