Click here to Skip to main content
15,887,596 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.

 
GeneralRe: if else Style Pin
John Wellbelove29-Jan-24 1:29
John Wellbelove29-Jan-24 1:29 
GeneralRe: if else Style Pin
MikeCO1029-Jan-24 1:42
MikeCO1029-Jan-24 1:42 
GeneralRe: if else Style Pin
Matt Bond29-Jan-24 2:49
Matt Bond29-Jan-24 2:49 
GeneralRe: if else Style Pin
jschell29-Jan-24 5:22
jschell29-Jan-24 5:22 
GeneralRe: if else Style Pin
Alister Morton30-Jan-24 23:46
Alister Morton30-Jan-24 23:46 
GeneralRe: if else Style Pin
Stacy Dudovitz29-Jan-24 13:56
professionalStacy Dudovitz29-Jan-24 13:56 
GeneralRe: if else Style Pin
jschell30-Jan-24 4:40
jschell30-Jan-24 4:40 
GeneralRe: if else Style Pin
Stacy Dudovitz30-Jan-24 10:38
professionalStacy Dudovitz30-Jan-24 10:38 
To the first question about competence, that may be a bit harsh. We are, after all, human beings, and as such, even the best of us make mistakes. To be clear, while some mistakes can be attributed to competency levels and/or experience, I've also seen errors due to time pressure from the decisions makers, long hours of debugging a nasty problem, or other factors which can contribute to bugs.

Hence, my suggestion/recommendation falls more in line with defensive coding rather than assuming that everyone that is not me is an idiot. Your mileage may vary on that point.

With regards to unit testing, even in shops where unit testing is mandated as part of the development process (again, until a time deadline or other external factors discourage the practice in light of external pressures), my experience has been that often unit testing is more to tick off a checkbox than to actually produce maintainable and reliable code. Writing proper unit test code is an artform unto itself, and is predicated on other practices such as one method should encompass exactly one function. (Lets not split hairs on the triumvirate of the types of testing i.e. unit, system and integration tests. In this case I am referring to all three under the single banner of 'unit testing'.)

Bottom line, whatever practice you or your shop choose to implement, it should be purposeful and consistent. My post here was to offer a more thorough response to the original question.

GeneralRe: if else Style Pin
jschell31-Jan-24 4:53
jschell31-Jan-24 4:53 
GeneralRe: if else Style Pin
englebart2-Feb-24 13:43
professionalenglebart2-Feb-24 13:43 
GeneralRe: if else Style Pin
englebart30-Jan-24 14:42
professionalenglebart30-Jan-24 14:42 
GeneralRe: if else Style Pin
Stacy Dudovitz30-Jan-24 16:22
professionalStacy Dudovitz30-Jan-24 16:22 
GeneralRe: if else Style Pin
englebart2-Feb-24 13:40
professionalenglebart2-Feb-24 13:40 
GeneralRe: if else Style Pin
hpcoder25-Feb-24 11:49
hpcoder25-Feb-24 11:49 
GeneralWordle 951 Pin
Sandeep Mewara25-Jan-24 15:53
mveSandeep Mewara25-Jan-24 15:53 
GeneralRe: Wordle 951 Pin
OriginalGriff25-Jan-24 20:27
mveOriginalGriff25-Jan-24 20:27 
GeneralRe: Wordle 951 Pin
Sander Rossel25-Jan-24 20:39
professionalSander Rossel25-Jan-24 20:39 
GeneralRe: Wordle 951 - 4 4 me Pin
pkfox25-Jan-24 21:03
professionalpkfox25-Jan-24 21:03 
GeneralRe: Wordle 951 Pin
GKP199225-Jan-24 21:03
professionalGKP199225-Jan-24 21:03 
GeneralRe: Wordle 951 Pin
ChandraRam25-Jan-24 21:47
ChandraRam25-Jan-24 21:47 
GeneralRe: Wordle 951 Pin
StarNamer@work26-Jan-24 0:06
professionalStarNamer@work26-Jan-24 0:06 
GeneralRe: Wordle 951 Pin
Cp-Coder26-Jan-24 2:46
Cp-Coder26-Jan-24 2:46 
GeneralWindows 11 venting Pin
cegarman25-Jan-24 11:01
cegarman25-Jan-24 11:01 
GeneralRe: Windows 11 venting Pin
k505425-Jan-24 12:41
mvek505425-Jan-24 12:41 
GeneralRe: Windows 11 venting Pin
cegarman26-Jan-24 6:25
cegarman26-Jan-24 6:25 

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.