Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wodenokoto
on Dec 23, 2023
|
parent
|
context
|
favorite
| on:
Ask HN: What's your "it's not stupid if it works" ...
How is that better than just checking against a list of suburb names?
singingfish
on Dec 24, 2023
|
next
[–]
It's also handling what state the suburb is in, and can deal with various kinds of bad data (e.g. lack of uniformity of spacing and capitalisation).
_0ffh
on Dec 23, 2023
|
prev
[–]
The regex is a compressed representation which saves memory, and it's also likely to be quite a bit faster which saves cycles. I consider it a clever bit of optimisation.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: