Results 1 to 17 of 17
  1. #1
    Denis2k11 is offline Member
    Join Date
    Oct 2012
    Posts
    35
    Rep Power
    0

    Exclamation Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Done with this site. All you get is snarky comments from people who are supposed to help you. Done.
    Last edited by Denis2k11; 11-25-2013 at 09:20 AM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,765
    Blog Entries
    7
    Rep Power
    21

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    That code makes me nauseus; a fileReader that is a FileWriter, a getResults thing (a FileReader) that reads from a file while there's also an 'input' thing; that codes needs serious commenting ...

    kind regards,

    Jo
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    lol, I wonder if the OP realizes that most people who visit here also visit all other forums to give snarky comments :p
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,765
    Blog Entries
    7
    Rep Power
    21

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Quote Originally Posted by gimbal2 View Post
    lol, I wonder if the OP realizes that most people who visit here also visit all other forums to give snarky comments :p
    The OP should read Henry Weinberg's 'Egoless Programming'; I'm glad the OP edited the code away, it looked horrible ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    There actually is such a book!? The gall of the author to think that he'd be the one that is qualified to write it!

    Now I have to read it, I'm really curious just what it contains.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,765
    Blog Entries
    7
    Rep Power
    21

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Quote Originally Posted by gimbal2 View Post
    There actually is such a book!? The gall of the author to think that he'd be the one that is qualified to write it!

    Now I have to read it, I'm really curious just what it contains.
    Basically the idea is: 'be rough for the code, be gentle with the programmer'; assume that the programmer did his/her best on the code and didn't make mistakes purposely. Everybody makes mistakes and you (the programmer) aren't your code, so don't identify yourself with it; if your code gets bad remarks, all you can (and have to) do is learn from it. Henry Weinbergs paper is quite old (somewhere in the 70s of the previous century), but it's a good read; the Ten Commandments are better known.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    aaaaah, I get it. So it isn't actually for me, the IT manager has to read it :p
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    ras_oscar is offline Member
    Join Date
    Jun 2013
    Posts
    60
    Rep Power
    0

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    I get the feeling I've walked in to a party after all the beer and most of the chips are gone.

  9. #9
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,021
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    I understand the author's point. But it is still difficult to not be a tad offended (except for me - I just consider the source :). For some, it is no different than telling a seamstress or tailor that their hems are lousy or a furniture maker that s/he cuts lousy dovetails. I am guilty of my own snarky comments but it's better to say something like "you might consider doing it this way" rather than something like "your code sucks!" A gentle approach is probably better. However, I didn't see the OP's post but judging from the title there may have been a better way to solicit help. Reading the forum guide and following it would be a good start.

    Regards,
    Jim
    Last edited by jim829; 11-25-2013 at 04:00 PM. Reason: Dumb grammar error - my grammar sucks!!
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  10. #10
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Well given that the OP has called the entire forum "basic bitches" in the recent past (whatever that is!), I have little remorse.

    Logic error when there shouldn't be one? Method not executing properly.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  11. #11
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,021
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Yeah, you're correct of course. I was speaking to a more general audience and responding primarily to the concept of ego-less programming. Clearly the OP needs an attitude adjustment.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  12. #12
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Given that it is the New to Java forum, it is unfair to call out poor code quality though. Mine was also horrible when I was a greenhorn, the focus is simply somewhere else when you're still learning (getting stuff to actually not vomit one exception after another, mostly).

    But when I shared it with someone else to take a look at it, I did have the courtesy to clean it up first. That courtesy came from myself, nobody had to ask me to do it. My parents raised me well in that respect.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  13. #13
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,765
    Blog Entries
    7
    Rep Power
    21

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Quote Originally Posted by gimbal2 View Post
    Given that it is the New to Java forum, it is unfair to call out poor code quality though.
    I wasn't even rude towards the code in my original reply (I can revert the edit so you can see that code, if you want); it just made me nauseus; the OP needs to adjust his attitude if he ever wants to work in this field.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  14. #14
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,021
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    In retrospect, based on an old post Erik pulled up, I would have expected the OP to have been banned for a short period of time (perhaps he was). There seems to be a growing tolerance of foul language or directed insults on this forum.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  15. #15
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,083
    Rep Power
    4

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Quote Originally Posted by JosAH View Post
    I wasn't even rude towards the code in my original reply (I can revert the edit so you can see that code, if you want); it just made me nauseus; the OP needs to adjust his attitude if he ever wants to work in this field.

    kind regards,

    Jos
    You just made me curious :)
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  16. #16
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Well you DID have your "kind remarks" signature below it of course. How can anyone misinterpret THAT?

    "YOUR CODE MAKES ME SICK TO MY STOMACH! kind regards, Jos" :p (I know I know, making it all caps is an unfair comparison. Sue me.)
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  17. #17
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,765
    Blog Entries
    7
    Rep Power
    21

    Default Re: Urgent help! File is not being deleted!?!? Code is perfect!(well,clearly not!)

    Quote Originally Posted by gimbal2 View Post
    Well you DID have your "kind remarks" signature below it of course. How can anyone misinterpret THAT?

    "YOUR CODE MAKES ME SICK TO MY STOMACH! kind regards, Jos" :p (I know I know, making it all caps is an unfair comparison. Sue me.)
    It is in the spirit of the 'Egoless Programming' idea: be rough to the code and be nice to the programmer. I had no intentions to insult the OP by criticizing his code; the code was stinky at best and needed at least to be commented. If the OP felt insulted (and he did), that is his problem; I was willing to discuss the code and the OPs problem, no more no less.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 5
    Last Post: 11-23-2012, 03:00 AM
  2. Help with code very urgent
    By newjava85 in forum New To Java
    Replies: 7
    Last Post: 02-22-2012, 07:25 PM
  3. Deleted Class template code. Now I cant make class.
    By AcousticBruce in forum IntelliJ IDEA
    Replies: 0
    Last Post: 01-11-2011, 11:52 PM
  4. Ajax's confusion code problem perfect solution
    By chinafhf in forum Web Frameworks
    Replies: 0
    Last Post: 03-16-2009, 02:56 PM
  5. Help with code "perfect shuffle"
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 08:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •