User:CEGarcia/sandbox

Example-Centric Programming is a help tool that allows an Integrated Development Environment (IDE) to show code examples or API documentation related to coding behaviors occurring in the IDE. “Borrow” tactics are often employed from online sources, by programmers leaving the IDE to troubleshoot. The purpose of Example-Centric Programming is to reduce the time spent by developers searching online. Ideally, in example-centric programming, the User Interface integrates with help module examples for assistance without programmers leaving the IDE. The idea for this type of “instant documentation” is to reduce programming interruptions. The usage of this feature is not limited to experts, as some novices reap the benefits of an integrated knowledge base, without resorting to frequent web searches or browsing.

Background
The growth of the web has fundamentally changed the way software is built. Vast increase in information resources and the democratization of access and distribution are main factors in the development of Example-Centric Programming for End-user development. Tutorials are available on the web in seconds thus broadening the space of who writes it: designers, scientists, or hobbyists. By 2012 13 million program as a part of their job, yet only three million of those are actual professional programmers. Prevalence of online code repositories, documentation, blogs and forums—enables programmers to build applications iteratively searching for, modifying, and combining examples.

Using the web is integral to an opportunistic approach to programming when focusing on speed and ease of development over code robustness and maintainability. There is a widespread use of the web by programmers, novices and experts alike, to prototype, ideate, and discover.

To develop software quickly programmers often mash up various existing systems. As part of this process, programmers must often search for suitable components and learn new skills, thus they began using the web for this purpose.

When developing software programmers spend 19% of their programming time on the web. Individuals use the web to accomplish several different kinds of activities. The intentions behind web use vary in form and time spent. Programmers spend most of the time learning a new concept, the least time is spent reminding themselves of details of a concept they already know, and in between they use the web to clarify their existing knowledge.

Example-Centric programming tries to solve the issue of having to get out of the development environment to look for references and examples while programming. For instance, traditionally, to find API documentation and sample code, programmers will either visit the language reference website of they go to search engines and make API specific queries. When trying to learn something new, programmers use web tutorials for just-in-time learning. Additionally, programmers deliberately choose not to remember complicated syntax and instead use the web as an external memory that can be accessed when needed.

Benefits
Some of the benefits of Example-Centric Programming include:


 * Prevention of Usage Errors
 * Reduction of time searching for code examples
 * Reduction of time searching for API documentation
 * Clarification of existing knowledge and reminding of forgotten details

Emergent Programming
Mining and codifying emergent programming behavior can support a broad set of software engineering interfaces. By modeling how developers use programming languages in practices, algorithms for finding common idioms and detecting unlikely code can be created.

Because people write more code than they share online there is a lot of duplicated effort. To fully use the power of the crowd the effort required to publish code online should be reduced.

Examples
Automatically augments queries with code context, presents a code-centric view of search results, embeds the search experience into the editor, and retains a link between copied code and its source. Task-specific, meaning that it will specifically search for examples in the language
 * Blueprint

Integrates API specific "Instant Example" and "Instant Documentation" display interfaces.
 * Redprint

Uses crowdsourced data from developers and searches all code, looking for patterns, that way if someone is coding in a strange way, Codex lets them know that they are doing something wrong.
 * Codex

A Codelet is a block of example code an interactive helper widget that assists the user in understanding and integrating the example.
 * Codelets