What is this?
DevBits is an online repository of code examples.
You can quickly find how to do something in your programming language.
Learn by examples from people who already solved your problem.
Examples can be edited and run directly in the browser. Verify examples before you use them.
For more complex examples that can't run in the browser, you can see screenshots uploaded by the author.
You can also create and share code in the Playground.
Search will intelligently find examples by verbal descriptions and code symbols.
It will auto detect the programming language in your query.
You can also set an explicit language filter using the ":" symbol. You would filter Go examples with:
iterate a list :go
You may want to search for everything:
web server :all
Code symbols are detected from the query. Symbol paths are denoted from "." or "/".
By default code symbols are loosely searched. You may want to see examples of strconv.ParseInt in Go,
but you forgot what the exact symbol was:
If you know what your symbol is, you can set an explicit symbol filter with the "@":
If your query matched code symbols, they will appear as highlighted tags next to each result.
Code symbol search currently works for Go only. Other languages will be supported when we have sufficient code examples.
DevBits helps you navigate development with a curated map of common dev tasks.
This helps you learn higher level concepts that can be implemented in any language/platform.
It is very much an ongoing effort but you can see the Developer's Atlas.
Creating examples for everything is an ambitious task!
We invite you to contribute code examples to make the tool more powerful for you and everyone!
A progress page for each programming language will soon be available at Can We Do....