2

I posted this question (question) a few days ago but it has received little attention and even got downvoted once for no apparent reason. I would like to know how can I improve so that it receives more attention and helps the SO volunteers to better help me solve my problem. Also I would like to know why might be that it got downvoted.

5
  • Not my field of expertise, but: I've found SO readers really really like questions with a bit of code. Even (sigh) when explicitly asked for, say, a description of an algorithm. Are you sure your question cannot be enhanced with a short snippet?
    – Jongware
    May 1, 2016 at 20:14
  • 1
    The thing is I don't know part to put that is relevant for the question. It might occur that I post a snippet of code that ends up being (not knowing it) not relevant for the problem because that part of the code might be innocuous. May 1, 2016 at 20:20
  • @RadLexus Added some code that maybe could help, though I don't get my hopes up. May 1, 2016 at 20:42
  • 1
    It might be good to add a picture of the behavior you're describing. (And maybe remove some of the unnecessary words.) Many people don't have the patience to read that much.
    – Laurel
    May 1, 2016 at 21:15
  • @Laurel Tried to trim it a bit. Don't know what else to remove. May 1, 2016 at 21:27

2 Answers 2

3

Just a few things:

  1. Keep the title easy to understand(which is good in your case)

  2. Description of the question should be brief - describe just the problem

    Try to keep the descriptions to the point. You don't have to explain your whole use case. Just keep whatever is required in the question. (I think lots of details are unnecessary in your question. Eg : The process to be followed)

  3. Try to keep the whole question short so that its easier for any one to view and get an idea of what could be the problem & suggest tips in comments(if not an answer)

  4. Keep your code short and to the point.

    (you may put up the required part of code only or just tidy up the existing one as it has too many spaces in it)

  5. Add appropriate tags to the question (which I think you have covered)

  6. Add a snapshot of final output(if possible) so that is easier to visualize what you want.

Even after following all of these, if you don't get required solution or suggestion(this usually happens if your question is very specific or not salvageable**) you may put it up with a bounty.

**If your question is flagged not salvageable, then try to fix it or ask other users how you could improve it.

7
  • If the question isn't salvageable, putting up a bounty is the worst thing you can do.
    – Laurel
    May 3, 2016 at 2:58
  • "if you don't get required solution" --> this happens when the question is not salvageable or very specific!
    – Ani Menon
    May 3, 2016 at 3:02
  • I read your last sentence as If your question is flagged not salvageable, then ... put it up for a bounty
    – Laurel
    May 3, 2016 at 3:34
  • @Laurel the "..." has the stuff that's to be done before putting up a bounty.
    – Ani Menon
    May 3, 2016 at 3:38
  • I'm just saying the wording is potentially ambiguous. You may want to reword that to prevent confusion.
    – Laurel
    May 3, 2016 at 3:42
  • @Laurel I think its fixed.
    – Ani Menon
    May 3, 2016 at 3:45
  • You also had a period killing the markdown. Yes, it's better now.
    – Laurel
    May 3, 2016 at 3:48
-1

I get bad feelings when I look at your linked question, but I couldn't explain why at first. All of the necessary pieces are there, but I think that you need to assemble them a bit better.

Let me step through it:

Title

Your title is ok, but it could be improved. Currently, it's a bit hard to read because it's so dense (do you need all of that?). It's also not a full, grammatical sentence.

I might change the title to something like:

DialogFragment doesn't reflect deleted rows in database when device is rotated

(Note that I have no clue if this accurately describes your problem. You need to revise all this stuff for technical accuracy.)

The title is the first thing that people see. Make it as inviting as possible.

Opening

I think you need to piece together the problem better.

I would suggest something like:

I'm making an app that interacts with a database. It has a RecyclerView where rows can be created, updated, or deleted.

It's almost working, but when I rotate the device, and delete a row, it doesn't show the changes in the DialogFragment, but the row is removed from the database.

When I do the same thing, but create a new row, everything works and it shows that there is a new row in the RecyclerView.

I would then outline what you have tried, and how it didn't work. You might also consider including a picture, if it helps describe the problem.

Code

I can't say too much about your code, but it's long (not to mention that you're linking to MORE code).

I actually edited your code to remove some of the unnecessary blank lines. I also split up several long lines so that it doesn't require horizontal scrolling.

You are also using a style of bracketing that takes up more lines:

public void method()
{

While both styles are equally valid, you can give the illusion of shorter code by using the other style:

public void method(){

And lastly, you should make sure that people can actually copy paste run your code with as little effort as possible.

1
  • I'll use your suggestions to modify the question post. Thank you. May 1, 2016 at 23:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .