-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test for David Conrad #1
base: master
Are you sure you want to change the base?
Conversation
…ds plus a few extras, added tests, use commons-dbutils
Hey David, this looks really good, do you have a current resume? On 6/18/12 3:47 PM, "David Conrad"
|
Sure. You can get it from http://www.codedazure.com/resume/Resume%20-%20David%20Conrad.doc Or, if you prefer, let me know where you would like me to email it. |
David, You were the first person who has actually done this (forking the test and If you would, could you fill out the application here: Put my name (Rob Conklin) in the "Referred By" field in "How did you learn Looking forward to talking to you, Rob Conklin, Lead Software Architect ProQuest...Start here. 2011 InformationWeek 500 Top Innovator On 6/18/12 4:18 PM, "David Conrad"
|
I implemented the methods as requested. I also decided to significantly alter the Person class to make it immutable and not allow null for name, address, or phone number. Avoiding null, where possible and appropriate, is a good thing. I added an allPeople() method to the PhoneBook interface to allow iterating over a (read-only) view of the contents of the phone book. I could have implemented the database calls using raw JDBC calls, but typically that is hidden behind Spring, Hibernate, or at least Apache Commons DbUtils these days. I didn't want to make major alterations to the project for what is supposed to be a quick test, so I just added DbUtils to the project. Let me know if you would like to see the database calls rewritten using raw JDBC calls. Finally, I added a few static methods to look people up in the database, just to show what that would look like. If I have misunderstood any part of what was desired, let me know. All the best, David Conrad.