top | item 10379263

(no title)

sthlm | 10 years ago

I can recommend to peruse the source code. It's well written and documented. Such projects always put a smile on my face, since they demonstrate how far we've come in some respects:

- We've learned how to write and produce reusable, easily digestable code

- Python gives us a language that is concise, readable

- Frameworks like OpenCV let us do incredible things

- Open Source allows us to share it and collaborate*

- Platforms like Github facilitate the entire experience

10 years ago it took forever to configure my webcam on my Linux machine. I had to scour mailing lists and custom web sites to download various versions of kernel patches. Now my webcam is built-in and it takes 2-3 commands to take something off of Github and have fun.

* Of course Open Source is not new, but today it really seems like "Open Source won".

discuss

order

V-2|10 years ago

What about these magic string: "slouching_alert(QString, QString)"? I don't know Python. Does it work by reflection? I assume these are some kind of bindings to an underlying native API or something? It doesn't look very maintainable...

mkempe|10 years ago

Qt uses slots and signals to control messaging between threads (e.g. the UI and the workers).

The Python binding to Qt is good, but it is auto-generated (from C++) and some of it shows up as non-Pythonic mechanisms or conventions.

zb|10 years ago

Nothing to do with Python, it looks like a Qt thing. Not much the author can do about that.

pyskell|10 years ago

Hey there sthim. Slouchy author here.

I just wanted to say thank you for your comments. It really put a smile on my face to see someone liked my actual code.