by lainga · 5y ago · 0 comments
distance = ((x1-x0)**2 + (y1-y0)**2)**.5
has "magic numbers" and that's a "code smell"https://developer.mozilla.org/en-US/docs/web/javascript/refe...
This was by a person that sprinkled lazy backfilling behavior throughout the codebase, created magic method_missing dispatches against polymorphic ActiveRecord relationships, and exposed the database as a service through a RESTful DSL that allowed arbitrary method dispatch.
I'm glad I spend most of my time in statically typed, math and binary-friendly codebases now.