> An experienced Javascript programmer should have no trouble reading and understanding the general idea of C code. Sigh, how I wish that were generally true.
How I made a game played in Notepad
11–17 of 17 posts
Re: How I made a game played in Notepad
#12> An experienced Javascript programmer should have no trouble reading and understanding the general idea of C code. Sigh, how I wish that were generally true.
Does JavaScript even have a concept of stack vs heap? Seems like someone who has only used pure JS would be missing a lot of fundamental knowledge on how C works.
Re: How I made a game played in Notepad
#13M-x tetris
and for the text adventure fans:
M-x dunnet
Re: How I made a game played in Notepad
#14> An experienced Javascript programmer should have no trouble reading and understanding the general idea of C code. Sigh, how I wish that were generally true.
Does JavaScript even have a concept of stack vs heap? Seems like someone who has only used pure JS would be missing a lot of fundamental knowledge on how C works.
if (this || that) {dosomething();}
Is mostly identical in JS and C.
Re: How I made a game played in Notepad
#15> An experienced Javascript programmer should have no trouble reading and understanding the general idea of C code. Sigh, how I wish that were generally true.
Does JavaScript even have a concept of stack vs heap? Seems like someone who has only used pure JS would be missing a lot of fundamental knowledge on how C works.
Stack - the event loop uses this for handling callback executions
Heap - memory addresses for objects. For instance if you copy over an array of objects, you are copying the pointers to those memory addresses inside the array. Also memory leaks to some extent with eventListeners especially when you use a framework like React
Re: How I made a game played in Notepad
#16> With this feature unlocked, I basically created an ASCII based renderer. Haha this is great, having an external program that watches a text file for changes and then writes to it, and forcing a text editor to not complain in order to make it merely an "ASCII based renderer" is a neat concept. Also very interesting that the interaction with the game involves a sort of awkward GUI where you have to bring the cursor t…
Re: How I made a game played in Notepad
#17nice work man.. My son (12) (who has just started writing text based games in batch shell) is super keen. I think you've given him ideas :-D