3 ms·
The Computational Universe Pseudocode Reference [pdf]
- dvh 4y agoUsing arrows for assignment is annoying on keyboard, should have chosen :=
- tromp 4y agoHaskell uses <- for monadic binding in do blocks. That's an arrow that's no harder to type than :=
- wiz21c 4y agoHmmm... Now you said that, I realize that on my be_BE layout keyboard, ":" and "=" keys are adjacent and don't even need "shift" to be typed where as "<" and "-" are on the extremes of the diagonal of the keyboard (no kidding!) :-)
- amelius 4y agoNo pointers? How would they write the pseudocode for a linked list?
- loudouncodes 4y agoThis is ridiculous. 1. Pseudocode should be typeable in an email. 2. You should be able to write pseudocode on a whiteboard without worrying about syntax. 3. Pseudocode should be loose enough that it suggests a domain-specific language that it might inspire. 4. If your pseudocode requires a mechanism for comments, you’ve lost the plot. In their example, they comment ‘v1’ as ‘variable holding candidate 1’s tally’. Then name it that! ‘tally_can1’ would be much better.
- jpurnell 4y agoFair, but if you're teaching an entry-level undergraduate CS course, you have to to start somewhere, right? Giving them a set of best practices and a clear syntax does that. And then, as students progress, they can be as creative as you suggest.