add points about use of metaphors in programming

This commit is contained in:
Nils Norman Haukås 2023-04-10 20:24:59 +02:00
parent addcc90037
commit 8d9a40eb1a

View file

@ -6,7 +6,7 @@ title: Writing poetically
Not many programmers write poems, but quite a few write well. One might even argue that some write poetically?
Let's look at a few examples.
Let's look at a few examples. Note their use of literary devices such as metaphors and personification to help us think about programming.
> Pascal is for building pyramids — imposing, breathtaking, static structures built by armies pushing heavy blocks into place. Lisp is for building organisms — imposing, breathtaking, dynamic structures built by squads fitting fluctuating myriads of simpler organisms into place. [...] As a result the pyramid must stand unchanged for a millennium; the organism must evolve or perish. ([Structure and Interpretation of Computer Programs](https://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs), 1996, p. xvii)
@ -18,6 +18,8 @@ Sidenote to the above: It reminds me of Magic the Gathering's concept of [flavor
> Suppose you are a page designer for an online store that specializes in selling mud. Let's call it "The Online Mud Store". Business is thriving. Customers place orders for various types and quantities of mud. They login to your site using their username and password, which allows them to view their orders and buy more mud. Right now, Terracotta Mud is on sale, which is very popular. ([Apache Velocity Project docs](https://velocity.apache.org/engine/1.7/user-guide.html#the-mud-store-example))
Sidenote to the above: I would argue that this alludes to the seminal article [Big Ball of Mud](http://laputan.org/mud/).
## Book recommendations
- [If Hemingway Wrote JavaScript by Angus Croll](https://nostarch.com/hemingway)