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."
@danielhglus but why
@danielhglus Function autocorrect
What in bash nation
@danielhglus What is levenshtein distance?
@trash sorta like the number of edits you have to do to a word to turn it into another word
@danielhglus Oh no...
@danielhglus wow what could go wrong?
@danielhglus this is beautiful
@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 I have to admit, that is pretty cool.
@danielhglus better hope they didn't misspell a method name in that code
@VyrCossont ...oh my
@danielhglus That reminds me of the stackoverflow python module which would search for your keyword and compile code from the answers.
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!