The code tag has no wiki summary.
5
votes
1answer
76 views
How to edit answers to fix syntax errors when “Edits must be at least 6 characters” [duplicate]
While looking for an answer of my problem "How to round numbers with decimals in javascript", I found this SO answer http://stackoverflow.com/a/14194399/177665
This can be done using Javascript as ...
-12
votes
1answer
62 views
Suggestion for Code Insertion [closed]
The Insertion of codes can be made more easy to use. As a new user, it becomes confusing to use at times
2
votes
0answers
61 views
Answering with just code [duplicate]
Is it bad practice to answer with just code and no explanation? I had someone complain about this once but everyone seems to do it.
2
votes
1answer
52 views
Would it be possible for SE to share the code they used to enable imgur uploading via PageDown?
I've been working with pagedown and am trying to customize the image modal that comes from Markdown.Editor.js to enable direct-to-imgur uploads. I can handle that fine on a page of my own but I'm at ...
12
votes
0answers
141 views
Is there a way to know how many total lines of code Stack Overflow has produced?
Recently I saw an infographic called Million Lines of Code and I think it would be really cool if Stack Overflow could be on it. I am sure there are thousand upon thousand lines of code the Stack ...
1
vote
1answer
77 views
What's acceptable practice for Stack Overflow code review for several source files, GitHub?
I have some code that I want to put on Stack Overflow for a code review. What is the best way to handle multiple files? Should I just ask a question and put a link to a public GitHub repository? ...
3
votes
2answers
181 views
On what site to ask C# class design questions?
Where, especially on what stackexchange site, should I ask C# class design questions?
What I want to know:
I want to know what possibilities exist, to design an entity class and how to arrange ...
-4
votes
1answer
80 views
Code comparison when asking
What if <Code Sample>s and formatted code will compare with existing questions' <Code Sample>s and formatted code and let the user (who asks) to know if there are similar question?
For ...
0
votes
0answers
26 views
A bug with tags/code parser [duplicate]
I wanted to add a list and some code:
link
the list sometimes becomes bold on editing, but I wrote it correctly. I don't know what to do with code at all because its parser doesn't work properly
0
votes
0answers
41 views
Code Sample problem [duplicate]
In the answer of this post :
How do I use tabHost for Android
I want to change the code section of this question
But when select code section and mark it as Code Sample ,first and last lines are ...
-9
votes
1answer
155 views
Run/Test code in Stack Overflow [duplicate]
Is there any feature in development for Stack Overflow to RUN/TEST code online? I see many questions are linked to some other online tools to run and test the submitted code/corrected code.
Like the ...
-6
votes
2answers
123 views
Are we requiring code too often?
Earlier today I posted a question which, I feel, doesn't require code. It's a general knowledge sort of question, rather than one specific to faulty code. Granted, the question came about because I ...
3
votes
2answers
102 views
Should error logs be formatted as code or quote?
When I see an unformatted error log, I format it as
code
I've noticed, however, that some other users format them as
quotes
Which is better?
...
0
votes
2answers
68 views
Is it appropriate to remove excessive commenting from code?
I am referring to this question on SO http://stackoverflow.com/revisions/17182684/1, where there is a massive amount of commenting within the code (the question has since been edited to correct this).
...
-1
votes
1answer
65 views
Please, make the contents of the page occupy the whole page width, or at least make the code windows resizable [duplicate]
Please, make the contents of the page occupy the whole page width, or at least make the code windows resizeable.
1
vote
0answers
106 views
Are code-only answers a good thing? [duplicate]
I just stumbled across this question. While the question itself is not perfect, both the answers to date have just been blocks of code.
When I reply to a question, I usually (admittedly, not always) ...
2
votes
1answer
93 views
How to fix a single character typo in a code sample? [duplicate]
I just wanted to fix a code sample which had a single character missing. However I can't do this because the minimum edit is 6 characters.
Can we make the checker smarter by allowing single character ...
-1
votes
2answers
120 views
Auto-comment questions with lack of code
There is many questions on the StackOverflow from a new members where it is impossible to answer until OP will show some code and specify failing line. Currently we are writing the same comments under ...
-25
votes
2answers
189 views
Allow only pseudo-code in answers? [duplicate]
On Stack Overflow, I see a lot of people answering questions with just code. It is not helpful to anyone at all. So, would it be possible to enforce pseudo-code answers? In my opinion, pseudo-code is ...
8
votes
2answers
94 views
Is it better to fix the OP's code or provide a better approach?
In a lot of questions one can see that the OP's code works almost correctly, but his/her approach is not the best one. For example:
remove specific line returns ("\n") from file
Where ...
1
vote
3answers
101 views
What to do when the OP feels they asked a wrong question?
Suppose someone asks a question on Stack Overflow, and after posting and working on the problem some more that person realizes there actually was not a problem at all but it was only their ...
3
votes
2answers
77 views
Add 4 spaces in the middle of the code
I know that if I press ctrl + k I automatically can add 4 spaces, but what if the code has already 4 spaces and I need to add 4 spaces more to it?
If I press tab in the SO editor it just gets me ...
3
votes
3answers
129 views
Am I allowed to post an entire project instead of portions of code in Stack Overflow?
There is a project (Objective-C, made with xcode) that I messed up, there are runtime errors to correct.
But the project is so big, the code is huge. Am I allowed to attach a zip file containing the ...
2
votes
1answer
378 views
Format code block quickly? [duplicate]
Possible Duplicate:
How do I format my code blocks?
What is a quick way to format many lines of code for Stack Overflow?
I insert all 4xNLines spaces each time one by one, and wondering ...
1
vote
0answers
35 views
Are “live collaborative” online pastebins/compilers acceptable for use in a question? [duplicate]
Possible Duplicate:
How should we deal with questions that have broken links?
Refer to this question (visible only to 10K users): "why does finding max height of a tree behave differently ...
1
vote
2answers
143 views
Should I encourage questions asking for a tutorial link or code snippet?
I have seen many questions on SO which ask for a tutorial on some specific topic or some functionality. Some users say "this is not a good place to ask for a tutorial" or "hit Google". But maybe some ...
9
votes
1answer
144 views
Encourage Questions to Include Code Samples
I know this has been noted before, but it's amazing how often people ask questions about code that's not working without sharing the code. And when they share code, it's often insufficient (which ...
6
votes
2answers
232 views
Invisible unicode characters in my post cause it not to format correctly?
UPDATE: It's formatted correctly after posting the question. Here's a screenshot of what it looks like when creating the question: http://cl.ly/3u072T2K0F2P2A2n0d3Q. I'm on Chrome v19.
Here's a ...
4
votes
1answer
211 views
How to prepend line number for C++ code on Stack Overflow? [duplicate]
Possible Duplicate:
Why are there no line numbers in the code listings?
I want to display C++ code prepended with line numbers on Stack Overflow. The indented C++ code is formatted with ...
26
votes
3answers
322 views
User suggested great corrective edit to my answer, but the edit was rejected. What can I do to approve it?
A nice user suggested good corrective edit to my answer. The edit, though very good and desirable, was rejected. I do not understand the reasons, and I did not find a way to contact those people who ...
1
vote
0answers
70 views
Can Users have access to StackOverflow's share buttons? [closed]
I am in love with the share buttons used on StackOverflow and various child sites of StackExchange network. I have tried my level best to create my own like this but was unable to do so. I would be ...
-3
votes
1answer
89 views
posted code sample is not properly displayed [duplicate]
Possible Duplicate:
How do I format my code blocks?
All the time I post a code sampe on SO, the display is not as desired. Here some examples with simple text from a notepad document:
1) ...
10
votes
1answer
149 views
Fix for $# code color highlight [duplicate]
I am a Perl coder and I would like to ask Stack Overflow to fix code color highlights for # comments.
It works properly for real comments, such as
# this is a comment
but when $# is in code, such ...
8
votes
2answers
88 views
Suggest that users add code to a question if they haven't already
Disclaimer: This only really applies to Stack Overflow at the moment, though I think something similar may apply to the other sites as well.
Disclaimer 2: I seem to be advocating nudge theory, woe ...
8
votes
0answers
70 views
Should the FAQ encourage copy and pasting code for questions?
A couple of times I've seen questions where the code snippets supplied in the question don't exhibit the problem asked about in the question - such as the original version of this question. Sometimes ...
-7
votes
1answer
85 views
Warn users when posting without sample code?
A very common comment on SO questions is the request for sample code.
The thing is that this is possible to detect "automatically": by checking if the user formatted anything as code. Of course you ...
3
votes
2answers
59 views
How to respond to code-revision assistance? Answer, or Comment
I like stackoverflow because there are so many talented people helping each other out. I would like to know what is the best way to respond to a suggestion to my question, i.e., sharing the code ...
1
vote
2answers
150 views
Display wide code snippets in a larger textbox instead of displaying horizontal scrollbars [duplicate]
Possible Duplicate:
Resizable text blocks?
I find reading wide code snippets using horizontal scrollbars annoying. Sometimes I have to scroll back and forth when reading multiple wide lines ...
-5
votes
2answers
140 views
Has integration of a larger code snippet system been considered?
I am aware of many posts with great questions and answers about conventions and best practices when posting larger amounts of code. I am curious though: at a higher level, what if anything has been ...
4
votes
2answers
189 views
Policy on questions and answers that contain links to the code (or picture) in question
I've seen a number of questions and answers come up for review recently, that include links to the asker's/answerer's code or a picture.
Example: Very Slow MySQL Inserts
It seems a lot of people ...
10
votes
4answers
137 views
when answering a coding question, is it better to just answer the question, or rewrite the OP's code?
For example, if the OP asks why the array arr is not full in the following code:
for (var i=0;i<10;++i) {
var arr=new Array();
arr[i]=i;
}
Is it better to simply say "put the arr ...
0
votes
1answer
117 views
Add line numbers to code sections? [duplicate]
Possible Duplicate:
Why are there no line numbers in the code listings?
Please add line numbers to code sections. It will help when discussing the code.
-11
votes
1answer
108 views
Code blocks are unreliable
First of all, having to go through your code and add four spaces to every line is a pain, (even though I can just do gg>G in vim, I shouldn't need to launch a separate program). The code button ...
1
vote
1answer
97 views
Edit code or post new question?
What is the normal practice when you have a problem like this:
You have a snippet of code (small or big) and want to solve problems and improve it together with the community.
Normally you get ...
18
votes
1answer
506 views
When is it appropriate to edit someone else's code? [duplicate]
Possible Duplicate:
How far can I refactor someone else's code?
I see a lot of edits in queue where some well-meaning user attempts to fix OP's code. They range from minor syntax ...
1
vote
0answers
41 views
Feature Request: Collapsible Panels/Regions [duplicate]
Possible Duplicate:
Please add the ability to fold blocks of code in questions and answers.
Too much information can be a bad thing. If a stack trace isn't helpful to the answer, all it ...
-4
votes
2answers
420 views
How can I attach a file to a question? [duplicate]
Possible Duplicate:
Please add a system to allow file uploads attached to questions and answers
How do I format my code blocks?
I want to attach a code file to my question, but I am not ...
8
votes
0answers
104 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 ...
15
votes
0answers
107 views
Make code blocks vertically resizable
Currently, you can resize the "add answer" text-area box vertically using the grippie [sic] at the bottom. I would love to be able to do this with the code-boxes that are found in both the question ...
5
votes
1answer
202 views
Long code snippets that are relevant to the question
Sometimes there's need for including large chunks of data/code in a question. (See comments to the question: the OP tried to include a couple of long XML files, but that wasn't possible.)
What's the ...