4 ms·
Hey :) - A submit button; I typed "trim" and it did nothing :p Had to change language's dropdown or click a suggestion; - SEO! There's no unique url, with pro
by inerte 18y ago
Hey :)
- A submit button; I typed "trim" and it did nothing :p Had to change language's dropdown or click a suggestion;
- SEO! There's no unique url, with proper title, for the entries. None searching for "trim in python" will find... my blog post is getting 2 or 3 visits a day from people searching "python trim" and/or "trim in python". And I am not even on the first page. Aactually depending on my browser and language settings, I am (5th result).
- Filter duplicates (I entered string.strip is PHP's trim twice)
- Suggest the relationship the other way around. If you know that trim == strip, why not say "hey we think strip == trim"?
How to automate? Do some similar text search thing. For example, you can get the function definition for trim() on PHP's manual, if you match against sections of Python's manual, you can offer your visitors suggestions, and let them one click away to approve the connection. Easy to do?...
Anyway, it's soooo nice to see someone implemented HTFITIP... and I really liked the clean design! And the name!
- s3graham 18y agoOops, no "submit" wasn't well tested obviously. Dumb! I was always selecting an item from the autocomplete. SEO + filter, good ideas, will do. reversed mapping: it does try to do this a little, can you describe what didn't work for you? For example, "str.lstrip" as Python->PHP doesn't have the exact answer, but does look in the other direction and you get a suggestion.
- inerte 18y agoSo I just entered len() for PHP's sizeof(), and when I searched the other way, I got a suggestion... But I am pretty sure that when I searched strip in PHP, nothing came up. I don't remember if I clicked a suggestion item or I selected a language from the second dropdown. That might be the problem, since I think you're mapping string.strip() to trim(), and not strip() to trim(), which is understandable :) Maybe a LIKE %% search instead of =?
- s3graham 18y agoAh, that's probably it. Thanks, I'll look into it more carefully.
- inerte 18y agoHi scott! I thought a little bit more about the SEO part and I think the best thing to do would be to drop the Ajax which loads the similar functions and go with simple GET requests, which will give you a nice url and possibilities to treat it as directories. For example, submitting PHP's trim in Python should load this url: http://www.transmoggit.com/php/trim/python/ http://www.transmoggit.com/php/trim/python/ Loading http://www.transmoggit.com/php/trim/ http://www.transmoggit.com/php/trim/ Would show trim() in every target language. Loading http://www.transmoggit.com/php/ http://www.transmoggit.com/php/ Would show the list of functions, maybe with the languages that you have the alternative. Loading http://www.transmoggit.com/trim/python/ http://www.transmoggit.com/trim/python/ Would show the equivalent on "from" languages. I don't know how much serious you're about this project :) I really think it can make you some money, maybe not enough to make you quit your EA job :) but certainly some to help pay the bills. I also don't know how much SEO you know, but basically you need to think what content your webpage should have to answer typicals queries on your market. For example: q: trim python - Put "trim in python" on http://www.transmoggit.com/trim/python/ http://www.transmoggit.com/trim/python/ on the title, and a H1. q: python remove whitespace This is what I've used a couple times, many moons ago, when "python trim" didn't return good results. You can answer this query, if on your http://www.transmoggit.com/trim/python/ http://www.transmoggit.com/trim/python/ page, you list excerpts of the manual of the "from" languages. Upon loading /trim/python/, you select the from languages, its functions where you know the similarity, and show something like: <ul> <li> <h2>C#</h2> <p>transmoggit doesn't know how <a href="/c#/trim/python/">C#'s trim in Python</a></p> </li> <li> <h2>PHP</h2> <p><a href="/php/trim/python/">PHP's trim in Python</a> is <a href="python_manual_for_string.strip</a>.</p> <p>Here is PHP's manual definition for trim:</p> <p>This function returns a string with whitespace stripped from the beginning and end of str . Without the second parameter...</p> </li> </ul> I know that's a lot of stuff! But you seem to have experience with software development... then you know software it's always 90% complete :) Good luck!