Live data from Hacker News

Ask HN: Share some of your easy code 'wins'?

news.ycombinator.com

11–13 of 13 posts

Re: Ask HN: Share some of your easy code 'wins'?

#11
post #8

I was asked to write a fuzzy word matching algorithm that would allow for a certain number of typos/misspellings. Turns out there’s a well-known algorithm for that[0]. [0] https://en.m.wikipedia.org/wiki/Levenshtein_distance

Levenshtein distance is a measure, not a fuzzy word matching algorithm.

Did you brute force your searches to match anything within a levenshtein distance of X?

Re: Ask HN: Share some of your easy code 'wins'?

#12
post #3

Earlier quoted context omitted.

haha, nice one! This exactly the kind of story i was thinking about.

Actually over the years Craigslist has been a great resource for making a few extra bucks. There is always the usual adds asking for expert programmers to make the next facebook or twitter and I have never replied to them, but atleast once a week there is a person looking for help that is willing to pay a fair price for pretty easy work. I just checked the Craigslist adds in my old city (I moved up to Northern Canada…

Nice find! The add is still there so you are right. If you look in the right place, you can find easy work.

Re: Ask HN: Share some of your easy code 'wins'?

#13
We had a really simple document storage component to a webapp I was working on. Customers wanted to be able to search them so we had a ticket chilling in the backlog with the maximum point value to implement Solr. I ended up implementing it in an hour by taking the raw text out of the PDF with some library, shoving it into a Postgres column, and doing a LIKE query.
Post reply on HN