Re:Ask HN: Programs that saved you 100 hours? (2022 edition)
by ayewo on Tuesday December 20, 2022 @04:09PM
(#34072601)
Can you share more about Python with strong typing?
Re:Ask HN: Programs that saved you 100 hours? (2022 edition)
by TeeMassive on Tuesday December 20, 2022 @07:48PM
(#34075205)
We use mypy and we enforce it on the CI. Ambiguous types are forbidden. We catch lot of bugs with this.
Re:Ask HN: Programs that saved you 100 hours? (2022 edition)
by actinium226 on Thursday December 22, 2022 @08:57PM
(#34101493)
Nice, so 4 weeks saved at, what, 40-60 hours per week? So 160-240 hours saved! And you're just getting started!
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.