2,039 reputation
717
bio website
location
age
visits member for 3 years, 6 months
seen 2 days ago

Aug
2
answered Unit Tests work but there are still bugs?
Jun
20
comment What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
@user61852 There is a naming convention. The OP has a convention where everything starts with a capital letter.
Jun
20
awarded  Good Answer
Jun
19
awarded  Nice Answer
Jun
19
revised What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
added 3 characters in body
Jun
19
comment What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
@N4TKD if the entire project was written in that manner, I could get used to it (I wouldn't like it necessarily). I updated my question in regards to working with other devs. The OP was also asking for a reason that the standard is the way it is.
Jun
19
answered What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
Jun
14
awarded  Yearling
Jun
4
revised Unit tests and language-native function calls
edited body
Jun
4
answered Unit tests and language-native function calls
May
26
answered Summarize changes (insertions and deletions) in Git
May
24
answered Looking for good practices on managing branches and developers in Git
May
17
revised Is there a point to unit tests that stub and mock everything public?
added 846 characters in body
May
17
comment Is there a point to unit tests that stub and mock everything public?
In the method that you are talking about, I am making sure that the proper calls are being made. The method's job is to call objectA.foo() then objectB.bar() so that is what I am going to make sure. Suppose at some future date, the order matters. You are able to adjust the test to ensure this. Or that conditionally objectC.baz() will be called, the test will ensure that.
May
17
comment Is there a point to unit tests that stub and mock everything public?
Yes. The method does something doesn't it? So it should be tested. From a testing stand point I don't know if it is using anything private. I just know that if I provide input A, I should get output B.
May
17
comment Is there a point to unit tests that stub and mock everything public?
If the method is private, you don't test it explicitly, it should be tested via the public interface. All public methods should be tested, to ensure that the behavior is correct.
May
17
revised Is there a point to unit tests that stub and mock everything public?
added 272 characters in body
May
17
answered Is there a point to unit tests that stub and mock everything public?
May
5
comment Using only UI testing. Is that Ok?
Some testing is better than no testing. But just keep in mind that you will have a hard time getting good code coverage with UI testing alone.
May
2
answered Stubbing and mocking boundaries