AMZDeCoder's Profile User Rating: -----

Reputation: 24 Tradesman
Group:
Active Members
Active Posts:
101 (0.1 per day)
Joined:
04-November 11
Profile Views:
2,078
Last Active:
User is offline Sep 21 2013 02:55 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Suzuki
Dream Kudos:
0

Latest Visitors

Icon   AMZDeCoder I am not just a coder, I am a human first :)

Posts I've Made

  1. In Topic: Reversing an array's elements

    Posted 21 Sep 2013

    View Postjon.kiparsky, on 21 September 2013 - 12:52 AM, said:

    I saw a massive code dump in progress, and I removed the offending material as I'm asked to do in my role as a forum leader. It's posted all over the site: we won't do your homework for you. I think that's a good policy, and I'll remove material that violates it if I see fit to do so. I saw no real basis to distinguish between slight gradations of "here's your homework", so I scrubbed them all. After all, ChrisNT had already provided a cogent explanation using code to make a point. All of the more or less complete implementations were just piling on to show that, wow, you can do a first-year coding assignment. Congratulations. I'm proud of you. Now let the kid do his own homework. If he has further questions about it, we can answer them.

    If you need a guideline, put it here: when you're dealing with a homework problem, a good explanation that uses code to make a point more clear is probably good. A post that just implements the requirements as posted is certainly going to get cut. If you're smart enough to work out a three-point swap, you can probably figure out where any particular post stands on this metric.

    If you want to understand why this policy exists, there are a few ways to answer that. One is to consider that the college kid asking a question today might well be a new hire on your team in a year or two. I don't know about you, but I want that kid to be as smart as they can be, and you don't get that by copying stuff that you saw on DIC. You learn to solve problems by solving your own problems.
    Another thing to consider is this: the quality of the answers you provides affects the quality of the questions you'll get. If DIC is the place to come for verbatim solutions to your homework problems, that traffic will drown out anything that we actually want to have here.
    If that doesn't work for you, just think of it as a DRY violation. You can google the verbatim solution to any of the standard homework problems. For you to type it out is a foolish waste of your energy, which could be used to actually help the poster understand the underlying issues in their code.


    EDIT: This will be my last word on the matter. If you think I've handled this situation incorrectly, take it up with a moderator. I'll cheerfully modify my policy or turn in my forum leader badge (my option) if any of the moderators feel I'm out of step with what they want this board to be.


    Hi,

    I understand posting complete solutions is wrong, but why a code snippet is removed ? When it is explaining the solution ? Also why are you giving negative reputation for a code snippet ?

    A complete code dump was never posted.. you can check your website logs... and verify..

    I request someone to look into Jon;s actions ! I have seen many people posting code snippets which is just help and not a complete code solution.

    View PostAMZDeCoder, on 21 September 2013 - 01:01 AM, said:

    View Postjon.kiparsky, on 21 September 2013 - 12:52 AM, said:

    I saw a massive code dump in progress, and I removed the offending material as I'm asked to do in my role as a forum leader. It's posted all over the site: we won't do your homework for you. I think that's a good policy, and I'll remove material that violates it if I see fit to do so. I saw no real basis to distinguish between slight gradations of "here's your homework", so I scrubbed them all. After all, ChrisNT had already provided a cogent explanation using code to make a point. All of the more or less complete implementations were just piling on to show that, wow, you can do a first-year coding assignment. Congratulations. I'm proud of you. Now let the kid do his own homework. If he has further questions about it, we can answer them.

    If you need a guideline, put it here: when you're dealing with a homework problem, a good explanation that uses code to make a point more clear is probably good. A post that just implements the requirements as posted is certainly going to get cut. If you're smart enough to work out a three-point swap, you can probably figure out where any particular post stands on this metric.

    If you want to understand why this policy exists, there are a few ways to answer that. One is to consider that the college kid asking a question today might well be a new hire on your team in a year or two. I don't know about you, but I want that kid to be as smart as they can be, and you don't get that by copying stuff that you saw on DIC. You learn to solve problems by solving your own problems.
    Another thing to consider is this: the quality of the answers you provides affects the quality of the questions you'll get. If DIC is the place to come for verbatim solutions to your homework problems, that traffic will drown out anything that we actually want to have here.
    If that doesn't work for you, just think of it as a DRY violation. You can google the verbatim solution to any of the standard homework problems. For you to type it out is a foolish waste of your energy, which could be used to actually help the poster understand the underlying issues in their code.


    EDIT: This will be my last word on the matter. If you think I've handled this situation incorrectly, take it up with a moderator. I'll cheerfully modify my policy or turn in my forum leader badge (my option) if any of the moderators feel I'm out of step with what they want this board to be.


    Hi,

    I understand posting complete solutions is wrong, but why a code snippet is removed ? When it is explaining the solution ? Also why are you giving negative reputation for a code snippet ?

    A complete code dump was never posted.. you can check your website logs... and verify..

    I request someone to look into Jon;s actions ! I have seen many people posting code snippets which is just help and not a complete code solution.


    I don't understand why is the forum admin hell bent on making his own way and dictating terms which "he thinks" is the forum policy ? I believe this is a public forum and just editing someone's post to show your dominance is not the right way to encourage people to come to this forum.

    Bottom line is, when a complete code solution was not given and it was just a snippet, why does the forum admin edit it and give negative reputation to the person providing help ?

    Requesting someone to please take a look at jon's actions on this thread and other threads, mis use of authority is not good for anyone.
  2. In Topic: Reversing an array's elements

    Posted 20 Sep 2013

    View PostAMZDeCoder, on 19 September 2013 - 04:25 AM, said:

    Hi,

    The simplest way to reverse an array is using ArrayUtils.reverse which is avaliable in Commons.Lang.

    In your case, the code snippet would be as below,

    // Define the array
    REMOVED
    
    


    Hope this helps !



    Why is my code snippet removed ? It was just a suggestion ? And why a negative reputation for a helpful post from me ?

    Admin forum, is there any issue ? As per my discussions I have stopped posting complete code solutions.. but I guess snippets are allowed ? What is the issue here someone please explain... ?
  3. In Topic: Reversing an array's elements

    Posted 19 Sep 2013

    Hi,

    The simplest way to reverse an array is using ArrayUtils.reverse which is avaliable in Commons.Lang.

    In your case, the code snippet would be as below,

    // Define the array
    REMOVED
    
    


    Hope this helps !
  4. In Topic: ClassNotFoundException Java JApplet

    Posted 19 Sep 2013

    Hi,

    webApplet.Applet.class should be present in the same directory as your html file.

    Have you compiled your Java file and generated the class file ?
  5. In Topic: Prepared Statement

    Posted 19 Sep 2013

    Hi,

    The logic is flawed.

    You are reading the user code and your query is using firstName and lastName. What your program is trying is reading firstName and lastName based on the user Id entered.

    Try the below modified code:
    PreparedStatement pstmt = con.prepareStatement("SELECT firstName, lastName FROM Users WHERE userID =?");
    
    pstmt.setString(1,userCode);
    
    
    


    From reading your code I understand you are trying to fetch first name and last name of a user based on the user code entered.

    So rethink on your logic, try the modification I suggested and get back if you are still stuck :)/>

My Information

Member Title:
D.I.C Head
Age:
27 years old
Birthday:
September 26, 1986
Gender:
Location:
Mumbai, India
Full Name:
Ameya Beri
Years Programming:
7
Programming Languages:
Java, J2EE, J2ME, PHP, PLSQL, MySQL, J2EE, Matlab, C, C++.

Contact Information

E-mail:
Private
Website URL:
Website URL  http://aknsoftwaresolutions.110mb.com/
Skype:
Skype  ameya_beri
Facebook:
http://www.facebook.com/people/Ameya-Beri/100001128851091

Friends

Comments

Page 1 of 1
  1. Photo

    Creecher Icon

    06 Nov 2011 - 17:26
    PHP isn't a programming language, it's server-side scripting.
Page 1 of 1