Apparently no-one wants to write unit tests, but I enjoy it, do it well, and even find it relaxing.
I’m always confused by my peer’s reluctance and grumbling thereabout, and horrified to see the incomprehensible mess of (often useless) tests they produce in the end.
Do you have any high quality resources on testing you would mind sharing? I’m mostly a self taught programmer who loves TDD, because I’m shit at writing code.
I would whole-heartedly recommend Robert Martin’s clean coding lecture series. It may be many hours of your life, but it is free on youtube and well worth the time. I don’t exactly recall what he says about testing in his lectures, but it’s probably pretty close. If nothing else, it will teach you to critically consider programming structure in the abstract (instead of following formulae), and to write code with the intent for it to be read and maintained by humans.
I think he also has a series that includes “structured programming” (like early return vs deep nesting), but was unable to find it last time I looked for it. I recall having a shocked epiphany when he (i THINK it was Martin) demonstrated the exact way to clean up a function, that started out ugly, and ended up being reduced to literally nothing (the function was removed).
Awesome thank you!
I’ve heard tell from a primary source that sailed with him that there was a Marine Engineer on a Greek passenger ship that was drunk all the time and basically completely useless except for one task.
Due to an unfortunate design flaw if one of the sewerage tanks overflowed it filled up the compartment that held the isolation valves to the tanks.
His only job was to swim into the raw sewage and dive down to the valves and shut off the overflowing tank so it could be pumped out.
I think I understand why he was drunk all the time
Honestly this applies to a lot of people in civic service. Not rich politicians, but the people trying to run your local or state government. Often the races are uncontested, because they literally can’t find even one other person who wants the job. Some of them are incompetent or pursue these jobs for power-seeking reasons, but many of them have their hearts in the right place and want to give back to their community, often while fighting ridiculous red tape at one end while contending with threats and harassment from citizens at the other. And the pay is often terrible. My local city council positions would qualify you for food stamps/EBT.
We pay our city councilmen $6,000/yr. The “big” city of which we’re a suburb pays them $27,000.
I think the logic behind this is that it is supposed to be a part-time job, but in reality it’s not.
The logic behind it is that it’s a
bribe“tip”-based system. The “tips” often provide more than a living wage, so it really works out better this way!
My mom, she was better at being a mom than I might’ve thought when I was younger.