Hacker News new | ask | show | jobs
Search StackOverflow and paste code snippets without leaving Sublime Text 2 (github.com)
41 points by tartle 4565 days ago
9 comments

This should be what the future of programming looks like. The programmer only provides a high level overview and the rest of the architecture and API details should be automatically filled in. :P
This is all well and good for seasoned programmers who know what the snippet that has just been inserted does, but this is going to reduce code quality (lots of copypasta) and I have huge issue with the fact that StackOverflow answers often provide an explanation of the code, which this plugin obviously strips away. Perhaps come up with a way to add the explanation from SO as a comment to the inserted code snippet?
In case someone gets stuck getting howdoi to work on Mavericks, export the libxml2 path before pip install howdoi:

export C_INCLUDE_PATH=/usr/local/Cellar/libxml2/2.9.1/include/libxml2:$C_INCLUDE_PATH

It's really cool. I developed intellij plugin inspried by this

https://github.com/daisy1754/intellij-howdoi-direct-paste

Seems pretty cool! Would this work with Sublime Text 3 too?
Tried it, doesn't work. No idea why, did some very limited poking around, couldn't see anything obviously out of order.
ST3 compatibility problem is hopefully solved now, by one of user contribs
This is really cool.

But why type 'in php' if you're editing a .php file? I'd think Sublime could fill that bit in for you.

good point, thanks - will change that
Make this as a jetbrains plugin also :)
This is really cool!! Add this to package control :)
Odd. Upon reading the title I immediately thought:

    I'll respond first! with howdoi
There's also https://github.com/jpelton/vim/blob/master/plugin/HowDoI.vim.
that actually is howdoi, just wrapped, so that you don't need to leave the edited file in Sublime Text :)
Definitely. Less good than what you've created here.

Thank you!