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

2022-06-05

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: 2022-06-05 Sun 14:24

In the mood for some golden oldies.

#NowPlaying

Primus — “Pork Soda”

https://album.link/us/i/1440904337

hackers.town: 2022-06-05 Sun 17:07

A few years with assert in Pytest and I’m completely unimpressed by xUnit-style matcher methods in other test libraries.

hackers.town: 2022-06-05 Sun 17:22

Used to think self.assertEqual(result, expected) or expect(result).to eq expected were just the bomb and now I’m all “WHY ARE YOU MAKING ME REMEMBER ALL THIS WHY CAN’T I JUST USE assert result == expected

I’m so whiny sometimes.

hackers.town: 2022-06-05 Sun 18:54

@jgaskins To be fair, Pytest does some behind-the-scenes trickery so that an assert isn’t just an assert.

hackers.town: 2022-06-05 Sun 19:00

@jgaskins Best examples of what Pytest does with AssertionErrors:

https://docs.pytest.org/en/7.1.x/example/reportingdemo.html#tbreportdemo

hackers.town: 2022-06-05 Sun 20:48

According to the home tests my post-vacation ick wasn’t COVID but whatever the heck it was it sure kicked my butt and took forever to recover.

Wrote my first useful code in nearly a month today.

hackers.town: 2022-06-05 Sun 20:54

@almightyolive In my experience, these are not mutually exclusive options.

hackers.town: 2022-06-05 Sun 21:25

@jgaskins Oh of course that was a Jim Weirich project.

His stuff was always great — not so much magic as helpful shenanigans.

[sighing]

hackers.town: 2022-06-05 Sun 21:28

@jgaskins _why as the heart, weirich as the sould, and dhh as the d—ANYWAYS