Access JumpStart 2.0 | Blog
A Rapid Development Framework for Microsoft Access
Recent Articles
TDD – 041 – My Test Writing Spawns 2 New Simple Objects
My next test will be to make a single change to a field’s value from “start” to “end” and verify that the name of that field and those values are returned. Me - last time And away we go. A failing test to change the field's value from one known value to another and...
TDD – 040 – Putting some thought into the next test
Ok, time to review the list and pick something else to start testing. I did spend some time in the article posted by Kent Beck last time: Canon TDD - by Kent Beck - Software Design: Tidy First? (substack.com) I'm going to have to review it some more and probably grab...
TDD – 039 – Kent Beck’s Canon TDD
Kent Beck, a father figure when it comes to Test Driven Development for many people, has an article on "Canon TDD"Canon TDD - by Kent Beck - Software Design: Tidy First? (substack.com) In this article, as I mentioned yesterday, the first thing that he lists in the...
TDD – 038 – Hi, My name is Jon and I’m a “splitter”
I was watching a video with Kent Beck speaking somewhere, I'm not sure which one because there were like 3 different videos. But he was categorizing coders into "lumpers" and "splitters". I apparently am a "splitter" because I'm splitting up my functions like crazy....
TDD – 037 – Still refactoring, am I gonna drop yet?
Given the following code, I am still refactoring it: Private Function FieldChanged(Field As Access.Control) As Boolean Dim retVal As Boolean If OnlyOneFieldIsNull(Field.OldValue, Field.Value) Then retVal = True ElseIf IsNull(Field.OldValue) And IsNull(Field.Value)...
TDD – 036 – Refactor til you drop
The title is a line from an episode of Uncle Bob's clean code video series. He advocates refactoring until you get down to 3 lines of code per function and make sure every function is doing one thing and is clearly named. At least that's what I got out of it. I like...
TDD – 035 – The Fast, The Bad and The Ugly
I added a failing test to my system with 2 issues: One being that the new value didn’t get set to “”, and the second problem being that it did not consider Null any different than the new random value. Two problems we can tackle in our next episode. TDD - 033 article...
TDD – 034 – Null and empty string comparisons
Do I want the Auditor to make sure that if the control is empty with Null or empty with a 0 length string it treats them the same? Or do I want the Auditor to do strict typing? Yesterday's Article I have decided that the Form Auditor class itself will do strict...
TDD – 033 – New Code to Pass the Test, and the Tests save the day!
Now our auditor will need to be a little smarter. We need to check the beginning and ending value of the test text field during the test in the form Before Update event. We won't yet consider canceled BeforeUpdate events, I'll just keep that in the back of my mind for...
TDD – 032 – Refactoring the tests, and a new failing test for an edge case
I'm just finished with the green phase meaning all my tests pass. That means I can refactor. I do have some redundant code in my tests, so i think I will refactor them to make them a little more readable. Here are my tests now: '@TestMethod("Count Changes") Private...
TDD – 031 – Moving from Dictionary to Collection
The last test I wrote which I thought would pass actually doesn't. I wrote a test to add 2 (the many condition) dictionary entries. I think I decided to use a dictionary for saving the changes by the field name, however, the same field name would be changed multiple...
TDD – 030 – Some major refactoring and adding a test
Last time I had just updated a test that was failing so that it would pass. What was happening is that the class initialize module was running and hooking the TestForm event after I was making the change because I had done this: Dim testFormAuditor As New FormAuditor...
Quick Links
About
Our goal is to help people simplify their business by providing software products to streamline their work.
Contact
(630) 423-4994