Skip to main content

Test-Driven Development

I've been programming since my second year at university and I truly enjoy it. A couple of concepts have shaped my style, including that of test-driven development.

With TDD, before you implement any code you write at least one test for it. If you need to check more possibilities in terms of input you add tests. The most important thing is a new definition of software working: it works when it passes its tests.

TDD goes hand-in-hand with being an empiricist. The most interesting concepts are the ones that can be tested and/or verified, and that is when a concept graduates to become a fact.

Software can still have bugs with TDD; tests often miss things. Still, as a core concept it has made me a good deal more productive both in coding and in being an informed citizen.

When I consume media I am constantly barraged with claims that get through my filters. Claims that include no means of verification, no details, names, times and dates, etc. are essentially propaganda, designed to alter my opinions rather than to inform me and allow me to form my own opinions. 

The volume of such propaganda has become overwhelming on social media, and to my loss I closed my Facebook and Twitter accounts a while back. I do better when seeking information on my own than when a fire-hose is inserted in my mind.


Comments

Popular posts from this blog

Betrayal

I caught a student cheating on a final exam this morning. I had a line of sight on them and watched for ten minutes as they took their cellphone out of their pocket, kept it below their table, typed into it, read it, put it away, then wrote on the exam, repeating this cycle over and over again.  I was a bit surprised as the exam was open notes but this student had not attended many of our classes, just stopping by for exams, and I conjecture that they had no notes to open. I confronted the student who admitted that they had done wrong in an inarticulate non-confessional way. By the afternoon they had signed off on the honor code violation report to avoid further investigation and possible sanctions beyond failing the exam.  Is anger the right emotion to feel now? I had a working relationship with the student, although they had not contributed much to it. They had deceived me in order to gain unwarranted advantage over their peers in the class and that is not right. I don't wan...

Holiday Break

I have been teaching for 37 years now, and I go through many of the same things at the end of the Fall semester each year. There is relief at the completion of a significant task (teaching each of my classes) but there is a good deal of physical and mental weariness and aches. I could sleep for several days straight if not for my sleep disorder. By and large my mind is not very sharp and as an introvert I try to be pleasant with loved ones but am not outgoing at all. With age the feeling of being drained deepens in more and more ways. Of course this is when we have, almost every year, taken a road trip to visit birth families in the Northeast, a full day of driving each way, often involving winter weather far worse than what we are accustomed to in NC. I love my birth family members as well but as with my created family I am weary and not very outgoing. The conversation is rarely about me and my day-to-day life but rather about younger family members and family friends that I do not kn...

Collective

Something good happened this week; I was informed of it yesterday when a colleague forwarded an email to me announcing it.  The announcement had to do with our university administration committing resources to something that needed doing; the fact that it had not been done had threatened the safety and work environment of dozens of my colleagues. I was clueless about it until in my job as ombudsperson I heard about it from multiple individuals. 95% of my job as ombudsperson (roughly) is focused on the individuals who come to me, brainstorming about their options and weighing the advantages and disadvantages of each. I've been around my university for over 36 years so I've picked up some knowledge of our system and as a mathematician I have a lot of training and experience in problem-solving. I'm not bad at counseling stressed individuals; professional development at ombuds meetings has helped me a lot with that. 5% of my job as ombudsperson (roughly) is managing upward. The...