Click here to Skip to main content
15,887,135 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: An opinionated comparison of C++ frameworks for consuming and implementing Windows Runtime types Pin
Daniel Pfeffer6-Jun-22 9:31
professionalDaniel Pfeffer6-Jun-22 9:31 
NewsApple announces macOS 13 Ventura, the next major software update for the Mac Pin
Kent Sharkey6-Jun-22 8:46
staffKent Sharkey6-Jun-22 8:46 
GeneralRe: Apple announces macOS 13 Ventura, the next major software update for the Mac Pin
Joe Woodbury6-Jun-22 11:33
professionalJoe Woodbury6-Jun-22 11:33 
GeneralRe: Apple announces macOS 13 Ventura, the next major software update for the Mac Pin
Kent Sharkey6-Jun-22 11:59
staffKent Sharkey6-Jun-22 11:59 
NewsWhat is negative engineering? Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
GeneralRe: What is negative engineering? Pin
Marc Clifton6-Jun-22 2:48
mvaMarc Clifton6-Jun-22 2:48 
NewsBest practices for naming variables: What the research shows Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
GeneralRe: Best practices for naming variables: What the research shows Pin
Sander Rossel5-Jun-22 23:27
professionalSander Rossel5-Jun-22 23:27 
Interesting.
I care about naming in code, precisely for the reason mentioned here: reduce cognitive load.
Code is hard enough to read and understand as it is, no need to obfuscate further.

Be that as it may, a client of mine sends out reports to customers.
One report for each type of research they do.
Now they have one client who wants all their research results in one report rather than separate reports.
I named this variable allInOne and thought that was pretty clever.
A few days later I slapped myself on the head.
Something like combineResults would've been so much more clear.
It's literally what they want, combined results, and it's literally what I do, combine results.
Why didn't I think of that the first time? Sigh | :sigh:

Naming is hard.
I've used coding standards, underscores for fields, curly brackets on new/same line, always use brackets for blocks, PascalCase, camelCase, etc., but I've never used naming standards.
I'll think about this and try to incorporate this in my day to day work Thumbs Up | :thumbsup:

GeneralRe: Best practices for naming variables: What the research shows Pin
Dan Neely6-Jun-22 3:05
Dan Neely6-Jun-22 3:05 
NewsXerox PARC’s engineers on how they invented the future—and how Xerox lost it Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
NewsDatadog finds serverless computing is going mainstream Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
NewsRogue planets in our galaxy might be massive alien spaceships, study proposes Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
GeneralRe: Rogue planets in our galaxy might be massive alien spaceships, study proposes Pin
David O'Neil5-Jun-22 10:28
professionalDavid O'Neil5-Jun-22 10:28 
GeneralRe: Rogue planets in our galaxy might be massive alien spaceships, study proposes Pin
Daniel Pfeffer6-Jun-22 8:24
professionalDaniel Pfeffer6-Jun-22 8:24 
NewsWhat’s New in Windows App SDK 1.1 Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
NewsAmericans have lost $1 billion to crypto scams since last year, feds say Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
NewsMicrosoft: Windows Autopatch now available for public preview Pin
Kent Sharkey5-Jun-22 9:16
staffKent Sharkey5-Jun-22 9:16 
NewsDon’t drive away your developers: IT processes to defeat burnout Pin
Kent Sharkey2-Jun-22 8:46
staffKent Sharkey2-Jun-22 8:46 
GeneralRe: Don’t drive away your developers: IT processes to defeat burnout Pin
David O'Neil2-Jun-22 14:10
professionalDavid O'Neil2-Jun-22 14:10 
GeneralRe: Don’t drive away your developers: IT processes to defeat burnout Pin
Nelek3-Jun-22 9:52
protectorNelek3-Jun-22 9:52 
GeneralRe: Don’t drive away your developers: IT processes to defeat burnout Pin
David O'Neil3-Jun-22 10:22
professionalDavid O'Neil3-Jun-22 10:22 
GeneralRe: Don’t drive away your developers: IT processes to defeat burnout Pin
Nelek4-Jun-22 4:05
protectorNelek4-Jun-22 4:05 
GeneralRe: Don’t drive away your developers: IT processes to defeat burnout Pin
MarkTJohnson2-Jun-22 14:51
professionalMarkTJohnson2-Jun-22 14:51 
NewsWindows MSDT zero-day vulnerability gets free unofficial patch Pin
Kent Sharkey2-Jun-22 8:46
staffKent Sharkey2-Jun-22 8:46 
GeneralRe: Windows MSDT zero-day vulnerability gets free unofficial patch Pin
Nelek3-Jun-22 9:51
protectorNelek3-Jun-22 9:51 

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.