Thread: Using computer programming to simulate your world.

  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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    You need to get out more.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    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%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

  5. #5
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    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, 01: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, 01:16 AM
  5. Computer engineering - programming.
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 07-15-2002, 02:37 PM