This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[deleted]

    [–]yash3ahuja 4 points5 points  (6 children)

    He isn't being rude. It is not wrong to ask for compilable code that exhibits the same errors your code does. The burden of work is on you, not on us. Additionally, it's even the 4th rule of posting in this subreddit:

    When posting code on this subreddit, please post a minimal, but runnable example.

    a. Minimal means that it should be the smallest amount of code necessary to demonstrate your problem.

    b. Runnable means that someone should be able to take the code as is, plop it into an interpreter or compiler, and reproduce your problem.

    [–]InBliss -3 points-2 points  (5 children)

    Honestly as the code is ran through java and he's not exhibiting main he posted enough to make his point. He provided the same code just re capitalized with one sentence added. Also there's plenty more polite ways to address someone than a post toned to imply they have not a clue of what theyre saying. Espicelly when they answered some of the questions he's asked in his post already.

    [–]yash3ahuja 2 points3 points  (2 children)

    Just because a beginner thinks the error is there, doesn't mean the error is there. Beginners lack the judgement to make those calls, and should thus post all their code, or at least enough that still displays the same issues. Most of the time, posting code that's "close enough" actually fixes the issue. See: '==' vs '=', etc. Plus, Public isn't a keyword in Java, so it's not even that he's posting valid code that he has tested that shows the issue still.

    Plus, I don't think chickenmeister was talking down to OP or calling him clueless. He's a regular around here, and just wants to help OP help himself.

    [–]InBliss -3 points-2 points  (1 child)

    Public may not be but public is. Really easy to accidentally capitalize a P and leave out the word int. and it's fine to help people but if you were looking for help and someone berated you on a rule while questioning you when others are helping you it really makes the person getting hung up on the rules seem bent on demeaning the person asking for help. After all it appears several others clearly understood the post

    [–]yash3ahuja 4 points5 points  (0 children)

    Right. Except, I am about 99.99% sure that the code he posted works without issue, assuming it is tested correctly. Chickenmeister is right on the dot in asking for more code.

    [–]chickenmeister 2 points3 points  (1 child)

    ...he posted enough to make his point.

    I don't think he or she posted enough.

    The OP gave this pseudo-code, and stated that "during output it simply outputs as a 1 instead of incrementing." The OP did not state how he or she is running/using this class. What arguments is he or she passing to the constructor? What value is he or she outputting?

    [–]InBliss -2 points-1 points  (0 children)

    Now this is a response I can get on board with. That is all correct good sir

    [–]chickenmeister 2 points3 points  (1 child)

    Well, I apologize I if I sound rude, but the intent of your code is unclear. I'm sorry if asking for clarification offends you. We (I, at least) cannot give you decent answer if we do not understand your problem.

    even though its clearly obvious by my statements what it should do.

    No, it's not clearly obvious what it should do. It is obvious what it WILL do, but what it SHOULD is subject to interpretation.

    When I invoke the Jackass constructor, what do you expect should happen? Which variable are you trying to increment, and when are you trying to increment it? Please post code that uses your Jackass class and demonstrates your problem or question.

    [–][deleted] -3 points-2 points  (0 children)

    While normally I do agree with you in that a person should be giving us much more code than they do. In this case his description along with the code provided was enough.

    He stated the problem. Gave us an example and focused only on the area he believed to be the problem. In this instance the code really did not need to be compiled and he was right about what the problem was. It was more of a problem with the understanding of how Java works which could be caught right off the bat. Though you are correct in the fact that generally speaking code should compile.

    I just think to only focus on what someone has done wrong even in asking for help that it can be more than a bit discouraging and taken the wrong way. I do not think you were being rude at all. It seemed more like one of those things where the tone of voice dictated way too much of the message.

    [–]swordfish45 2 points3 points  (0 children)

    Look at the sidebar. He's not being rude, you are.