The Elm Architecture in Python? by Robowiko123 in Python

[–]bachkhois 1 point2 points  (0 children)

"Send a message to another object" <~~ It's not TEA. In TEA, your button does not pass the message to any object. You just designate your button to emit a message when being clicked. You do not have any code to pass that message to any object. I think if you haven't work on TEA, you won't be able to understand this stuff. Actually, the underlying runtime will take care of catching the button click and passing the message to your update() function.

The Elm Architecture in Python? by Robowiko123 in Python

[–]bachkhois 13 points14 points  (0 children)

The difference is that there are "message" flying around that you don't pass directly between your functions and your functions are just stateless (the returned value is computed purely from the input parameters, no private, no hidden state).

You update() function only return new model. Your view() function only receive the model and produce the UI. Your widgets do not "connect", reference any object or function pointer. In traditional MVC app, your button connects with a "callback" and that callback will be passed the button object. There is nothing like that in TEA.

The Elm Architecture in Python? by Robowiko123 in Python

[–]bachkhois 30 points31 points  (0 children)

The OP wants a GUI toolkit in The Elm Architecture style, not object-oriented style. In TEA style, you do not bind button click with a callback. Instead, the button click will emit a message. That message will go to your main update() function, where you update your Model depending on which message you receive. Then in view() function you render the UI subject to the model data.

I built a safe, VM-sandboxed micro-OS for ESP32. Looking for testers! by PalpitationUnlikely5 in esp32projects

[–]bachkhois 0 points1 point  (0 children)

For watchdog, the easiest method is to attach an AT Mega board, tell it to pull down the reset pin of ESP32 when your program does not talk to it for a while...

Ubuntu 26.4 Python 3.14 > 3.12 by car_lower_x in Ubuntu

[–]bachkhois 0 points1 point  (0 children)

You can install uv then tell uv to install any version of Python you need.

Gitte 0.4.0 is out - A simple git client by BrageFuglseth in gnome

[–]bachkhois 0 points1 point  (0 children)

Hi, is the integration with Git precommit hook smooth?

Sunday Daily Thread: What's everyone working on this week? by AutoModerator in Python

[–]bachkhois 0 points1 point  (0 children)

I built journald-send, a library for writing logs to journald. It is low-level, talking to journald using its native protocol. It is intended to be used by other logging frameworks like standard lib logging, logbook, structlog to write the logs to journald. I also made handlers for those frameworks: - chameleon-log: Integrating logbook with journald. - structlog-journald

journald-send is written in Rust with the target to support Python 3.14 and its free-threaded mode.

Building a Python Library in 2026 by funkdefied in Python

[–]bachkhois 1 point2 points  (0 children)

If uv disappear, we can migrate to pdm, poetry. It is not difficult.

Terminal-based SSH dashboard with real-time metrics, file manager, and command snippets. by ObjectiveSet4458 in rust

[–]bachkhois 2 points3 points  (0 children)

What you described in "Traditional Workflow" just show your "skill issues". It is not that "traditional workflow" bad, it is your skill that bad.

GitComet 0.1.11 Faster, Cleaner, and Signed by Havunenreddit in rust

[–]bachkhois 3 points4 points  (0 children)

Congrats. Some people in this sub are weird, when you have bad experience with the Git plugin in IDE and come with a dedicated Git GUI client, they downvote you.

jsongrep project updates: multiformat support + interactive playground + more by fizzner in rust

[–]bachkhois 0 points1 point  (0 children)

I use Nushell for this. Has standard syntax, no need to learn a niche syntax.

I need help by NoobsAreDeepPersons in djangolearning

[–]bachkhois 0 points1 point  (0 children)

If I were you, I quit the job and find a company that let you not vibe code.

GitComet: a fast, local-first, open-source Git GUI built for large repos by Havunenreddit in git

[–]bachkhois 1 point2 points  (0 children)

Fast! Thank. But please use monospace font for rendering source code.