Thursday, March 29, 2018

Relating Computer Science to ADHD


I've seen the analogy "ferrari brain with bicycle brakes"and "computer with low ram/memory"In CS there's something called a stack. In simplified terms a stack is a way of holding data, but it has a special property where the first item placed in it is the last to be pulled out. Like a stack of books where the bottom book is the first one you put down and the top book is the last one you put.Stacks are fundamental in how computers function. Without diving too deep, when you do anything on s computer that command is added to a stack then the computer tried to figure out what else it needs to do to complete the process task and adds it to the stack. Tasks are added to the stack until you reach the base process or one that doesn't need anything else to run. The computer then takes the tasks off from the stack starting from the most recent until it gets to the first thing you asked it to do.The processor is what does each of the tasks from the stack and the stack is stored in ram/memory.Normal person stack: Task: Check email > take out phone > open mail application > check mail > put away phoneMe: Task check email > take out phone > notice news app> check news> check stocks to see if the news has affected them > remember that thing you wanted to Google > Google that thing> instead of looking at what you just searched look up that recipe you've been wanting to make> realize you've been on your phone too long> put phone away> realize you still need to check emailThe more things you add to the stack without removing anything the more likely it is that you run out of ram/memory. When you do add too many things you stack overflow and wind up on God's plan lyric explanation with no idea how you got hereTl;Dr ADHD brains have stack overflows just like computers with not enough ram via /r/ADHD https://ift.tt/2GlBbZt

No comments:

Post a Comment