Skip to content

Comment on Rethinking temperature, sensors, and Raspberry Piparent

Comments

Maybe the point is to demo RethinkDB features,

given that this is the RethinkDB blog, I'm pretty sure that is the point: a nice little toy example to show what it can do.

That said, the node parts probably could have been done in Python as well and made the entire thing a bit easier.

Howdy! Author here.

I definitely wanted to do all parts in Python but am somewhat allergic to the `while True:` pattern necessary in Python for changfeeds. I haven't brought myself up-to-date on the more recent asyncio library to write the more Pythonic `yield from` for a changefeeds example.

Would you know how to do this in Python elegantly? Because I would love to rip out the Node/Javascript parts.

Still, it kind of seems like a blog for Kenworth demoing someone using a giant truck to race around a track, I mean I guess you can do it, but it doesn't seem like the intended application.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.