Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [example-code]

The tag has no usage guidance.

0
votes
0answers
37 views

Merge example code, stub code and insufficient context reasoning into one?

When expanding the guide to wonderland, I'm trying to explain what example code, stub code and context are. When trying to explain why example code is off-topic all I can think of is something like: ...
5
votes
1answer
87 views

How about including a small amount of example code in a large framework?

I am about to upload a fairly large project of mine, a very flexible component-entity-system. More precisely it's a framework for a CES. It consists of 22 files, ~1000 lines of code and 20000 ...
14
votes
1answer
105 views

Clarification as to why a question was closed as off-topic

An old question that was posted 3 years ago was put "on-hold" as off-topic. I have not been an active participant on Code Review (I received a notification thanks to a down-vote a couple of days ago),...
6
votes
1answer
76 views

Using example code to demonstrate the use case

Take a look at the code in this recently closed question. It clearly consists of two parts. The method, which OP wants us to review. An example (hypothetical?) code, which demonstrates the use case ...
7
votes
2answers
162 views

Strict requirements around code examples in questions leading to counterproductive results?

Here's a post that exemplifies my question: Extension method to enumerate a hierarchical object Looking at the history, all I can think of is "poor OP." Several items of note: In an attempt to ...
1
vote
1answer
57 views

What is the relationship between “example code” and “example project?”

A handful of people seem to have formed the opinion that an example project is exempt from this topicality constraint: Is it actual code from a project rather than pseudo-code or example code? The ...
15
votes
3answers
256 views

The gray areas of Code Review: Hypothetical / Example code

This is related to Why is hypothetical example code off-topic for Code Review? Which is related to On-Topic question #3: Is it actual code from a project rather than pseudo-code or example code? ...
29
votes
4answers
1k views

Why is hypothetical example code off-topic for Code Review?

As stated in the Help Center, one of the criteria for a question to be on topic is: Is it actual code from a project rather than pseudo-code or example code? What is the rationale for that ...
4
votes
1answer
126 views

Is example code on-topic?

From the FAQ: I'm confused! What questions are on-topic for this site? Simply ask yourself the following questions. To be on-topic the answer must be yes to all questions: ... 3. Is ...