4 ms·
You're not the only one. Ada is a lot like this too. I can read, compile and run it in my head during a gerrit review with almost no glitch by now. Written onc
by touisteur 7y ago
You're not the only one.
Ada is a lot like this too. I can read, compile and run it in my head during a gerrit review with almost no glitch by now. Written once, read 20 times at least.
There was some talk on HN yesterday about making your code easily changeable. First step is to make it easily readable, understandable. Little things help. End loop helps. Exit loop_name helps. Non-fallthrough case statement help. in / out / in out help so much. Pre and post conditions help also. Clear static types help. Internal functions help. Explicit generic instantiation, while a pita to write, helps a lot at code read time... Lots of lead bullets.
- winter_blue 7y agoAs someone with a passion for programming language design, this is very intriguing indeed. I wonder if a more verbose and explicit language is indeed better...
- ridiculous_fish 7y agoAppleScript pairs a concise writing syntax with a verbose reading syntax. The writable->readable translation is done automatically on save - think first-class clang-format. As a simple example you can write an if block with `if...end`, and this will be automatically rewritten as `if...end if`. I wish every language had built-formatting and also made the reading/writing distinction!
- winter_blue 7y agoVery cool to know. Are you the author of the fish shell, bychance? (I'm a fish user. If you are, I'm super-thankful for fish!)