Coder Social home page Coder Social logo

so's Introduction

so

so is a companion binary to vim-so. It queries the Stack Overflow API, and makes code snippets available to vim-so.

Installing

Download the newest release from Releases and manually install it on your system PATH.

FAQ

Why is this executable necessary?

vim-so must query the Stack Overflow API for code snippets, yet vim provides no native mechanism for making HTTP requests. This executable bridges that gap.

Why is this executable not bundled with vim-so?

This executable is approximately 6Mb in size. In order to support multiple platforms (currently six in total), vim-so would need to contain a compiled executable for each, and I do not wish to release a ~40Mb vim plugin.

Why was this not written in Python?

I have had significant difficulty in the past maintaining Python software that is distributed among a wide user-base. I'm sidestepping that problem by distributing an executable.

Can I use this to "manually" search Stack Overflow on the command-line?

Not in a convenient way. The executable only outputs JSON.

Why not?

Initially, I intended for so to support that use-case. However, I backed away from that goal upon realizing two things:

  1. It is difficult to display a Stack Overflow thread on the command line with a user-experience that is equivalent to the browser. The browser provides a superior experience.

  2. Signficantly: I've found that search engines do a better job of returning relevant Stack Overflow threads than Stack Overflow's own API. If the API doesn't return an adequate response, your preferred search engine will likely do a better job.

With that being said, if you're interested in doing this anyway, you may wish to check out the how2 project.

So is this tool useless?

I don't think so. It's imperfect, but seems to get the job done about 50% of the time. And when it works, it feels a bit magical.

What else should I know?

You shouldn't waste your time asking Stack Overflow the same question more than once. After you've gotten an answer from Stack Overflow - either via vim-so or your web-browser - you should cache it locally using cheat and vim-cheat.

so's People

Contributors

chrisallenlane avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.