Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bsoles
8 months ago
|
parent
|
context
|
favorite
| on:
What makes code hard to read: Visual patterns of c...
This is 5 times more readable than FP example above for the same computation. The FP example uses variable book(s) five times, where using it once was sufficient for SQL. Perhaps FP languages could have learned something from SQL...
xigoi
8 months ago
[–]
Now modify the SQL to support books having multiple authors. (In the FP example, you would just change map to flatMap.)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: