Click here to Skip to main content
15,884,176 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: Why isn't C# more popular? Pin
BillWoodruff9-Sep-20 17:56
professionalBillWoodruff9-Sep-20 17:56 
GeneralRe: Why isn't C# more popular? Pin
Stuart Dootson11-Sep-20 3:34
professionalStuart Dootson11-Sep-20 3:34 
GeneralRe: Why isn't C# more popular? Pin
Gerry Schmitz9-Sep-20 4:28
mveGerry Schmitz9-Sep-20 4:28 
GeneralRe: Why isn't C# more popular? Pin
dandy729-Sep-20 6:10
dandy729-Sep-20 6:10 
GeneralRe: Why isn't C# more popular? Pin
PIEBALDconsult9-Sep-20 12:35
mvePIEBALDconsult9-Sep-20 12:35 
GeneralRe: Why isn't C# more popular? Pin
Patrick Skelton9-Sep-20 20:47
Patrick Skelton9-Sep-20 20:47 
GeneralRe: Why isn't C# more popular? Pin
Reelix9-Sep-20 19:54
Reelix9-Sep-20 19:54 
GeneralRe: Why isn't C# more popular? Pin
Patrick Skelton9-Sep-20 21:00
Patrick Skelton9-Sep-20 21:00 
Part II of the cutting of my programming teeth was in the video game world, using C++, where the rule was that exceptions are very much last-resort, only for events that should not happen and are generally unrecoverable, at least without some kind of restart.

One thing I have often found difficult in C# is trying to avoid exceptions. Even when I have tried to do exceptions properly and catch the correct type etc., I find the program gets worse, not better, because, without looking up every single API call, you never know what exceptions might be thrown. Addiction recovery begins with admission so I will now admit here that I usually end with a catch( Exception ) {}.

To me, in a language, it is as if you need one of two things: either a slimline composite return type that encapsulates any return value and also some kind of error indication (I know - dangerously close to the error return codes of old Win32 programming); or you need two basic types of exception - real ones that should ideally never happen, and a more everyday exception meaning, "Something has gone wrong in my code so don't continue using this value I am about to return to you."
Thank you to anyone taking the time to read my posts.

GeneralRe: Why isn't C# more popular? Pin
Martin ISDN9-Sep-20 21:56
Martin ISDN9-Sep-20 21:56 
GeneralRe: Why isn't C# more popular? Pin
Patrick Skelton9-Sep-20 22:13
Patrick Skelton9-Sep-20 22:13 
GeneralRe: Why isn't C# more popular? Pin
Martin ISDN10-Sep-20 1:40
Martin ISDN10-Sep-20 1:40 
GeneralRe: Why isn't C# more popular? Pin
johnnyys10-Sep-20 1:26
professionaljohnnyys10-Sep-20 1:26 
GeneralRe: Why isn't C# more popular? Pin
MikeCO1010-Sep-20 3:38
MikeCO1010-Sep-20 3:38 
GeneralRe: Why isn't C# more popular? Pin
Steve Naidamast10-Sep-20 4:29
professionalSteve Naidamast10-Sep-20 4:29 
GeneralRe: Why isn't C# more popular? Pin
Matt McGuire10-Sep-20 5:14
professionalMatt McGuire10-Sep-20 5:14 
GeneralRe: Why isn't C# more popular? Pin
StampedePress10-Sep-20 5:28
StampedePress10-Sep-20 5:28 
GeneralRe: Why isn't C# more popular? Pin
Bruce Patin10-Sep-20 5:57
Bruce Patin10-Sep-20 5:57 
GeneralRe: Why isn't C# more popular? Pin
Bogatitus10-Sep-20 6:28
Bogatitus10-Sep-20 6:28 
GeneralRe: Why isn't C# more popular? Pin
Kirk 1038982110-Sep-20 6:33
Kirk 1038982110-Sep-20 6:33 
GeneralRe: Why isn't C# more popular? Pin
Patrick Skelton10-Sep-20 20:55
Patrick Skelton10-Sep-20 20:55 
GeneralRe: Why isn't C# more popular? Pin
zezba900010-Sep-20 7:13
zezba900010-Sep-20 7:13 
GeneralRe: Why isn't C# more popular? Pin
Sr_Dogmeat10-Sep-20 7:15
professionalSr_Dogmeat10-Sep-20 7:15 
GeneralRe: Why isn't C# more popular? Pin
afigegoznaet10-Sep-20 21:28
professionalafigegoznaet10-Sep-20 21:28 
GeneralRe: Why isn't C# more popular? Pin
BotReject13-Sep-20 10:59
BotReject13-Sep-20 10:59 
GeneralSnark of the month Pin
Dan Neely8-Sep-20 12:03
Dan Neely8-Sep-20 12:03 

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.