Currently, questions are required to include a specific ratio of code:non-code, based upon the use of "code block" formatting like this
. This is done with the intention of limiting "code dump" posts (those with an error in the title, the entirety of someone's code, and little to no detail).
However, this is circumvented by removing "code block" formatting on the first few lines of code. An example may be this (taken from a recent question):
//I'm learning java and i just learning something about the math class but i have the same error with all the methods public class Math{
public static void main(String[] args) {
float num=5.45F; int result=Math.round(num); System.out.println(result); } }
Not only can this lead to confusion, as this user's error was due to non-formatted code, but also to an impossibility for editors in changing the question to be properly formatted and being given:
It looks like your post is mostly code, please add some more details
I agree that posts, like those exemplified above, are mostly code and should have more detail, but that should fall upon the original asker, as opposed to editors. I don't believe that editors should be required to add context to a question, especially if that context may be incorrect or biased, to fix "code dump" type questions. That is why I am requesting that edit requests not be held to the same, automatic, standards as originally asked questions.
My suggestion would be to remove the code:non-code ratio from edit requests and give the original asker a message if their post violates this ratio, either before or after editing.
As a note, the example question shown above currently has the status of:
I'm learning java and i just learning something about the math class but i have the same error with all the methods
public class Math{ public static void main(String[] args) { float num=5.45F; int result=Math.round(num); System.out.println(result); } }
This does fix the issue, without relying upon information inferred by editors, but I believe my reasoning still stands. I believe this because most similar "code dump but formatted to bypass automatic detection" questions do not include initial details/context in their code, and thus cannot be fixed in this way.