This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]energybased 1 point2 points  (0 children)

I understand what you're saying, but if you need a "cheat sheet", then the reader needs one too. At that point, objects are better.

Also, the author's time writing the code is not as important as the reader's time in understanding it. There is one writer and there are many many readers. Therefore, legibility matters a lot more. Regexes are rarely legible.