i died laughing!

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

39 Replies - 11523 Views - Last Post: 09 August 2013 - 06:03 AM Rate Topic: -----

#16 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

Re: i died laughing!

Posted 22 August 2012 - 10:04 PM

View PostAtli, on 07 August 2012 - 04:26 AM, said:

Honestly, DivideByZero, that's not a mistake. It's an elaborate way of saying: "I have no clue what I'm doing."

I agree, though, that there would be no need to be disrespectful about it. Not everybody is built to be a programmer. - Not that we know that Bairon actually did that. Posting anonymously about it here and being an asshole to her face are two very different things.

Bairon said:

shes been on an intense java training for a year

Seriously? Based on the code you posted, it doesn't look like she's done more than a day or two of a basic Java course. Is nobody paying attention to whether or not these people are actually learning anything during their training? I'd have though there were tests along the way that would evaluate people's progress...


It seems to me that they were just being trained to display "Hello World" for a year. Did you really say she did this to show her competency?
Was This Post Helpful? 0
  • +
  • -

#17 NecroWinter  Icon User is offline

  • D.I.C Regular

Reputation: 35
  • View blog
  • Posts: 318
  • Joined: 21-October 11

Re: i died laughing!

Posted 30 August 2012 - 12:50 PM

*
POPULAR

I can totally see this mistake being done by a nervous person who doesnt believe in themselves and misread something.

"Make a string named mary, which is set to mary, then a string named johnson that is set to johnson, display hello, mary johnson"

I've seen a lot of people (girls mostly, but a few guys) who have like zero self confidence and make really strange errors because of it, despite actually knowing what they ought to do.

If a person is nervous and stressed out, they will often times LITERALLY DO EXACTLY WHAT YOU WRITE without considering the implications of your language.

I dont really know the situation, but im just pointing this out.

This post has been edited by NecroWinter: 30 August 2012 - 12:52 PM

Was This Post Helpful? 5
  • +
  • -

#18 TonicX57  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 13-September 08

Re: i died laughing!

Posted 25 September 2012 - 10:23 PM

View PostTwoOfDiamonds, on 18 August 2012 - 12:36 PM, said:

View PostDarenR, on 14 August 2012 - 09:32 PM, said:

View PostGlorfindal, on 14 August 2012 - 02:27 PM, said:

So what was the position more suitable for her? :P

probably missionary

That would mean she won't do anything at all ... again !

Huh. I didn't realize how hateful/offensive people were around here. I myself try not to bash legitimate religious practices on a programming website, but I guess it's a free country.


Excuse my displeasure. Regarding the original post, however, I can say that, even as a person who has hardly any practical programming experience thus far, I would have probably laughed at this as well. Or at least smiled silently in my mind. I probably couldn't have taken this intern seriously after seeing this prime demonstration of programming know-how. An amoeba could probably perform better than this, provided it has the motor skills.
Was This Post Helpful? 0
  • +
  • -

#19 fromTheSprawl  Icon User is offline

  • Monomania
  • member icon

Reputation: 513
  • View blog
  • Posts: 2,056
  • Joined: 28-December 10

Re: i died laughing!

Posted 25 September 2012 - 11:33 PM

*
POPULAR

TonicX57, I believe that quote refers to an act which is done intimately.
Was This Post Helpful? 13
  • +
  • -

#20 janne_panne  Icon User is offline

  • WinRT Dev
  • member icon

Reputation: 429
  • View blog
  • Posts: 1,047
  • Joined: 09-June 09

Re: i died laughing!

Posted 26 September 2012 - 06:37 AM

This topic reminds me of this Daily WTF article:

http://thedailywtf.c...Paula_Bean.aspx

But atleast Paula knew how to use variables!

This post has been edited by janne_panne: 26 September 2012 - 06:38 AM

Was This Post Helpful? 2
  • +
  • -

#21 TonicX57  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 13-September 08

Re: i died laughing!

Posted 26 September 2012 - 09:42 AM

View PostfromTheSprawl, on 26 September 2012 - 01:33 AM, said:

TonicX57, I believe that quote refers to an act which is done intimately.

Ah, that makes sense. Feel free to disregard my comments then, as I raise my palm to my face in embarrassment.

This post has been edited by TonicX57: 26 September 2012 - 09:48 AM

Was This Post Helpful? 3
  • +
  • -

#22 Charmaine16  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 19-September 12

Re: i died laughing!

Posted 13 October 2012 - 11:19 AM

LOL :bigsmile: this made me laugh and feel ashamed to be a girl but shame mabye it was an honest mistake, mabye... :innocent:
Was This Post Helpful? 0
  • +
  • -

#23 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3718
  • View blog
  • Posts: 5,986
  • Joined: 08-June 10

Re: i died laughing!

Posted 13 October 2012 - 11:39 AM

Leaving out a semi-colon is an honest mistake. Creating a scanner, then hard-coding a couple of variables, only to print out a static string... That's something else entirely :)
Was This Post Helpful? 0
  • +
  • -

#24 extremeblueness  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 186
  • Joined: 22-October 12

Re: i died laughing!

Posted 23 October 2012 - 06:09 PM

Wow. This is hilarious. I've been learning Java for FOUR DAYS, and even I know not to do this. The scanner is beyond me, but my guess is that it reads a string input. Then they make the strings, but fail to have them equal to output. Then, to top it all off, the most efficient way to make this code would have been

public class EfficientFailure {
   public static void main (Strins args[]) {
      System.out.println("Welcome, Mary Johnson");
   {
{


Was This Post Helpful? -2
  • +
  • -

#25 programmerblack  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 28-January 11

Re: i died laughing!

Posted 02 November 2012 - 12:31 PM

It's a cutesy kind of laugh for me. I enjoyed looking at that.
Was This Post Helpful? 0
  • +
  • -

#26 extremeblueness  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 186
  • Joined: 22-October 12

Re: i died laughing!

Posted 02 November 2012 - 09:09 PM

Wow. I just realized I made a typo. typed Strins instead of String.
Was This Post Helpful? 0
  • +
  • -

#27 code_m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 24
  • View blog
  • Posts: 202
  • Joined: 21-April 09

Re: i died laughing!

Posted 13 November 2012 - 11:01 AM

View Postextremeblueness, on 02 November 2012 - 11:09 PM, said:

Wow. I just realized I made a typo. typed Strins instead of String.


You also never used any closing braces ('}'). Or maybe that was intentional?

As for the OP... *facepalm*
Was This Post Helpful? 1
  • +
  • -

#28 extremeblueness  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 186
  • Joined: 22-October 12

Re: i died laughing!

Posted 13 November 2012 - 12:24 PM

Oops. That was actually unintentional. Which is weird, considering that that's the only time I've made that mistake.
Was This Post Helpful? -1
  • +
  • -

#29 xxxjj18  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 53
  • View blog
  • Posts: 167
  • Joined: 30-November 11

Re: i died laughing!

Posted 29 November 2012 - 06:41 PM

View Postextremeblueness, on 13 November 2012 - 12:24 PM, said:

Oops. That was actually unintentional. Which is weird, considering that that's the only time I've made that mistake.


Back to the drawing boards. Lol
Was This Post Helpful? 0
  • +
  • -

#30 extremeblueness  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 186
  • Joined: 22-October 12

Re: i died laughing!

Posted 01 December 2012 - 06:35 AM

Hey, I was only four days into my knowledge of programming when I originally posted that.

I was already AT the drawing boards.

By the way, I think I figured out what Mary Johnson's assignment was. I think it was to take your first and last names as inputs, and to have them as output. Here's what I would have done with my current knowledge of java:

import java.io.*;
import java.util.*;

public class NameDisplay
{
   public static void main (String[] args)
      throws IOException
   {
      double age;

      PrintWriter writer = new PrintWriter(System.out, true);
      
      for (running = true; running == true; )
      {
         Scanner reader = new Scanner(System.in);
         writer.println("\nPlease enter your age in years.\n");
         try
         {
            age = reader.nextDouble;
         }
         catch (InputMismatchException wrongType)
         {
            writer.println("\nError.\nNot a double.\nPlease try again.");
            continue;
         }
         if (age <= 0)
         {
            writer.println("\nError.\nNegative or null age.\nPlease try again.");
            continue;
         }

         writer.println("\nAccepted.\nPlease enter your first name.\n");

         String first = reader.next();

         writer.println("\nPlease enter your last name.\n");

         String last = reader.next();

         writer.println("\nWelcome, " + first + " " + last + ".");
         writer.println("Your are " + age + " years old.");
         return;
      }
   }
}



The reason for the edit is because I moved the creation of the Scanner inside the for loop fixed my for loop so that it covers my whole code (so that it doesn't skip over the for loop).

I also put a return statement in there (in case someone wants it to return a value).

Oh and if you saw my mistake with the word second, that was my original name for the variable/object/string currently known as last.

This post has been edited by extremeblueness: 01 December 2012 - 06:46 AM

Was This Post Helpful? 1
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3