monomon

joined 2 years ago
[–] monomon@programming.dev 4 points 5 months ago

The older is 9, found it challenging in the beginning, but caught on. Younger is 5, definitely not into Pandemic.

Speaking of snakes and ladders, we had a very fun project of making our own. Basically I stole the positions of snakes and ladders from another board, but we drew and painted all of it on thick cardboard. Small enough and really fun project. You can customize to your fancy.

[–] monomon@programming.dev 5 points 6 months ago (2 children)

Funny that you mention Pandemic, we finally got around to playing it with the kids, and it was great. They are just entering the age where they get it.

So far only played the simplified rules, none of the Legacy parts, and beat the game for the first time.

[–] monomon@programming.dev 3 points 6 months ago

In a similar vein, there's an old saying: "A lie travels around the globe while the truth is putting on its shoes."

[–] monomon@programming.dev 1 points 6 months ago* (last edited 6 months ago)

This. We kinda stumbled on this pattern, and use it to great effect. Simplified code:

@pytest.fixture
def tmpfiles():
    with NamedTemporaryFile(suffix=".html") as f:
        yield f

# or for paths, which are more suitable for certain tests
# touch them so they exist
@pytest.fixture
def othertmppaths() -> list[Path]:
    f1 = Path("...")
    f1.touch()
    f2 = Path("...")
    f2.touch()

    yield [f1, f2]
    # you could delete them here if needed
    f1.unlink()

def test_foo(othertmppaths list[Path]):
    result = upload_resource(othertmppaths[0]) 
    assert result.status == 200

The context manager one will properly clean up all files.

E: Pretty website btw

[–] monomon@programming.dev 1 points 10 months ago (1 children)

From what I read, the incursion force brought AA, making it hard for Russian air. Moreover, they did strike a few nearby airfields.

[–] monomon@programming.dev 3 points 11 months ago

Same. Really happy with it.

[–] monomon@programming.dev 1 points 11 months ago

Consumer drones already exist, that can recognize you by face and follow you.

[–] monomon@programming.dev 1 points 1 year ago

Concepts like Reactive programming are widely used in web/UI contexts. The problem of connecting a UI to an underlying data set is not trivial. Several frameworks deal with this.

As was already said, concerns like Accessibility are studied academically. They have more to do with user experience than the technology, so not sure if they match your question.

view more: ‹ prev next ›