Try Catch Stack overflow (TcSo) is a project that is inspired from an online meme on javascript and stack overflow: As you know, most of the developers waste their time by searching for the generated error on Google and finding out the right solution for those from stack overflow. What if we can fully automate this process. TcSo Is a collection of Try statements in all the programming languages under the globe which catches the exception and searches for the cause of the caught exception in the stack overflow automatically. So whenever a new exception occurs, it will automatically open the stack overflow page of that exception in your browser.
TcSo is currently available for the following programming languages:
-
More languages coming soon. Don't forget to add your favourite favorite programming language.
There are hundreds of programming languages out there. The aim of this project is to make the Try catch Stack Overflow available in all the programing languages under the globe. You can contribute to the project by:
You can make this project available in your favorite programming language. Just follow the steps below:
- Fork it!
- Make a local clone:
git clone https://github.com/{YOUR_USERNAME}/tcso.git
- Switch to the directory:
cd tcso
- Create a new folder for your language
mkdir your_language
cd your_language
- Create your new language branch:
git checkout -b language_name
- Add your source code try catch stack overflow to the folder.
- Use external dependencies if and only if there is no other way of doing it natively.
- The catch block must be able to launch the web browser with the respective stack overflow search page of the error. The browser maybe either Firefox or Google chrome.
- You can use stack overflow tags for filtering search results based on language see: http://stackoverflow.com/tags. For implementing a JavaScript TcSo you will have to open the page http://stackoverflow.com/search?q=[js]{Your-error-message-here}, Here [js] represents tag. If your language doesn't have a tag then omit the [tag] box. Then point your browser to http://stackoverflow.com/search?q={Your-error-message-here}
- Use error code or error description to get best result
- Please try to make platform independent code. If the code is not platform independent then please use the naming convention: tcso_windows.cpp, tcso_linux.cpp
- Add a readme.md to your language folder. You can use this as a reference.
- Add changes to git index by using
git add --all .
- Update this README by running
yarn update-readme
- Commit your changes:
git commit -am 'Added new language'
- Push to the branch:
git push
- Submit a pull request π
You can browse the available TcSo and improve its code if needed and dont forget to submit a new pull request.
If you are lazy enough to type something and you still want to see TcSo in your favorite language, then open a new issue here.
If you are experiencing any bugs, donβt forget to open a new issue. Please donβt forget to mention the language name.
This project is licensed under MIT licence. The source code of the works created from this project need not to be made public.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Hope you liked this project, please don't forget to give it a star β
Trademark: The Stack overflow name and logos are trademarks of Stack Exchange Inc.