Hacker News new | ask | show | jobs
by lambdaba 1692 days ago
This. Code should be optimized for reading, I think this kind of code is OK for exploratory stuff, but needs to be rewritten later.
1 comments

Well. Code should be optimized first for correctness, and simple string concatenation will not work for URL params.
It'll certainly work, just seems sloppy.
Plenty of edge cases there (e.g. url encoding), but I don't want to preach to the choir and rabbit hole on this minor detail.