3 ms·
At my job I was introduced to functional programming with Python with strong typing. I was at first rushing implementing ~50 business rules (which changed week
by TeeMassive 4y ago
At my job I was introduced to functional programming with Python with strong typing.
I was at first rushing implementing ~50 business rules (which changed weekly) on the setup of a system. Then this functional wise kid came along and we did in one week what took me 5 weeks.
Along with that, using MQTT to separate your program with Protobuf makes everything so much easier. Program crashes? Let it burn and let systemd restart it. So much easier to test too.
Our code coverage is 99% if we exclude the main files that initialize everything.
- ayewo 4y agoCan you share more about Python with strong typing?
- TeeMassive 4y agoWe use mypy and we enforce it on the CI. Ambiguous types are forbidden. We catch lot of bugs with this.
- actinium226 4y agoNice, so 4 weeks saved at, what, 40-60 hours per week? So 160-240 hours saved! And you're just getting started!