Thinking in software and code poetry - Page 1
Forum section: electronics / general

author: paulca
author_rank: Super Contributor
timestamp: January 28, 2018, 06:53:32 pm
content: I've been able to do this from a young age. I can think in code. I'm sure it's not uncommon for people who have studied programming for a long time.Being able to think in code leads you to rather bizarre code based descriptions of the human condition.Obviously we can plagiarise with:(2*b) || (!2*b)Consider:while( you->love(me) ){i->love(you);}It's fairly profound, but logically describes volatile love.Another example of what I call "Code poetry".int assessLife( int situation ) {if( situation == GOOD ) {return 0;} else {return -1;}return TRUE_HAPPINESS;}So... describe a human condition in code.... or describe you life right now in code.

author: paulca
author_rank: Super Contributor
timestamp: January 28, 2018, 07:03:02 pm
content: Genuine true love:while( true ) {you->love(me->love(you));}Non programmers:The profound thing is... there are no conditions on the love on either side and it's infinitely recursive.

author: tggzzz
author_rank: Super Contributor
timestamp: January 28, 2018, 07:14:03 pm
content: System.exit(0);

author: chris_leyson
author_rank: Super Contributor
timestamp: January 28, 2018, 08:11:43 pm
content: I'm a hardware guy, I can't think of anything in code, it's just a black hole at the moment...hmmm (void).

author: Macbeth
author_rank: Super Contributor
timestamp: January 28, 2018, 10:29:49 pm
content: From the 1980s with BBC BASIC. It amused me back then { hey we didn't have for(;; ) } and I admit to similar flourishes in working code running in blue chip financial institutions since...Code:>L.10 TheCowsComeHome = FALSE20 REPEAT30 PRINT "MOO! ";40 UNTIL TheCowsComeHome>

author: hugo
author_rank: Regular Contributor
timestamp: January 28, 2018, 11:20:26 pm
content: Unconditional love:Code:for (;;) {I -> love (you);}

author: John Coloccia
author_rank: Super Contributor
timestamp: January 30, 2018, 02:20:08 am
content: Code:public ExFiance {...};

author: Zbig
author_rank: Frequent Contributor
timestamp: January 30, 2018, 03:35:20 pm
content: I consider myself a fairly emotional, sometimes overly sensitive person but this is just flat out embarrasingly silly and cringeworthyPlease. Stop

author: Vtile
author_rank: Super Contributor
timestamp: January 30, 2018, 04:16:28 pm
content: HateLoveSWAPDROP

author: Mr. Scram
author_rank: Super Contributor
timestamp: January 30, 2018, 05:12:33 pm
content: Quote from: paulca on January 28, 2018, 07:03:02 pmTrue love is unconditional.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: January 30, 2018, 05:24:04 pm
content: 710 77345

author: IanMacdonald
author_rank: Frequent Contributor
timestamp: January 30, 2018, 05:29:45 pm
content: A coder thinking in a case sensitive language walks into the office, and:"Capitalgee-ood morning, CapitalJay-ohn"

author: paulca
author_rank: Super Contributor
timestamp: January 30, 2018, 10:12:22 pm
content: Quote from: Mr. Scram on January 30, 2018, 05:12:33 pmUnless you change the definition of true.

author: paulca
author_rank: Super Contributor
timestamp: February 05, 2018, 07:10:44 pm
content: Here's a slightly less mushy one:Code:int assessLife(int situation) {if(situation == GOOD){return 0;} else {return -1;}// True happiness}

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: February 05, 2018, 10:39:05 pm
content: Code:int lifetime = random(80)while lifetime-- dobegineat();fork();sleep();end;die();

author: PlainName
author_rank: Super Contributor
timestamp: February 06, 2018, 02:55:11 am
content: That kind of implies your lifetime is predetermined. Wouldn't it be more appropriate to have:Code:int lifetime = 0;while (lifetime++ < rnd(80)) do...I think that reflects the actualite more closely in that things crop up and snuff on an apparent whim (think car crashes or an overdose, etc).

author: Macbeth
author_rank: Super Contributor
timestamp: February 07, 2018, 02:18:36 am
content: Quote from: dunkemhigh on February 06, 2018, 02:55:11 amIt happens to be my nannas 94th birthday today. This hard coded rubbish is worse than the Y2K millennial bug stuff.

author: paulca
author_rank: Super Contributor
timestamp: February 07, 2018, 10:21:51 am
content: Code:while (lifetime++ < 70 + (rnd(80)-40) )Better? Although it does guarantee you will live to at least 30. This is the good thing about being a software engineer, you get to be God.

author: PlainName
author_rank: Super Contributor
timestamp: February 07, 2018, 02:56:55 pm
content: QuoteOh dear. She seems to be running an earlier iteration of the code:Code:while (lifetime++ != rnd(80)) doJust update her to the latest version and she'll be fixed.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: February 08, 2018, 05:03:37 pm
content: http://sourcecodepoetry.com

author: paulca
author_rank: Super Contributor
timestamp: February 08, 2018, 09:31:23 pm
content: Nice. Reminded me of this:Source:https://www.reddit.com/r/funny/comments/50m0bw/bohemian_rhapsody_in_c/

author: alexanderbrevig
author_rank: Frequent Contributor
timestamp: February 08, 2018, 10:38:02 pm
content: short road(long walk) { return wizer; }

author: @rt
author_rank: Super Contributor
timestamp: February 09, 2018, 02:14:49 am
content: void circumstances() {while(1){}return;}

author: engineer_in_shorts
author_rank: Regular Contributor
timestamp: February 09, 2018, 02:52:31 pm
content: I seem to keep going round this loop at the moment:Code:int HourOfDay = 7;FeelingStates currentFeeling = Grumpy;//Typical Daywhile (1) {if (HourOfDay>7 && HourOfDay<=11) currentFeeling = Grumpy;if (HourOfDay>11 && HourOfDay<=18) currentFeeling = Depressed;if (HourOfDay > 18 && HourOfDay < 23) {KeepDrinking();currentFeeling = Happy;}HourOfDay = GetHourOfDay();}

author: @rt
author_rank: Super Contributor
timestamp: February 09, 2018, 04:30:39 pm
content: Here, now you have more time in your dayCode:int HourOfDay = 7;FeelingStates currentFeeling = Grumpy;while (1) { //Typical Day// default goes hereif (HourOfDay > 7) {if (HourOfDay < 23) {currentFeeling = Happy; KeepDrinking();}if (HourOfDay <= 18) currentFeeling = Depressed;if (HourOfDay <= 11) currentFeeling = Grumpy;}HourOfDay = GetHourOfDay();}

author: engineer_in_shorts
author_rank: Regular Contributor
timestamp: February 09, 2018, 04:42:00 pm
content: Quote from: @rt on February 09, 2018, 04:30:39 pmDon't think a bottle of gin is the right tool to have on my desk at work. Although, if anyone asks i just nod towards the network share with 70+ copy and pasted project folders that say "v1_xx_xx" and shout "Thats not source code control, make it shtop".

author: @rt
author_rank: Super Contributor
timestamp: February 09, 2018, 06:15:22 pm
content: I’m up to 2 point something.

author: paulca
author_rank: Super Contributor
timestamp: February 09, 2018, 07:08:34 pm
content: To make use of my assessLife( int situation ) function I wrote this:Code:while( ! dead() ) {while ( assessLife( mySituation ) ) {party();takeThingsForGranted();wasteTime();}while ( ! assessLife( mySituation ) ) {makeChanges();mope();getDrunk();makeThingsWorse();}}

author: Macbeth
author_rank: Super Contributor
timestamp: February 10, 2018, 12:38:10 am
content: Quote from: NivagSwerdna on February 08, 2018, 05:03:37 pmThat is great but equally enrages me. Because I will be forced to use the variable names (globals too in my experience) given by a dyslexic bastard for the entire project.(Can't hurt xeirs feelings by correcting spellings checked into source control, besides it's dangerous to change production code! no manager would EVER approve!)accross, couse, RLY?

author: Cyberdragon
author_rank: Super Contributor
timestamp: February 10, 2018, 03:09:01 am
content: I think you guys are just trolling the C++ haters here.In that case...here's not C to make fun of C haters(don't try to make too much sense of it)Code:import hateimport mindimport threadfrom time import sleeptarget=thread.getthisone()codeused=target.codetype()try:if (isinstance(codeused, str)) and (codeused=="C++"):while not mind.satified():troll=hate.thisthread()print(troll)else:mind.issatisfied=Trueexit()except (TableFlippedError, ComputerSmashedError):print("Troll Eliminated")sleep(10)exit()P.S. I've always wondered what this means (Kudos points for knowing the reference)Quote

author: Circlotron
author_rank: Super Contributor
timestamp: February 10, 2018, 01:18:33 pm
content: Quote from: NivagSwerdna on January 30, 2018, 05:24:04 pm58008918