Click here to Skip to main content
15,882,388 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: Power from the cold of space Pin
Andy Brummer28-Nov-23 8:00
sitebuilderAndy Brummer28-Nov-23 8:00 
GeneralAbout that Github article on Cognitive Load? Pin
Mike Breeden27-Nov-23 3:13
Mike Breeden27-Nov-23 3:13 
GeneralRe: About that Github article on Cognitive Load? Pin
raddevus27-Nov-23 3:24
mvaraddevus27-Nov-23 3:24 
GeneralRe: About that Github article on Cognitive Load? Pin
Mircea Neacsu27-Nov-23 4:21
Mircea Neacsu27-Nov-23 4:21 
GeneralRe: About that Github article on Cognitive Load? Pin
Mike Breeden27-Nov-23 4:35
Mike Breeden27-Nov-23 4:35 
GeneralRe: About that Github article on Cognitive Load? Pin
raddevus27-Nov-23 3:43
mvaraddevus27-Nov-23 3:43 
GeneralRe: About that Github article on Cognitive Load? Pin
jschell27-Nov-23 6:31
jschell27-Nov-23 6:31 
GeneralRe: About that Github article on Cognitive Load? Pin
honey the codewitch27-Nov-23 3:47
mvahoney the codewitch27-Nov-23 3:47 
I've never seen the article, but I have seen tools that purport to measure the "cognitive load" of functions.

I don't put a lot of stock in them because that metric simply doesn't work for me.

I have a neurological condition that leads to my short term memory being very unreliable.

As such, I tend to use a very large screen (55" at 4k), make my functions longer, and see as much code on the screen at once as I can. Lots of little functions means I have to remember how to call them and it slows me down and introduces bugs.

For me that's a much worse problem then being faced by a complicated function with a relatively simple calling footprint. So I tend to load my functions up with functionality. Why make 4 functions to do something when 1 will suffice?

I usually split off functions mostly to avoid duplicating code.

It's a Bad Practice(TM) that leads to functions with "high cognitive load" but it works around my particular disability, so those metrics be damned - they don't take my particular brain wiring into account.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

AnswerRe: About that Github article on Cognitive Load? Pin
PIEBALDconsult27-Nov-23 5:40
mvePIEBALDconsult27-Nov-23 5:40 
GeneralRe: About that Github article on Cognitive Load? Pin
Gerry Schmitz27-Nov-23 6:56
mveGerry Schmitz27-Nov-23 6:56 
GeneralRe: About that Github article on Cognitive Load? Pin
Eddy Vluggen27-Nov-23 7:19
professionalEddy Vluggen27-Nov-23 7:19 
GeneralRe: About that Github article on Cognitive Load? Pin
Andy Brummer28-Nov-23 11:36
sitebuilderAndy Brummer28-Nov-23 11:36 
GeneralRe: About that Github article on Cognitive Load? Pin
Mike Breeden29-Nov-23 2:20
Mike Breeden29-Nov-23 2:20 
GeneralWordle 891 Pin
Shane010326-Nov-23 17:13
Shane010326-Nov-23 17:13 
GeneralRe: Wordle 891 Pin
Amarnath S26-Nov-23 17:42
professionalAmarnath S26-Nov-23 17:42 
GeneralRe: Wordle 891 Pin
Sandeep Mewara26-Nov-23 19:14
mveSandeep Mewara26-Nov-23 19:14 
GeneralRe: Wordle 891 Pin
GuyThiebaut26-Nov-23 19:19
professionalGuyThiebaut26-Nov-23 19:19 
GeneralRe: Wordle 891 Pin
GKP199226-Nov-23 20:54
professionalGKP199226-Nov-23 20:54 
GeneralRe: Wordle 891 Pin
ChandraRam26-Nov-23 21:03
ChandraRam26-Nov-23 21:03 
GeneralRe: Wordle 891 - 3 4 me Good but lucky guess Pin
pkfox26-Nov-23 21:59
professionalpkfox26-Nov-23 21:59 
GeneralRe: Wordle 891 Pin
StarNamer@work26-Nov-23 22:21
professionalStarNamer@work26-Nov-23 22:21 
GeneralRe: Wordle 891 Pin
Sander Rossel26-Nov-23 22:37
professionalSander Rossel26-Nov-23 22:37 
GeneralRe: Wordle 891 Pin
Cp-Coder27-Nov-23 0:46
Cp-Coder27-Nov-23 0:46 
GeneralRe: Wordle 891 (3/6) Pin
Jeremy Falcon27-Nov-23 3:45
professionalJeremy Falcon27-Nov-23 3:45 
GeneralRe: Wordle 891 5/6 Pin
jmaida27-Nov-23 8:57
jmaida27-Nov-23 8:57 

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.