Timeline for Trying to teach a high school student Dynamic Memory Allocation - what are the best ways to do so?
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 3, 2017 at 22:08 | review | Close votes | |||
| Jun 8, 2017 at 3:01 | |||||
| Jun 3, 2017 at 22:00 | vote | accept | user64742 | ||
| Jun 3, 2017 at 21:59 | history | rollback | user64742 | Rollback to Revision 1 - reversing an edit that removed important information | |
| Jun 3, 2017 at 21:53 | history | edited | Robert Harvey | CC BY-SA 3.0 | deleted 53 characters in body |
| Jun 3, 2017 at 21:34 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| May 4, 2017 at 20:50 | answer | added | user64742 | timeline score: 1 | |
| May 2, 2017 at 4:54 | review | Close votes | |||
| May 9, 2017 at 3:10 | |||||
| May 2, 2017 at 4:45 | comment | added | user64742 | @whatsisname you know, you're right. Maybe the issue isn't how I'm explaining it but rather me having the attitude that it's not understandable. Thank you. That actually helped a lot. | |
| May 2, 2017 at 4:09 | answer | added | Erik Funkenbusch | timeline score: 0 | |
| May 2, 2017 at 3:52 | comment | added | whatsisname | @CandiedOrange: yep, exactly. The block padding and whatnot is just housekeeping and is the least intellectually challenging aspect for a high-schooler. | |
| May 2, 2017 at 3:43 | comment | added | candied_orange | I'm saying the leap from understanding arrays to understanding pointers isn't that far. After you get the idea that memory locations have an address you can use math on then it's all dealing with an ugly syntax. Dynamic memory is really just that same math. | |
| May 2, 2017 at 3:34 | comment | added | user64742 | @CandiedOrange not quite sure what you're getting at with that. and to be honest, it wouldn't surprise me if arrays in Game Maker exist in fragments and the actual indices are mapped throughout memory. :p Their arrays automatically increase in size (or worse allocate 32000 bytes upon access). | |
| May 2, 2017 at 3:31 | comment | added | candied_orange | Pro tip: array indexing is pointer addition in disguise. | |
| May 2, 2017 at 3:09 | comment | added | user64742 | @whatsisname the concept, sure, but then how does one explain how to implement it and then get someone to do said implementation? I see what you mean though. Explaining pointers probably is a decent idea though in this context I think explaining the use of a array as an analogue for memory might be better to emphasize. Hmm. Now you got me thinking. Thanks! :-) | |
| May 2, 2017 at 2:58 | comment | added | whatsisname | Just my opinion: "without relying upon pointers" is where you're going off the rails. When you understand pointers, dynamic memory allocation you can come to grips with in moments. | |
| May 2, 2017 at 2:55 | history | asked | user64742 | CC BY-SA 3.0 |