Click here to Skip to main content
15,881,204 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
kalberts11-May-20 4:42
kalberts11-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
kalberts11-May-20 6:27
kalberts11-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
kalberts11-May-20 7:14
kalberts11-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):
C++
[blank line]
if (age < 12)
{
    charge = childfare;
    some = other;
}
[blank line]
rather than (Pascal style):
C++
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):
C++
[blank line]
if (age < 12)
{
    some = other;
    charge = childfare;
}
[blank line]
rather than (Pascal style):
C++
if age < 1 then some = other; charge = childfare;


Have fun searching in a big program.
C++
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
kalberts11-May-20 7:33
kalberts11-May-20 7:33 
GeneralRe: Writing more succinct C# Pin
#realJSOP11-May-20 1:11
mve#realJSOP11-May-20 1:11 
GeneralRe: Writing more succinct C# Pin
kalberts11-May-20 1:32
kalberts11-May-20 1:32 
GeneralRe: Writing more succinct C# Pin
#realJSOP11-May-20 2:05
mve#realJSOP11-May-20 2:05 
GeneralRe: Writing more succinct C# Pin
kalberts11-May-20 6:19
kalberts11-May-20 6:19 
GeneralRe: Writing more succinct C# Pin
Kevin McFarlane11-May-20 6:45
Kevin 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
mve#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
professionalZurdoDev11-May-20 10:08 
GeneralRe: Microsoft adds protection against Reply-All email storms in Office 365 Pin
Dan Neely12-May-20 2:21
Dan Neely12-May-20 2:21 
GeneralRe: Microsoft adds protection against Reply-All email storms in Office 365 Pin
MadMyche12-May-20 5:45
professionalMadMyche12-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.