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 [source-code]

The source-code tag should be used when asking about the source-code that generates the SE sites, including all its features.

2
votes
1answer
82 views

Does Stack Exchange still use SVN for their code base?

Recently I used svn-revision tag in my question on MSE and fell in thoughts: does SE still use SVN versioning system for their code base as described in the tag? This is for any kind of question ...
1
vote
0answers
29 views

How does SE creates and maintains the source code of another site of its network [duplicate]

How does it handle the same base code for all sites? How does SE deploys an upgrade through all its sites?
3
votes
1answer
105 views

A technical question regarding the site code

When I view source of this page, there's a StackExchange object being used. However, I can't find where it's declared - I've checked all sources in Chrome's Developer tools. Secondly, the hyperlink ...
11
votes
1answer
897 views

Stack Exchange data access and caching coding practices

I am very interested in the internal coding practices and standards used within Stack Exchange, particularly regarding caching and data access: how does the team code when it comes to falling back ...
0
votes
0answers
47 views

What is the algorithm to calculate “hotness of questions” on SE sites [duplicate]

Can you tell me the algorithm for calculating hotness of questions on all SE sites? Which factors are considered to calculate it? Also if the code behind it is not of military level top secret which ...
-2
votes
2answers
109 views

Can I post useful code snippets instead of asking a question? [duplicate]

Is it okay to post something other than a question on Stack Overflow? Instead, could we share some code that might help users in their daily coding? Like sharing some useful Javascript snippets, a ...
1
vote
2answers
238 views

How to easily copy, download, or view all of “code box” in question? [duplicate]

Some questions contain long code listings, and it is often required to copy, download, or view the code in full, and maybe past/download it to a local file for compiler experiments. Is there a better ...
1
vote
0answers
88 views

Is chat.SE implementation freely available? [duplicate]

I quite like the chat which is used here on SE network. (I like several features, such as showing to which line you are answering, having possibility to edit typos in your message for some time after ...
5
votes
2answers
318 views

is copying code from jsFiddle too minor?

When I see a question with a jsFiddle link, but without any code, I always edit the question and copy-paste the code from the fiddle. My last edit almost got rejected. The interesting thing is that ...
-3
votes
3answers
105 views

Posting articles and/or code

Is there any place or site in the world of Stack Exchange where people can post articles and/or code to share with the rest of the world, etc.? Possible articles and code which can be voted up and ...
0
votes
0answers
81 views

Embedded scripting language interpreter? [duplicate]

I find that I'm constantly switching between my IDE and my Stack Overflow window to test code found in the original post of a thread. For scripting languages, it seems like this action can be reduced ...
4
votes
2answers
142 views

Am I allowed to ask for the OP's email in a comment to send him source codes?

I met this situation here: the OP (who's new on SO) was looking for something that I've already done, but it's a (sure small but) real project and I can't put all the sources on the answer (JAVA, XML, ...
5
votes
1answer
165 views

Any advice to better optimize scrolling code?

At Why are my sparks not animating?, I have what looks on Mountain Lion like a non-scrolling area of code (without scrollbars until one hovers/scrolls): there are two JavaScript functions included, ...
1
vote
0answers
37 views

Text alignment in the code code view does not match text alignment in the edit box

In many questions, we see the source code with wrong indentation. On of the reasons for it, if the copy/pasted code contains tabs, the assumed tab size in the edit box is different from the assumed ...
11
votes
3answers
250 views

Explicitly say that Stack Overflow IS NOT for us to write your code

I think that when a user goes to ask his first question, that they should see something like this popup. We are here to help solve problems. If your question is asking someone to write your code, ...
18
votes
2answers
831 views

Can I legally post Sun/Oracle JRE/JDK source code on Stack Overflow?

I want to post a JDK method's source code as part of my answer to a question on Stack Overflow. It looks like I can do this under the terms of the JRL (Java Research License), specifically: A. ...
1
vote
1answer
79 views

How do I allow users to download my code for them to review?

How can I allow someone on Stack Overflow to download my source code so they can review it?
4
votes
1answer
144 views

Should code with simple syntax errors be assumed to be a typo?

Is it correct to change a syntax error in code that has been posted as part of a question? After pointing out in the comments that there was a syntax error in the code posted in this question (in ...
-21
votes
1answer
318 views

“Best of” Stack Overflow answers in the form of a DLL? (extracted code from answers from Stack Overflow) [closed]

Update: Wow this received much more negative attention than I expected! I still think there is value in culling out the quality reusable code that lies in the SO repository. I don't have interest ...
-15
votes
1answer
219 views

Is This Code License Compatible with StackExchange? [closed]

I want to ask a question on Stack Overflow but before I post code, I want to make sure the license I want to use (which is similar to many Open Source licenses) is compatible with Stack Exchange sites....
2
votes
1answer
70 views

Code highlighting clarification

In this question, I have marked portion of html code and below another one. But the first code line is not being highlighted. Why are they behaving different?
7
votes
3answers
156 views

Is removing redundant code from a question a legitimate edit?

In this question, the guy pasted 150+ lines of code when the issue was with one specific line. Is it legitimate to edit his question and keep only that single line? The line: Nullable<DateTime>...
21
votes
3answers
375 views

Are BIG questions OK?

After spending way too much time trying to find an annoying bug in my source-code, I thought of posting it on Stack Overflow. However, posting is would involve a lot of source-code, and a lot of ...
0
votes
1answer
81 views

Stack Overflow code to register with another account

So I registered on Stack Overflow the other day, and I was asked if I wanted to register with an already existing account. If I recall correctly the options were Facebook, Gmail and something else I ...
2
votes
4answers
340 views

How do I do a “good” code dump for a comprehensive example?

I came across a question where a comprehensive example would be very useful. So I wrote an example program showing one way to solve their problem. My problem is that when I was done creating it, and ...
0
votes
1answer
86 views

Bug in code dump rejector

The system rejects code dumps without context from low-rep users by comparing the ratio of context (non-code-formatted text) to code (text which is wrapped in <pre>). (See also this feature ...
-4
votes
2answers
117 views

Inexact code in questions

I see a lot of questions here with inexact code snippets, where the questioner obviously re-typed or summarized the code that's causing the problem. This can make it difficult to distinguish between ...
-9
votes
1answer
191 views

Pasting runnable source code to Stackoverfow?

Runnable source code is often used as an additional part of the answer. Since it is not possible to paste runnable code to SO (as far as I know), the code is pasted to external sites like ideone or ...
38
votes
5answers
625 views

Are code troubleshooting questions really what we want to encourage? [closed]

In an effort to more fully understand the gestalt of Stack Overflow, I offer this question for perusal: https://stackoverflow.com/questions/7513258/i-want-a-dialog-box-in-case-of-error#question ...
16
votes
2answers
499 views

How can we avoid the pitfalls of CreativeCommons in code snippets?

Creative Commons is a great license for a wiki, but it's not a good software license at all. Is it the case that all code snippets are under the same license as the rest of the text? I commonly say "...
1
vote
0answers
58 views

Got single line after pasting the code! [duplicate]

Possible Duplicate: Prettified code copied in Internet Explorer pastes without line breaks Sometimes, when I want to test some code snippet, I copy it as it is and I got the entire code in a ...
2
votes
3answers
109 views

Post a question that involves 3 .java files?

I have a project that contains 3 .java files and 1 text file. In order to ask my question I have to post all parts of the project. How do I do that?
9
votes
0answers
112 views

Editing an SO answer with < 6 characters to correct code syntax [duplicate]

Possible Duplicate: Change this behavior to allow for spelling corrections and the like: “Edits must be at least 6 characters” This has been asked before here, but I think this rule ...
8
votes
1answer
254 views

Access to Chat Code?

Ok, I'm not saying... "Let me have you chat code." I'm asking if its an open source project. I love the design of chat and well the entire interface in general. I'd love to incorporate a like client ...
0
votes
0answers
108 views

how can i copy code chunks from StackOverflow [duplicate]

Possible Duplicate: prettified code copied in internet explorer pastes without line breaks hi all, when i want to copy some code chunk written in some answer the resulting text doesn't have any ...
19
votes
2answers
431 views

Discourage code dumps

Lately, I've seen a lot of "this is my code, please find the bug" questions, i.e., people just dump their complete class file instead of creating a minimal working example. When I see this, I usually ...
7
votes
1answer
362 views

Copyright/plagiarism issues with others' source code within yours

I plan on answering a question with some source code on StackOverflow, but I have formulated my answer using some source code I found elsewhere — it was an answer to another question. I planned on: ...
1
vote
2answers
130 views

Posting code properly and safely

Basically i'm worried about theft. I'm not implying that anyone on stack exchange is a thief but about a year ago I posted on another site and a month later I found my code as a download in another ...
4
votes
3answers
175 views

what's best: post full or partial source code as answer?

Very frequently I step into questions on stackoverflow that have small snippets of code, each with it's own set of custom types/pointers/maps/vectors/classes (and other stuffs). Sometimes there's ...
-8
votes
2answers
337 views

“The idea of SO is to show people how to code not to code for them” [closed]

Comment under this answer This question is simple - is it wrong to enjoy challenges and to provide properly tested code? Properly tested code is provided not to satisfy "plz-give-me-teh-codez" but ...
12
votes
3answers
464 views

Is it inappropriate to post decompiled code from the .NET BCL?

I've seen a lot of posts on Stackoverflow containing decompiled source-code from the .NET framework (typically produced by a tool such as .NET Reflector). I've posted such code myself in answers, to ...
-9
votes
2answers
298 views

How to tag question that ask us to find a bug? [closed]

For example, Javascript auto calculating with (+) and (-) I tagged it with findbugs (I know what findbugs is, but I could not find anything better). I think it deserves to have its own category -- ...
4
votes
0answers
40 views

Show whitespace when dealing with regexps

When answering question about regexps, it would be great if whitespace could be shown in the code listing. Whitespace plays a crucial role and it's easy to miss and get it wrong. What I'm looking for ...
3
votes
2answers
640 views

Can Stack Exchange be customized to specific projects? [duplicate]

We are a NGO looking for something 99% similar to Stack Overflow for analyzing and suggesting improvements in legislation. I have tried searching for terms and conditions for getting Stack Overflow ...
3
votes
1answer
296 views

Where can I get the source code for stackoverflow.com's WMD version? [duplicate]

I think the question is self-explanatory - its not that that I want SO source code. What I am looking for is how they added image upload from PC feature. I need to implement it too.
-1
votes
3answers
255 views

What is StackOverflow's policy on: Posting complete projects

Hey there, I have a complete project that isn't functioning properly in IE. I was wondering what SO's policies are on posting the entire project and letting people pick it apart? Cheers.
14
votes
5answers
497 views

AutoIndent of Source Code

When editing a question or an answer on StackOverflow, it would be great if, when you are on a line that starts with n ≥ 4 spaces and press Enter, the newly created line would automatically begin with ...
23
votes
1answer
356 views

Search just code

I want to search my questions for a question that uses the C# key word is new. When I search user:me new I get matches that are not code. Is there a way to just search code? Edit: Since it seems ...
6
votes
5answers
1k views

How to respond to people just asking for code without any own effort?

I'm very active in the android tag on stackoverflow. It seems that the tag is hit by a wave of people trying to write apps for android without any programming knowledge. Many of this questions look ...
-8
votes
2answers
225 views

What a great piece of code!

This idea is about saving a valuable pieces of code from the ocean of the questions that everyday are posted on Stack Overflow . It could be like an upvote, but only on the code box, maybe also with ...