Joke of the week

This is a discussion on Joke of the week within the A Brief History of Cprogramming.com forums, part of the Community Boards category; A fellow programmer (coworker) told me the other day, dead serious, "pretty much everyone is getting away from using pointers ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    7

    Joke of the week

    A fellow programmer (coworker) told me the other day, dead serious, "pretty much everyone is getting away from using pointers these days."



    Tubbs

  2. #2
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    i dont get it...

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    7
    What do you mean, you don't get it? How can you write anything of significance in C without pointers?

    Tubbs

  4. #4
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    reminds me of this one:
    One day I was in a public park, reading "C++ For Dummies" when someone came up and asked me what I was reading. I told him I was reading a book about C++. He responded, "Oh, HTML kicks C++'s @$$."
    Source: Computer Stupidities.

  5. #5
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    Now i gett that one...

  6. #6
    zsaniK Kinasz's Avatar
    Join Date
    Jan 2003
    Posts
    222
    I had an honours student ( IT ) from uni try and tell me once...

    "You dont need c any more, why work with pointers when you could just get a garbage collector to do all the work"

    He then went on to tell me why java is greatest language of them all and is replacing c.



    "Assumptions are the mother of all **** ups!"

  7. #7
    Registered User
    Join Date
    Jan 2004
    Posts
    7
    Well, they all have their place, I guess, but I've never read much programming literature of note that didn't mention things like "write all the high level stuff in [pick a language], leaving speed-critical items for C", or something similar.

    I'm pretty new to C myself, I've mainly programmed in non-compiled languages like Perl and JavaScript and Java and PL/SQL (Oracle).

    Let me tell you, C is a rude awakening, but the challenges are refreshing.

    At any rate, it was obvious very quickly that anything of significance in C would involve plenty of pointers

    Tubbs

  8. #8
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    I beat the Internet. The end guy is hard.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  9. #9
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    "You dont need c any more, why work with pointers when you could just get a garbage collector to do all the work"
    He then went on to tell me why java is greatest language of them all and is replacing c.
    LOL, you should tell that honours student that Java has pointers. They're just not explicit like in C, where you declare them with a *.

  10. #10
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Originally posted by tubbsd
    I'm pretty new to C myself, I've mainly programmed in non-compiled languages like Perl and JavaScript and Java and PL/SQL (Oracle).
    You're obviously new; Java (and I belive, like PHP, Perl) IS compiled.
    Do not make direct eye contact with me.

  11. #11
    Registered User
    Join Date
    Jan 2004
    Posts
    7
    PHP and Perl are strictly interpreted languages, never saved to binary or bytecode. Java is NOT what most would refer to as compiled, in the true sense, straight to machine code. It is "translated" to bytecode that is interpreted by a virtual machine.

    I'm not THAT new.

    Tubbs

  12. #12
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Actually, my friend, PHP IS compiled at run time by the Zend engine. I said I wasn't sure about Perl, and I remain that way. Java IS compiled, in the sense that you give it code, and it spits out some other form that is readable by an interpreter or the processor itself.
    Do not make direct eye contact with me.

  13. #13
    Registered User
    Join Date
    Jan 2004
    Posts
    7
    If we were to go by the definition of compile listed here (just the first one that popped up when I searched), I suppose we could say that anything that isn't written in direct machine language is compiled.

    Your definition of compiled simply differs from mine. I don't consider a language truly compiled unless it is translated to architecture-specific machine language and saved to a file saved on a non-volatile medium.

    Java is not translated to machine language, it's an intermediate language that is further interpreted at runtime. PHP and Perl are interpreted at runtime (cached in some cases) and saved in interpreted format in memory, not to disk (exceptions exist, but were not part of the original design).

    I don't think there's a right or wrong here, it's perspective. No harm, no foul.

    Tubbs

  14. #14
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    I agree, our perspective is different. I CAN see what you mean. However, PHP is compiled and stored in memory. Its compiled code runs on the SERVERs processor, so, by your definition, it is compiled. Once more, I don't know about Perl.
    Do not make direct eye contact with me.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Determining the Date of the [nth] [Day] in [Month]
    By Dave_Sinkula in forum C Programming
    Replies: 5
    Last Post: 05-25-2007, 05:12 PM
  2. structural fault any ideas
    By kaijuu in forum C Programming
    Replies: 17
    Last Post: 04-17-2007, 03:43 PM
  3. day of week
    By s_ny33 in forum C Programming
    Replies: 18
    Last Post: 11-02-2005, 11:56 AM
  4. Force end
    By Redattack34 in forum C++ Programming
    Replies: 9
    Last Post: 09-07-2005, 12:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21