Home General Discussion

Bolstering my nerd and cigar fiend cred, one lame program at a time.

JudoChinXJudoChinX Everyone, Registered Users Posts: 775
For some reason, I decided to write a program to smoke cigars for you! In all actuality, I was actually goofing with subroutines for those who care, but for those who don't, maybe you'll still appreciate it:

#!/usr/bin/perl print "Go ahead and list some cigars you have on hand and ready to smoke. Once done, hit ctrl+d on the keyboard. "; chomp(@humidor = ); for $cigar (@humidor) { &smoke($cigar); } sub smoke { print " MMMmmm... this @_ sure looks tasty! "; sleep 1; print "*snips the head; not too much, but not too little; that's a perfect draw!* "; sleep 1; print "*gently toasts the foot* "; sleep 1; print "*blows on the foot to ensure that it's lit evenly* "; sleep 1; print "*enjoys* "; }

Example input and output:

Go ahead and list some cigars you have on hand and ready to smoke. Once done, hit ctrl+d on the keyboard. Cohiba Padilla 5 Vegas Nub MMMmmm... this Cohiba sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this Padilla sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this 5 Vegas sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys* MMMmmm... this Nub sure looks tasty! *snips the head; not too much, but not too little; that's a perfect draw!* *gently toasts the foot* *blows on the foot to ensure that it's lit evenly* *enjoys*

Comments

  • james40james40 Everyone, Registered Users Posts: 3,450
    Haha, that's pretty cool dude. If you're really bored, can you make an inventory program with snmp oids that's compatible with cacti and runs on freebsd? I would love to make me some graphs and stuff. Kind of similar to wine tracker.
  • ShotgunJohnShotgunJohn Everyone, Registered Users Posts: 1,539
    Awesome, I have been thinking about creating an Cigar Inventory program for myself with c# and SQL Server, I just need to find time.
  • LasabarLasabar Everyone, Registered Users Posts: 4,457
    The "Geek" shall inherit the earth... Or it may seem like that because everyone else is just really confused
  • JudoChinXJudoChinX Everyone, Registered Users Posts: 775
    james40:
    Haha, that's pretty cool dude. If you're really bored, can you make an inventory program with snmp oids that's compatible with cacti and runs on freebsd? I would love to make me some graphs and stuff. Kind of similar to wine tracker.
    Haha. Someone (me) just got outgeeked. I'm just barely getting into programming, but this isn't a half bad project to shoot for once I get database support down.
  • JudoChinXJudoChinX Everyone, Registered Users Posts: 775
    ShotgunJohn:
    Awesome, I have been thinking about creating an Cigar Inventory program for myself with c# and SQL Server, I just need to find time.
    It's a nice feeling knowing that I'm not the only computer guy around here. We must unite under a common interest: cigars!
  • james40james40 Everyone, Registered Users Posts: 3,450
    JudoChinX:
    james40:
    Haha, that's pretty cool dude. If you're really bored, can you make an inventory program with snmp oids that's compatible with cacti and runs on freebsd? I would love to make me some graphs and stuff. Kind of similar to wine tracker.
    Haha. Someone (me) just got outgeeked. I'm just barely getting into programming, but this isn't a half bad project to shoot for once I get database support down.
    haha, hardly bro. I only talked about something, you actually wrote code. I'm in your geek shadow and it's cold man, so cold. :-)
  • ShotgunJohnShotgunJohn Everyone, Registered Users Posts: 1,539
    JudoChinX:
    ShotgunJohn:
    Awesome, I have been thinking about creating an Cigar Inventory program for myself with c# and SQL Server, I just need to find time.
    It's a nice feeling knowing that I'm not the only computer guy around here. We must unite under a common interest: cigars!
    +1
  • sightunseensightunseen Everyone, Registered Users Posts: 2,130
    Haha, not a computer programmer, but I appreciate the humor.
  • JonathanEJonathanE Everyone, Registered Users Posts: 401
    Seriously guys, I'm LMAO! Someone should introduce you to Excel! It's so much easier!

    I have to admit though, that's pretty impressive. I would never have thought of doing something like that!

    JDE

Sign In or Register to comment.