Coffeehouse Thread

5 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

the best piece of code you ever seen?

Back to Forum: Coffeehouse
  • User profile image
    Ion Todirel

    #define best cool + good lookin' + smart + hard to understand

    i dont remember... i expect replies from softies too

  • User profile image
    PetKnep

    double hamburger;
    char broiled;
    long timetillunch;

  • User profile image
    W3bbo

    Ion Todirel wrote:
    #define best cool + good lookin' + smart + hard to understand

    i dont remember... i expect replies from softies too


    Anything that wins the annual IOCCC competitions.

  • User profile image
    dahat

    Console.WriteLine(new DateTime(2007, 6, 22).Subtract(DateTime.Now.Date).TotalDays);

    Which tells me 146 days left Smiley

  • User profile image
    Larry​Osterman

    Ion Todirel wrote:
    #define best cool + good lookin' + smart + hard to understand

    i dont remember... i expect replies from softies too


    NTFS.

    However, IMHO hard to understand is an automatic disqualification for "best".

    Good code is simple to understand. 

    I've seen LOTS of code that was hard to understand, it's way easier to write hart to understand code than it is to write easy to understand code.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.