Code snippets are often not self explanatory. To understand how non-trivial code works, we sometimes need to RTFM, read Q&A’s and even follow tutorials.
Our mission at Codota is to help developers find, read and understand great code examples. When we show code, we want to do the best we can to help our users get a broader and deeper understanding of the subject. We took on ourselves to provide pointers to some of the most credible sources of knowledge for android developers:
- android Q&A from StackOverflow
- android tutorials from vogella.com
- official android tutorials and samples.
What we really wanted, is to link to the right piece of content, directly from the source code snippet. To do that, we now analyze code snippets from all android related articles available on these resources and match them to code snippets we show in Codota. We use specialized code similarity metrics to determine the right content to link into. When browsing code in Codota, you can now consult “the textbook solution” and explore the related articles listed in the “Further Reading” box.
For example, see the related tutorials and Q&A for this code snippet:
We’d appreciate feedbacks and suggestions in comments or by email to firstname.lastname@example.org