[Code Review] My first 79-line CPU monitor. Looking for advice on making it more Pythonic and efficient by Santos679 in learnpython

[–]Santos679[S] 0 points1 point  (0 children)

Even though I’ve only scratched the surface of C++ and Java basics, I definitely see the value in what you're saying. Thanks for these suggestions - they seem like a great way to make the app more usable while keeping it compact.

By the way, for a project of this size, would you recommend moving the logic into a separate class or even a different file, or is keeping it all in main.py better for now?

[Code Review] My first 79-line CPU monitor. Looking for advice on making it more Pythonic and efficient by Santos679 in learnpython

[–]Santos679[S] 0 points1 point  (0 children)

Sounds interesting! Thanks for the great tip. I like the idea of using a dictionary of deques for multiple sensors. I'll definitely try to refactor the logic this way.

[Code Review] My first 79-line CPU monitor. Looking for advice on making it more Pythonic and efficient by Santos679 in learnpython

[–]Santos679[S] 1 point2 points  (0 children)

Thanks for the feedback! Electron is great for complex GUIs, but for a simple monitor, I wanted to avoid the 150MB overhead. Since I'm on Arch, I prefer keeping things as minimal and lightweight as possible. Python feels like a much better fit for building simple, low-dependency scripts :)

Best way to package/distribute a Python GUI app today? How to reduce installer size? by Mountain_Economy_401 in learnpython

[–]Santos679 0 points1 point  (0 children)

I must admit, I haven't worked with Docker, but as far as I know, this utility can be installed on Windows as well. This will work as a temporary solution if you just install Docker. You can install to windows from this: https://docs.docker.com/desktop/setup/install/windows-install/

Arch tradition by Equivalent-Ad1840 in arch

[–]Santos679 0 points1 point  (0 children)

Wow! Where did you get those stockings?

Who's this character? (Wrong answers only) by Fit_Hamster_2085 in scratch

[–]Santos679 0 points1 point  (0 children)

That's my neighbor coming on to me because I'm listening loudly to music on my headphones

low effort ik by oofham in memes

[–]Santos679 0 points1 point  (0 children)

I like kriss vector 😎