Like Tree18Likes
  • 4 Post By VirtualAce
  • 5 Post By grumpy
  • 5 Post By Salem
  • 4 Post By rags_to_riches

Using computer programming to simulate your world.

This is a discussion on Using computer programming to simulate your world. within the General Discussions forums, part of the Community Boards category; I call this poetic justice. Object oriented code is a great way to demonstrate the capabilities of any real object ...

  1. #1
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656

    Using computer programming to simulate your world.

    I call this poetic justice.

    Object oriented code is a great way to demonstrate the capabilities of any real object in the world, including the human being.

    I've always wanted to get a phD in computer science, so why not let that happen?
    Code:
    my $me = new Human('ATTGHHGGHTATTGGGTTATATHHHHHG');
    $me.gotoSchool.getPhD.understand.comprehend.printall;
    # the output would look something like this:
    # "went to class psy101 for 11 weeks @ 06/2012
    # went to class cs 260 for 11 weeks @ 06/2012
    # etc...
    # time now = 2016"
    Every human goal can be transformed into a codable alternative that can be shared/treated like the solution:
    Code:
    $me.comeUpWithGoal.accomplish.comprehend.understand.printall;
    # "Came up with a goal and it was executed {understood} {comprehended}"
    And if I wanted to get laid? Easy.
    Code:
    $me.goOutside.findFemale(age => '>=18').ask('Would you like to have sex?').try && $me.haveSex;
    Life is the palm of my hands, bwhahaha!

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    You need to get out more.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,337
    Quote Originally Posted by Kleid-0 View Post
    Life is the palm of my hands, bwhahaha!
    I suspect that is more true than you realise. Your approach to females suggests you will come to know Madam Palmer very well, if you haven't already.

    I agree with VirtualAce that you need to get out more.
    Right 98% of the time, and don't care about the other 3%.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,590
    Just be careful that it isn't a case of
    Code:
    try {
        sex();
    } catch {
        disease();
    }
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,651
    Code:
    my $me = new Human('ATTGHHGGHTATTGGGTTATATHHHHHG');
    Apparently you skipped your Biochem class too. There is no nucleotide in either DNA or RNA abbreviated as H. There's Adenine, Guanine, Cytosine, Thymine for DNA; RNA substitutes Uracil for Thymine.

    /pedantic Biochem degree holder

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The Art of Computer Programming
    By Kappie in forum C++ Programming
    Replies: 5
    Last Post: 02-27-2012, 12:54 PM
  2. Replies: 2
    Last Post: 09-08-2011, 09:22 AM
  3. Replies: 2
    Last Post: 08-05-2010, 09:06 AM
  4. Knuth's Art of Computer Programming
    By andyhunter in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 01-03-2005, 12:16 AM
  5. Computer engineering - programming.
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 07-15-2002, 02:37 PM

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