Click here to Skip to main content
14,669,152 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Writing more succinct C# Pin
Member 798912211-May-20 4:42
MemberMember 798912211-May-20 4:42 
GeneralRe: Writing more succinct C# Pin
Eddy Vluggen11-May-20 4:59
professionalEddy Vluggen11-May-20 4:59 
GeneralRe: Writing more succinct C# Pin
Member 798912211-May-20 6:27
MemberMember 798912211-May-20 6:27 
GeneralRe: Writing more succinct C# Pin
Eddy Vluggen11-May-20 7:06
professionalEddy Vluggen11-May-20 7:06 
GeneralRe: Writing more succinct C# Pin
Member 798912211-May-20 7:14
MemberMember 798912211-May-20 7:14 
GeneralRe: Writing more succinct C# Pin
Eddy Vluggen11-May-20 7:23
professionalEddy Vluggen11-May-20 7:23 
GeneralRe: Writing more succinct C# Pin
David O'Neil11-May-20 5:10
professionalDavid O'Neil11-May-20 5:10 
GeneralRe: Writing more succinct C# Pin
Nelek11-May-20 7:13
protectorNelek11-May-20 7:13 
About readability... I can give you that.
But I have spent a lot of time in my life trying to find errors of execution that were caused by a line of code that was supposed to be in an inlined if without brackets.

I came to the conclusion, than putting the brackets in the very first time, it might spare you a lot of time searching for it.

Member 7989122 wrote:
All of this is explicitly expressed when code goes like (C style):
[blank line]
if (age < 12)
{
    charge = childfare;
    some = other;
}
[blank line]
rather than (Pascal style):
if age < 1 then charge = childfare; some = other;


or even better:
Member 7989122 wrote:
All of this is explicitly expressed when code goes like (C style):
[blank line]
if (age < 12)
{
    some = other;
    charge = childfare;
}
[blank line]
rather than (Pascal style):
if age < 1 then some = other; charge = childfare;


Have fun searching in a big program.
if (age < 12)
    some = other;
    charge = childfare;

You eyes would go over this several times without realizing it is incorrect.
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.

GeneralRe: Writing more succinct C# Pin
Member 798912211-May-20 7:33
MemberMember 798912211-May-20 7:33 
GeneralRe: Writing more succinct C# Pin
#realJSOP11-May-20 1:11
mva#realJSOP11-May-20 1:11 
GeneralRe: Writing more succinct C# Pin
Member 798912211-May-20 1:32
MemberMember 798912211-May-20 1:32 
GeneralRe: Writing more succinct C# Pin
#realJSOP11-May-20 2:05
mva#realJSOP11-May-20 2:05 
GeneralRe: Writing more succinct C# Pin
Member 798912211-May-20 6:19
MemberMember 798912211-May-20 6:19 
GeneralRe: Writing more succinct C# Pin
Kevin McFarlane11-May-20 6:45
MemberKevin McFarlane11-May-20 6:45 
NewsScientists obtain 'lucky' image of Jupiter Pin
Kent Sharkey10-May-20 10:00
staffKent Sharkey10-May-20 10:00 
GeneralRe: Scientists obtain 'lucky' image of Jupiter Pin
Nelek11-May-20 7:16
protectorNelek11-May-20 7:16 
NewsMicrosoft may have tipped the Windows 10 May 2020 Update release date Pin
Kent Sharkey10-May-20 9:45
staffKent Sharkey10-May-20 9:45 
NewsMicrosoft publishes the agenda for its Build 2020 virtual event Pin
Kent Sharkey10-May-20 9:30
staffKent Sharkey10-May-20 9:30 
NewsWork-from-home mandates may be DevOps' shining moment Pin
Kent Sharkey10-May-20 9:15
staffKent Sharkey10-May-20 9:15 
GeneralRe: Work-from-home mandates may be DevOps' shining moment Pin
#realJSOP11-May-20 1:13
mva#realJSOP11-May-20 1:13 
NewsMicrosoft adds protection against Reply-All email storms in Office 365 Pin
Kent Sharkey10-May-20 9:15
staffKent Sharkey10-May-20 9:15 
GeneralRe: Microsoft adds protection against Reply-All email storms in Office 365 Pin
Nelek11-May-20 7:19
protectorNelek11-May-20 7:19 
GeneralRe: Microsoft adds protection against Reply-All email storms in Office 365 Pin
ZurdoDev11-May-20 10:08
mveZurdoDev11-May-20 10:08 
GeneralRe: Microsoft adds protection against Reply-All email storms in Office 365 Pin
Dan Neely12-May-20 2:21
MemberDan Neely12-May-20 2:21 
GeneralRe: Microsoft adds protection against Reply-All email storms in Office 365 Pin
MadMyche12-May-20 5:45
mveMadMyche12-May-20 5:45 

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.