← Back to context

Comment by davidkwast

1 day ago

It is so simple that I had to look very slowly to understand. Nicely done.

If it wasn’t simple you could look fast and understand?

  • If it wasn't simple, there would be more lines of code to implement the same idea. As it is, he might have had to spend an hour understanding one line to understand that idea (1 line/hr slow), as opposed to spending an hour reading a hundred lines of code (100 line/hr fast) for the same result.

  • kind of the flip side of pascal's "I would have written a shorter letter, but I did not have the time." if someone does have the time to make the letter short, it'll take longer to read (where "read" means to grasp the subtleties of.)

  • Yes.

    But merely the word simple isn't the best. Replace simple with elegant.

    It can be quite hard to fully and correctly understand a small perfect thing.

    If it gets 20 different jobs done without 20 different if statements, it's small and elegant, and simple to impliment, but not simple to understand (maybe simple to think you understand it.)

    20 if statements you understand immediately and with no effort.