Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Whether to post full answers or not  RSS feed

 
Jitender Raghuvanshi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
Jitender Raghuvanshi wrote:and you wont explain what is wrong with the code?
That's rude! :P

As rude as not reading our HowToAnswerQuestionsOnJavaRanch (←click) page before posting an answer?

Because if you had, you'd have seen our version of the Hippocratic oath: FirstRuleDoNoHarm (the first link).
And also: DontBeACodeMill.

However, I'm sure your intentions were great, and welcome to the Ranch, Jitender.

Anyway, its working fine at my end.

Except, as Campbell said (and I mentioned earlier), that code will NOT give you what you expect with negative numbers.

Winston


Thanks Winston.
My intentions were clearly to give an answer for the question as i expect from people when i ask questions in other forms.
Clear, to the point answers!!!
By looking at previous answers i was sure that nobody gives a damn here about such beginner level questions(Everybody was like 'I am so fudging "Java Cool'").
But, as i am also a beginner , I actually do give a damn.
And that is what i was doing. And for giving a damn, i don't need to read any damn rules. Do I?
I know, Right? That is why I didn't go through any stupid rulebook before posting here. I simply gave the answer even if it was wrong for some extent (Which i am thankful to you both for noticing ).

Jitender


 
Campbell Ritchie
Sheriff
Posts: 55306
156
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your comments. If somebody is trying to learn, they will be much more successful and remember the lesson better if they have worked it out for themselves. Simply giving a complete answer shortcircuits the process and ensures they do not know what to do next time such a problem arises.
We usually delete such posts (sometimes retaining the content so they can be restored later), but your posts both have instructive points about things which need improvement, so they are worth leaving.

We do actually care about beginners' questions; they usually go into a different forum, where we tell people this:-
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
We have not done that to annoy you so sorry if we have. But turning up on a new forum, ignoring its conventions and calling people rude is really going to endear you to everybody, isn't it.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jitender,
Posting a code snippet is fine. Posting a hint is fine.

In other forums, we are ok with more in the answer. For example, the JavaScript forum often gets small working examples.
 
Jitender Raghuvanshi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Thank you for your comments. If somebody is trying to learn, they will be much more successful and remember the lesson better if they have worked it out for themselves. Simply giving a complete answer shortcircuits the process and ensures they do not know what to do next time such a problem arises.
We usually delete such posts (sometimes retaining the content so they can be restored later), but your posts both have instructive points about things which need improvement, so they are worth leaving.

We do actually care about beginners' questions; they usually go into a different forum, where we tell people this:-
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
We have not done that to annoy you so sorry if we have. But turning up on a new forum, ignoring its conventions and calling people rude is really going to endear you to everybody, isn't it.


I get it now. But, you should display these rules while people register in here (Just a suggestion). Why would anybody go find the rules before entering a forum? I mean, nobody does that on web. You must make them read the rules. Rules and regulations should be displayed on top of everything. I hope you get my point.

Jitender
;)
 
Jitender Raghuvanshi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Jitender,
Posting a code snippet is fine. Posting a hint is fine.

In other forums, we are ok with more in the answer. For example, the JavaScript forum often gets small working examples.


Yeah! Right. But now I understood the difference between other forums and this one.
Others simply give you answers while this one help developing your logical ability as well.
I appreciate the efforts being made here...
 
muthu guruvu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:If somebody is trying to learn, they will be much more successful

trying to learn and learning is completely different.

Campbell Ritchie wrote:the lesson better if they have worked it out for themselves. Simply giving a complete answer shortcircuits the process and ensures they do not know what to do next time such a problem arises.

by the way - do you ever contributed in open source ? i mean by hand ... we can speak anything in anyway that is good or bad . BUT ...

*sorry sir* if i offended you.
 
Campbell Ritchie
Sheriff
Posts: 55306
156
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Joanne Neal
Rancher
Posts: 3742
16
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
muthu guruvu wrote:
Campbell Ritchie wrote:If somebody is trying to learn, they will be much more successful

trying to learn and learning is completely different.

Precisely, which is why we try to help people to learn how to learn rather than giving them the answer.
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jitender Raghuvanshi wrote:I get it now. But, you should display these rules while people register in here (Just a suggestion). Why would anybody go find the rules before entering a forum? I mean, nobody does that on web. You must make them read the rules. Rules and regulations should be displayed on top of everything. I hope you get my point.


Actually we only have one rule here (everything else you're looking at is guidelines). And that rule is: Be Nice. You wouldn't think it would be necessary to point that rule out on a technical forum like this, and usually it's obvious to people who post here, but occasionally there are exceptions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!