Popped into bike shop next to office for a quick look. Electric has been taking over for a while but electric road bikes are new to me. Isn't the exercise and efficiency the whole point?
Electric commuting bikes - obvious. Opens up at least twice the distance for cycle commuting. Cheaper and faster than city driving or public transport.
Electric mountain bikes - can just about buy the argument. Go back up the hill more times each day for more downhill riding.
Electric road bikes - 🤪
I'm so tired of stupid bugs caused by the whole "open for extension" OO thing that makes people believe a bunch of function signatures constitutes a full and unambiguous contract, so all you have to do is "program to the interface" then you can plug any old shit together at runtime. See the entire Java ecosystem for examples.
No. Until we can come up with full and unambiguous contract specifications you test specific configurations and that's what you allow in the wild. Like real engineering.
Two major problems have emerged with my Raspberry Pi irrigation system.
1. I'm powering the moisture sensors continuously rather than switching them on to take a reading periodically. This increases the power demand and causes the electrodes to corrode quickly.
2. The battery won't stay charged. I've tried a new battery and a bigger capacity solar panel. Maybe the cheap charge controller doesn't support a continuous load? Or my load is just much bigger than expected. See 1.
🤔
Growing arms and legs and crossed the 2,000 lines of code point today. I wrote a full scheduler for multiplexed repeated events so I can basically add water once a day. Well the point was to learn Rust, right?
Just been round to set up a friend's Epson printer for WiFi printing. What a complete and utter shitshow. It's like they went out of their way to make it hard. Then when it finally works the software lies and says it failed. A cynic would suggest it's a deliberate policy to keep "certified Epson support engineers" in work.
After a few teething issues all hardware and the core software for my raspberry pi tomato irrigator are now working. It's recording weather and moisture data from a trio of small plant pots so I can get an idea of how the actual irrigation logic needs to behave.
I can't collect all that data without drawing pretty graphs however! Thanks to the SVG example at https://github.com/utkarshkukreti/draco I'mnow planning on building the front end in Rust too and serving it all directly from the raspberry pi.
Functional programming and bicycles with a bit of electric guitar. Edinburgh, Scotland.