another coworker, on a past hack:

"There was a Ruby... abomination that someone wrote that hooked on the 'undefined method call' hook of the base Ruby object, computed the closest actual method by using Levenshtein distance, and delegated to that function instead."

@trash sorta like the number of edits you have to do to a word to turn it into another word

@danielhglus okay i will admit i've done a thing kind of like this, but in a python and for GL call naming convention normalization; doing that just off edit distance is wild tho

@danielhglus better hope they didn't misspell a method name in that code

@danielhglus oh yeah i remember that one, i think it was a riff on the very real which is now part of Ruby 🤨

@danielhglus That reminds me of the stackoverflow python module which would search for your keyword and compile code from the answers.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either! We adhere to an adapted version of the TootCat Code of Conduct and have documented a list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators. Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!