16 ms·
Why is prompt() ugly? On the contrary, I think that for kids who grew up in GUIs, it is much more familiar and less intimidating than a prompt.
by danmaz74 15y ago
Why is prompt() ugly? On the contrary, I think that for kids who grew up in GUIs, it is much more familiar and less intimidating than a prompt.
- tantalor 15y agoWith a standard prompt, you can see the previous output from the program and user input. But a popup window has no context, no history. Of course that's just my opinion. If it could help teach kids good programming skills then it should be used used.
- peterbraden 15y agoChrome, Firefox and Safari all have built in REPLs
- tantalor 15y agoREPL is not the same as standard streams (STDIN, STDOUT). You can build a REPL with standard streams, but you can't use a REPL like the WebKit console as standard streams. Where is your STDIN?
- danmaz74 15y agoThat's true - if your program works like a conversation. That's not always the case ;) You can give all the needed context by updating the page when needed.