26 points · by dnewms · 12y ago · 33 comments
Relying on Twitter was a truly bonehead move, to be sure. Truly a "bang head here" kind of moment.
However, if trusting Twitter was the only "poor engineering decision" I had made I'd be a very happy man. It was just one of dozens of bonehead mistakes I made in building and operating my first aquaponics system.
Aquaponics is one of those things where the path of least resistance is definitely following a set of plans that are known to work. You can find one of those on my site, and some other places too. But I've never one to follow the path of least resistance (eg. Screw the round wheel - I'm making mine with fractals).
In case anyone's interested, I'm a former electrical engineer who used this as my first attempt at something with Arduino. More of a power-systems and lighting guy, software development was and still is a foreign land to me.
I could have tested and researched the reliability of different notification platforms, but at the time I was building it I was already staying up late fixing plumbing problems and trying to get those d*&$ one-wire sensors to work consistently.
Thankfully I eventually got my plumbing and sensors working, and bungled along into into Zapier which has been absolutely bulletproof.
I think the truly useful lesson here is that if you ever meet anyone in aquaculture who can tell a good story at a party, plop yourself down and ask them if they've ever killed fish in any bizarre and interesting ways. Don't get up for drinks either because you won't want to miss anything. You'll be there all night.
"The Twitter Entities make no warranty and disclaim all responsibility and liability for: (i) the completeness, accuracy, availability, timeliness, security or reliability of the Services or any Content; (ii) any harm to your computer system, loss of data, or other harm that results from your access to or use of the Services or any Content; (iii) the deletion of, or the failure to store or to transmit, any Content and other communications maintained by the Services; and (iv) whether the Services will meet your requirements or be available on an uninterrupted, secure, or error-free basis."
Clearly it was never meant as a reliable communications channel for any sort of M2M application where failure could result in significant economic loss or a threat to human health or life.
Whether or not Twitter is more or less reliable than any similar alternative doesn't really matter that much, especially if none of the alternatives offer anything more than best-effort service with no guarantee of reliability.
The fact that Twitter was (at least superficially) suitable for this sort of application was probably not intended by Twitter's developers, nor was the existence of the pathological corner case that ruined OP's fish tank anything more than a unfortunate coincidence.
It absolutely sucks that OP's fish died, but if Twitter explicitly disavows any sort of loss because of the possibility that their service might change or fail, it's doesn't seem reasonable to just ignore that and assume otherwise. Especially for an application where it doesn't matter if the service is up most of the time if it ends up failing during the brief period where it's needed the most. And if you are aware of the limitations of some aspect of your system, it then becomes possible to design redundancy into the other parts to compensate. I hope OP's next fishtank adventure keeps this in mind.
One of the advantages of using something like Twitter is that if you're a regular user, you'll have a good idea of when it stops working altogether or is experiencing significant reliability problems. That there's a failure mode where they silently break your app but nothing else sure isn't mentioned in the TOS.
A poor engineering decision killed the fish.
I see all sorts of crazy contraptions people have rigged up over the last 5 years since the appearance of the 'maker movement'. Surprised that fish are the only victim so far!
Sure you can wire up your coffee machine to listen for a tweet and have coffee ready for when you get in... then when you get there your flat is on fire...
Excuse the cynicism but as a professional engineer it scares me how dangerously and poorly thought out some of this sort of stuff is.
I see our options as: a) be condescending dicks every time a novice makes a novice mistake, b) leave enormous amounts of technical value untapped until professionals can get around to it, or c) use our professional engineering smarts to build tools that amateur engineers can succeed with. I favor C.
I pick a combination of (a) and (d). If someone does something dangerous and stupid we have to snap out of our predisposition to feel sorry for them. Ridicule is fine. As long as you then tell them how not to make the mistake again and why it was bad. When I blew up the fume cupboard at school due to a hydrogen gas explosion I didn't receive or deserve any sympathy but I apologised to those who were showered with glass :)
Option (d) which you missed is not to build them tools but teach them how the universe works and give them the knowledge of how to make their own tools.
Any fucker can stick an LED in arduino with a series resistor picked from a web form. However when someone gets the IV curve, the difference is remarkable.
A1) Be assholes.
A2) Point out mistakes to share the benefit of your experience.
The problem is that people have a real hard time distinguishing between A1 and A2, and this drives a lot of people to say that we shouldn't even try for A2, and just try to build stuff so people can learn from our experience without the troublesome burden of communicating with us.
But that sort of compassionate oral tradition only takes us so far. The number of people who will ever approach the level of a professional engineer is small. I think if we want to squeeze the full value out of digital technology, it's going to have to be approachable to the non-expert. Being compassionate in discussion can help there, but I think it's even more important to be compassionate in construction.
I trained as an industrial electrician before becoming a professional programmer (I programmed long before either) so I have an incredibly healthy respect for electricity and machinery.
That said I also think the benefits of putting hardware and software into the hands of talented new users is well worth the (potential) downsides, I broke many many things to learn how to not break things, that is how you progress in the early days.
The horses are on fire.
Agree entirely though.
This is like not starting your emergency generators on a regular schedule and then being surprised that the fuel filter clogged.
He shouldn't blindly trust that SMS will work for for his application, using his setup, either. What if he forgets to top up the account for the device sending out SMS? That would not be the fault of the SMS system.
Half of people are below average. Everybody is ignorant about most things, and they're always learning. I have no reason to think that this guy didn't make a reasonable novice mistake. I'd rather encourage novices to try things. Telling them after the fact, "Fool, you should have known!" only discourages them and other novices.
Personally, I appreciate him producing an interesting article that will help other novices avoid his mistake.