Click here to Skip to main content
15,887,420 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: How much you feel happy after solve problem of anyone? Pin
RickZeeland27-Jan-22 19:13
mveRickZeeland27-Jan-22 19:13 
GeneralRe: How much you feel happy after solve problem of anyone? Pin
honey the codewitch28-Jan-22 0:03
mvahoney the codewitch28-Jan-22 0:03 
QuestionI'm fairly old fashioned at times ... but should I embrace unit testing? Pin
OriginalGriff27-Jan-22 5:57
mveOriginalGriff27-Jan-22 5:57 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
RickZeeland27-Jan-22 6:11
mveRickZeeland27-Jan-22 6:11 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Marc Clifton27-Jan-22 7:50
mvaMarc Clifton27-Jan-22 7:50 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Davyd McColl27-Jan-22 21:44
Davyd McColl27-Jan-22 21:44 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
RickZeeland27-Jan-22 21:52
mveRickZeeland27-Jan-22 21:52 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Davyd McColl27-Jan-22 22:32
Davyd McColl27-Jan-22 22:32 
If you have good refactoring available, that can help (Rider/ReSharper) because at least it will try to update all usages - often with little or no manual work involved.

If you find that you're often breaking the shape of your API, then create a class in your tests - an adapter - that keeps the api exposed to the tests the same, providing a central place to respond to breaking changes.

However, if your API is constantly changing (mutating, not just being expanded upon), I really hope there's only one consumer - I'd hate to be the one having to chase that down the line! This could suggest altering the dev behavior to not be so "wild", or just making people responsible for completing the refactor themselves - if there's a designated "unit test person" in the group and no-one else bothers to write tests, that's never going to end well.
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing

Which is stupid.

GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
RickZeeland27-Jan-22 22:57
mveRickZeeland27-Jan-22 22:57 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Davyd McColl27-Jan-22 23:05
Davyd McColl27-Jan-22 23:05 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
PIEBALDconsult27-Jan-22 6:20
mvePIEBALDconsult27-Jan-22 6:20 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Mircea Neacsu27-Jan-22 6:34
Mircea Neacsu27-Jan-22 6:34 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Marc Clifton27-Jan-22 7:51
mvaMarc Clifton27-Jan-22 7:51 
GeneralRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Mircea Neacsu27-Jan-22 8:01
Mircea Neacsu27-Jan-22 8:01 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Duncan Edwards Jones27-Jan-22 6:39
professionalDuncan Edwards Jones27-Jan-22 6:39 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
pkfox27-Jan-22 6:43
professionalpkfox27-Jan-22 6:43 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Gerry Schmitz27-Jan-22 7:02
mveGerry Schmitz27-Jan-22 7:02 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
kmoorevs27-Jan-22 7:02
kmoorevs27-Jan-22 7:02 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Greg Utas27-Jan-22 7:07
professionalGreg Utas27-Jan-22 7:07 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
theoldfool27-Jan-22 7:09
professionaltheoldfool27-Jan-22 7:09 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Marc Clifton27-Jan-22 7:53
mvaMarc Clifton27-Jan-22 7:53 
JokeRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
0x01AA27-Jan-22 8:48
mve0x01AA27-Jan-22 8:48 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
trønderen27-Jan-22 9:00
trønderen27-Jan-22 9:00 
AnswerRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
Slacker00727-Jan-22 9:40
professionalSlacker00727-Jan-22 9:40 
JokeRe: I'm fairly old fashioned at times ... but should I embrace unit testing? Pin
englebart5-Feb-22 5:11
professionalenglebart5-Feb-22 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.