Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,261 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,164 people online right now. Registration is fast and FREE... Join Now!




Rube Goldberg Programming

 
Reply to this topicStart new topic

Rube Goldberg Programming

yanom
post 31 Aug, 2008 - 10:20 AM
Post #1


New D.I.C Head

*
Joined: 5 Apr, 2008
Posts: 46


My Contributions


the programming style based on Rube Goldberg's machines
CODE
class var():
    def __init__(self):
        self.name = "hello world!"
        self.printtimes = 1
def printr(inp):
    while inp.printtimes>0:
        print inp.name
        inp.printtimes = inp.printtimes-1
start = var()
def run():
    printr(start)
run()
User is offlineProfile CardPM

Go to the top of the page

Whizzy
post 31 Aug, 2008 - 10:25 AM
Post #2


Unregistered




Cool. Now place it in the proper forum, and we're all set. This is the lounge bro.

Go to the top of the page

gabehabe
post 31 Aug, 2008 - 10:53 AM
Post #3


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


1) Why is this in the lounge?
2) Why are you telling us this?
3) Where does this belong?
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 31 Aug, 2008 - 10:56 AM
Post #4


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Please post your programming questions in the proper forum, in this case the Perl & Python forum. Moved to Perl & Python smile.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 11:19PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month