1. Silahkan Login atau Register, untuk melihat konten-konten menarik lainnya.
  2. Eh, eh.. IDWS punya kebijakan baru dan Moderator in Trainee baru loh!. Intip di sini kuy!
  3. Hai IDWS Mania, membership gatotkaca telah hadir kembali lho, kalau mau info lebih lanjut klik di sini
    Dismiss Notice
  4. Indowebster membuka kesempatan bagi kamu-kamu yang berminat untuk melamar menjadi moderator Zona Movies and TV Series. Open Recruitment Moderator Zona MTV (SF Movies, TV Shows, Profile, Fansubs & Encoders, Movie Maker)
    Dismiss Notice
  5. Tertantang untuk menjadi bagian dari staff forum? Indowebster Corner membuka kesempatan bagi kamu-kamu yang berminat untuk melamar menjadi moderator. Open Recruitment Moderator Indowebster Corner
    Dismiss Notice
  6. Mau bergabung dan mengembangkan forum Female Insight Indowebster? Daftar diri kamu menjadi moderator Female Insight! Informasi lebih lengkap, buka link ini
    Dismiss Notice

The Various "Hello World"

Discussion in 'Tengah Komunitas' started by usus12jari, Apr 16, 2009.

Thread Status:
Not open for further replies.
  1. Offline

    usus12jari Lurking Around Banned User

    Joined:
    Jul 27, 2008
    Messages:
    1,295
    Trophy Points:
    0
    Ratings:
    +7,699 / -0
    Hmm.... Kayaknya lebih pas dipasang disini, tapi klo menurut momod salah tempat ya pindahin aja :em4700:

    ----

    How the way people code "Hello World" varies depending on their age and job:


    High School/Jr.High
    Code:
    
     10 PRINT "HELLO WORLD"
     20 END
    
    First year in College

    Code:
     program Hello(input, output)
     begin
     writeln('Hello World')
     end.
    
    Senior year in College

    Code:
     (defun hello
     (print
     (cons 'Hello (list 'World))))

    New professional

    Code:
    #include <stdio.h>
     
     void main(void)
     {
      char *message[] = {"Hello ", "World"};
      int i;
      for(i = 0; i < 2; ++i)
      printf("%s", message);
      printf("\n");
     }



    Seasoned professional

    Code:
     #include <iostream.h>
     #include <string.h>
     class string
     {
      private:
       int size;
       char *ptr;
      public:
       string() : size(0), ptr(new char('\0')) {}
       string(const string &s) : size(s.size)
       {
         ptr = new char[size + 1];
         strcpy(ptr, s.ptr);
       }
       ~string()
       {
         delete [] ptr;
       }
       friend ostream &operator <<(ostream &, const string &);
       string &operator=(const char *);
     };
    								     
     ostream &operator<<(ostream &stream, const string &s)
     {
       return(stream << s.ptr);
     }
     string &string::operator=(const char *chrs)
     {
       if (this != &chrs)
       {
         delete [] ptr;
         size = strlen(chrs);
         ptr = new char[size + 1];
         strcpy(ptr, chrs);
       }
       return(*this);
     }
     int main()
     {
       string str;
       str = "Hello World";
       cout << str << endl;
       return(0);
     }

    System Administrator

    Code:
     #include <stdio.h>
     #include <stdlib.h>
     main()
     {
      char *tmp;
      int i=0;
      /* on y va bourin */
      tmp=(char *)malloc(1024*sizeof(char));
      while (tmp="Hello Wolrd"[i++]);
      /* Ooopps y'a une infusion ! */
      i=(int)tmp[8];
      tmp[8]=tmp[9];
      tmp[9]=(char)i;
      printf("%s\n",tmp);
     }


    Apprentice Hacker

    Code:
     #!/usr/local/bin/perl
     $msg="Hello, world.\n";
     if ($#ARGV >= 0) {
         while(defined($arg=shift(@ARGV))) {
             $outfilename = $arg;
             open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";
             print (FILE $msg);
             close(FILE) || die "Can't close $arg: $!\n";
         }
     } else {
         print ($msg);
     }
     1;
    Experienced Hacker

    Code:
     #include <stdio.h>
     #include <string.h>
     #define S "Hello, World\n"
     main(){exit(printf(S) == strlen(S) ? 0 : 1);}

    Seasoned Hacker

    Code:
     % cc -o a.out ~/src/misc/hw/hw.c
     % a.out
     Hello, world.

    Guru Hacker

    Code:
     % cat
     Hello, world.
    New Manager (do you remember?)

    Code:
     10 PRINT "HELLO WORLD"
     20 END

    Middle Manager

    Code:
     mail -s "Hello, world." bob@b12
     Bob, could you please write me a program that prints "Hello, world."?
     I need it by tomorrow.
     ^D

    Senior Manager

    Code:
     % zmail jim
     I need a "Hello, world." program by this afternoon.
    Chief Executive

    Code:
     % letter
     letter: Command not found.
     % mail
     To: ^X ^F ^C
     % help mail
     help: Command not found.
     % damn!
     !: Event unrecognized
     % logout
    Research Scientist

    Code:
            PROGRAM HELLO
    	PRINT *, 'Hello World'
    	END
    Older research Scientist

    Code:
    	WRITE (6, 100)
        100 FORMAT (1H ,11HHELLO WORLD)
    	CALL EXIT
    	END
    :haha: :haha: :haha: :haha: :haha:
    :haha: :haha: :haha: :haha: :haha:

    euh... what? didn't get the joke?
    aw geez.... re-read from the top to bottom :onion-11:
     
  2. Ramasinta Tukang Iklan

    Silahkan upgrade akun anda menjadi VIP atau Gatot Kaca untuk menghilangkan tulisan dan iklan di bawah ini. Satu klik iklan dari anda, sangatlah berarti bagi forum tercinta ini.







    Promotional Content
  3. Offline

    xaea Lurking Around Most Valuable Users

    Joined:
    May 17, 2008
    Messages:
    1,519
    Trophy Points:
    211
    Ratings:
    +14,814 / -0
    nyang fortran gua belum pernah nyobain..
     
  4. Offline

    usus12jari Lurking Around Banned User

    Joined:
    Jul 27, 2008
    Messages:
    1,295
    Trophy Points:
    0
    Ratings:
    +7,699 / -0
    @xaea
    fortran? yang research scientist?
    sama belum pernah nyoba :lol:

    yang system administrator, para manager, chief executive plus seasoned hacker geblek bukan main :onion-11:
     
    Last edited: Apr 16, 2009
  5. Offline

    de_unlimited Lurking Around Most Valuable Users

    Joined:
    Nov 1, 2007
    Messages:
    619
    Trophy Points:
    206
    Ratings:
    +8,537 / -0
    sedikit bingung awalnya... tapi pas dah sampai bagian manager baru ngarti.... maklum orang awam
     
  6. Offline

    marukakashi Lurking Around Most Valuable Users

    Joined:
    Nov 2, 2008
    Messages:
    1,196
    Trophy Points:
    161
    Ratings:
    +2,540 / -1
    waduh.... saya kira serius :confused:

    ternyata... :haha:

    taunya hello world saya cuman ini :D

    Code:
    BlankClip()
    Subtitle("Hello, world!")
     
  7. Offline

    mr_ark Superstar Super Moderator

    Joined:
    Jan 14, 2009
    Messages:
    22,234
    Trophy Points:
    237
    Gender:
    Male
    Ratings:
    +66,708 / -11
    Versi gw :hihi:

    Bahasa C
    Code:
    /* Hello World Ver.1.1 by Mr.Ark 
        Language = C
    */
    
    #include <stdio.h>
    int main(){
         puts("Hello World");
    
         return 0;
    }
    
    

    HTML
    Code:
    <!--Hello World--><HTML><BODY>Hello World!</BODY></HTML>
    

    Tapi gw paling demen ama versi manager. makin tinggi jabatan managernya, makin males bikin program, malah nyuruh orang bikinin lewat e-mail :haha:
     
    Last edited: Apr 16, 2009
  8. Offline

    usus12jari Lurking Around Banned User

    Joined:
    Jul 27, 2008
    Messages:
    1,295
    Trophy Points:
    0
    Ratings:
    +7,699 / -0
    :onion-102:
    halah... iya... iya....
    yakinlah kalian pada jago2 coding nya
    tapi maksud thread ini kan.... joke :swt:
    klo mau post code, setidaknya yang ada joke nya :swt:
     
  9. Offline

    xaea Lurking Around Most Valuable Users

    Joined:
    May 17, 2008
    Messages:
    1,519
    Trophy Points:
    211
    Ratings:
    +14,814 / -0
    nyang sysadmin tu dodol, pake kebalikĀ² lg
     
  10. Offline

    Feischmaker Lurking Around Most Valuable Users

    Joined:
    Aug 28, 2008
    Messages:
    1,489
    Trophy Points:
    161
    Ratings:
    +2,021 / -0
    emang kan?? namanya juga manajer... dipikiran mereka, banyak hal yang lebih penting dari coding... lha wong data retrieval dengan SQL query aja males koq, mereka maunya tinggal klik2x :p
     
  11. Offline

    HoushiNoHikari Post Hunter Most Valuable Users

    Joined:
    Feb 26, 2009
    Messages:
    3,406
    Trophy Points:
    162
    Ratings:
    +4,949 / -0
    nga ngerti aku :swt:
     
  12. Offline

    ShadowHeart Post Hunter Most Valuable Users

    Joined:
    Nov 26, 2008
    Messages:
    2,683
    Trophy Points:
    211
    Ratings:
    +10,233 / -0
    Seram banget codingan dari seasoned professional :swt:
    ~Kapan gw bisa ngoding sampai serumit itu yah :hihi:
     
  13. Offline

    dorayakikun Beginner Banned User

    Joined:
    Oct 23, 2008
    Messages:
    288
    Trophy Points:
    0
    Ratings:
    +2,091 / -0
    :lol: yg guru hacker, middle & senior manager, & chief ex :lol: :lol:
     
    Last edited: Apr 16, 2009
  14. Offline

    usus12jari Lurking Around Banned User

    Joined:
    Jul 27, 2008
    Messages:
    1,295
    Trophy Points:
    0
    Ratings:
    +7,699 / -0
    @ShadowHeart
    lah... jangan mau jadi yang seasoned professional
    kandidat runner up paling ngaco dibawah chief executive :lol:
    padahal cuma mo nampilin teks hello world doang :lol:

    @dorayakikun
    yang chief ex. itu csh, kan?
    pas `damn!` seharusnya gak dianggap event, kan?
    biarin lah, toh cuma copas dari GNU Humor
     
  15. Offline

    astroboy Beginner Most Valuable Users

    Joined:
    Jan 16, 2009
    Messages:
    215
    Trophy Points:
    56
    Ratings:
    +13 / -0
    :lol:
    buat hello world aj ribetnya stengah matee....gim klo mo buat website ky IDWS
    :lol:
     
  16. Offline

    Recs Post Hunter Veteran

    Joined:
    Aug 4, 2008
    Messages:
    4,444
    Trophy Points:
    251
    Ratings:
    +7,231 / -0
    versi gw:
    Code:
    open 'notepad'
    type 'hello world'
    save.
    :ngacir:
     
  17. Offline

    taishou Post Hunter Most Valuable Users

    Joined:
    Apr 18, 2009
    Messages:
    2,949
    Trophy Points:
    227
    Gender:
    Male
    Ratings:
    +33,922 / -0
    gw baru masuk kul dah dkasih yg new profesional :D:D
     
Thread Status:
Not open for further replies.

Share This Page

About Forum IDWS

IDWS, dari kami yang terbaik-untuk kamu-kamu (the best from us to you) yang lebih dikenal dengan IDWS adalah sebuah forum komunitas lokal yang berdiri sejak 15 April 2007. Di bangun sebagai sarana mediasi dengan rekan-rekan pengguna IDWS dan memberikan terbaik untuk para penduduk internet Indonesia menyajikan berbagai macam topik diskusi.