bookworm/idiomatic_hello.bw
2014-09-30 22:26:28 -04:00

1 line
1.4 KiB
Plaintext

This program is Bookworm's reference "Hello World" implementation. Please do not take this example as "the one true way" since many possible alternative programs could certainly be used instead. This particular program took over one hour to write as Bookworm's constraints make you carefully consider each individual character. Fortunately, idiomatic Bookworm programs are self-documenting in that source code and comments become combined. In actuality, the source code consists entirely of comments! We strongly believe that code ought to document itself so that other people (read: your colleagues) will very quickly understand what the code is doing by reading the code. There could be no comments at all as well as zero documentation. The only resource that your fellow programmers would need is your source code as it stands. That's exactly why Bookworm programs will typically avoid the use of explicit comment markers. o o o o o ee ee ee ee ee ee o ee ee ee ee ee ee o o ee o o ee o o o ee ee ee o ee ee o ee ee o ee ee o ee ee o ee ee o ee ee o ee o ee ee o ee ee ee o ee ee o ee ee o ee o ee ee ee ee ee ee ee ee o ee ee ee ee o ee o o o ee ee ee ee o o ee ee ee o ee ee o ee ee o ee o ee ee ee o o ee o o ee o o ee o o ee o o ee o o o ee ee ee o o ee o o ee o o ee o o ee o o ee o o ee o o ee o o o ee ee ee ee ee ee ee ee ee o ee o ee ee ee ee ee ee o ee ee o ee o ee ee