Click here to Skip to main content
14,640,359 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 798912210-May-20 22:53
MemberMember 798912210-May-20 22:53 
GeneralRe: Writing more succinct C# Pin
Eddy Vluggen11-May-20 2:55
professionalEddy Vluggen11-May-20 2:55 
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 
Member 7989122 wrote:
If you "see a bowl of spaghetti" just because a programmer doesn't spend one line on an opening brace (alone) and another line on the closing brace (alone), and maybe a completely blank line before and after the if-statement, then it sounds as if you are really hungry for spaghetti!
Takes a bit more than that, like "proza".

Member 7989122 wrote:
Maybe I will start using the term "homeopathic code" for that kind where only a single token carrying any information specific to the problem solution, per screenful (with the rest being blank lines, opening and closing braces and all sorts of decorations) Smile | :)
Kinda anal on the bracket-whitespace for a single-line statement there. I don't care about that particalur example; it is being enforced because someone said it was a best-practice to have a codeblock around single-line statements.

"if (bar)
{
foo
}"

vs

"if (bar) foo)" is not worth the money, nor my time.

I once worked for someone who demanded no-one formatting their SQL, and to put the entire statement in a single line (without CR/LF). He read the SQL statement aloud while scrolling to the right. Some bugs are very visible if you apply a minimum of formatting.

Keep it up, I'm reloading.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

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 
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 

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.