The code tag has no wiki summary.
-1
votes
1answer
51 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
64 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) ...
-1
votes
1answer
63 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
107 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 ...
8
votes
2answers
83 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
96 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
72 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
120 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
120 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
32 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
111 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 ...
6
votes
1answer
127 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
190 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
154 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 ...
22
votes
3answers
253 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
65 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
76 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
139 views
Fix for $# code color highlight
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
78 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
66 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 ...
-8
votes
1answer
80 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 ...
2
votes
2answers
46 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
115 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
126 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
117 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
115 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
99 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
96 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 ...
0
votes
1answer
84 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 ...
10
votes
1answer
259 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 ...