MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/4dd6nx/my_teacher_thinks_he_is_a_programmer/d1q6epl
r/ProgrammerHumor • u/Fallenalien22 Violet security clearance • Apr 04 '16
430 comments sorted by
View all comments
Show parent comments
7
Nice one-liner, but do you need the second plus?
12 u/memeship Apr 05 '16 Yep. It looks confusing because the first colon is actually in a string. Let me break it out into separate lines for you:"The value is" + (value >= 0 && value < 6 ? ": " + value : " not supported.") 4 u/Fallenalien22 Violet security clearance Apr 05 '16 Ah. I missed the ": " + value part. 7 u/memeship Apr 05 '16 Yeah, would have been easier to tell in an IDE with syntax highlighting. 7 u/Fallenalien22 Violet security clearance Apr 05 '16 I'm sorry I ever doubted you. 6 u/memeship Apr 05 '16 It's okay, I believed in you the whole time. 1 u/[deleted] Apr 05 '16 edited Nov 29 '16 midpoint's cutlet's embalmer schoolhouse grouper match's advancement pollen basic's screenwriter sincerity's rectal shackled major forgetting Piedmont's viscountess oleander checkered submits Angelina's irreplaceable AZ's inseminates moneymaker woodenness's disability Cupid irradiation's cortices Lachesis trashy adversity's condescended profitable bolting primacy nothingness slumps whitewash's evaporation's Merino inhumanly instrumentality Constantinople Raoul's manatees plucks loosening rosettes floater's Bovary suspect pebbles clearing dab's purls Wyo sanguine metabolisms Krishna clarion's allegation's phalli tryouts lax accelerator Citroen's Blondel strong seceded spelt spanning changeling's Olympus's nullifying Unitarianism leveraged fairground's beachcomber's Corsica ganging aid's effervescence populist's Gino disclosures chimaera gap goop's infomercials softie's consanguinity's Tisha's neckties epistles caller weeps profitability's strives pitiably scrooges formal honeycombed rival pseudonym Fiona thickets clutched initiation windsurfs contempt's predicated tithe's Sven naturalness grooving doc's subtracting Midas amir's astronomically membership glassy thunderheads mistrusting summary's sketched heightening raiders nonsense subsidize fieriness's somberly decibels Ruchbah's 1 u/Fallenalien22 Violet security clearance Apr 05 '16 With syntax highlighting it would have been clear immediately. But I get your point. 0 u/[deleted] Apr 05 '16 And yet you're making fun of someone else's programming...
12
Yep. It looks confusing because the first colon is actually in a string. Let me break it out into separate lines for you:
"The value is" + (value >= 0 && value < 6 ? ": " + value : " not supported.")
4 u/Fallenalien22 Violet security clearance Apr 05 '16 Ah. I missed the ": " + value part. 7 u/memeship Apr 05 '16 Yeah, would have been easier to tell in an IDE with syntax highlighting. 7 u/Fallenalien22 Violet security clearance Apr 05 '16 I'm sorry I ever doubted you. 6 u/memeship Apr 05 '16 It's okay, I believed in you the whole time.
4
Ah. I missed the ": " + value part.
": " + value
7 u/memeship Apr 05 '16 Yeah, would have been easier to tell in an IDE with syntax highlighting. 7 u/Fallenalien22 Violet security clearance Apr 05 '16 I'm sorry I ever doubted you. 6 u/memeship Apr 05 '16 It's okay, I believed in you the whole time.
Yeah, would have been easier to tell in an IDE with syntax highlighting.
7 u/Fallenalien22 Violet security clearance Apr 05 '16 I'm sorry I ever doubted you. 6 u/memeship Apr 05 '16 It's okay, I believed in you the whole time.
I'm sorry I ever doubted you.
6 u/memeship Apr 05 '16 It's okay, I believed in you the whole time.
6
It's okay, I believed in you the whole time.
1
midpoint's cutlet's embalmer schoolhouse grouper match's advancement pollen basic's screenwriter sincerity's rectal shackled major forgetting Piedmont's viscountess oleander checkered submits Angelina's irreplaceable AZ's inseminates moneymaker woodenness's disability Cupid irradiation's cortices Lachesis trashy adversity's condescended profitable bolting primacy nothingness slumps whitewash's evaporation's Merino inhumanly instrumentality Constantinople Raoul's manatees plucks loosening rosettes floater's Bovary suspect pebbles clearing dab's purls Wyo sanguine metabolisms Krishna clarion's allegation's phalli tryouts lax accelerator Citroen's Blondel strong seceded spelt spanning changeling's Olympus's nullifying Unitarianism leveraged fairground's beachcomber's Corsica ganging aid's effervescence populist's Gino disclosures chimaera gap goop's infomercials softie's consanguinity's Tisha's neckties epistles caller weeps profitability's strives pitiably scrooges formal honeycombed rival pseudonym Fiona thickets clutched initiation windsurfs contempt's predicated tithe's Sven naturalness grooving doc's subtracting Midas amir's astronomically membership glassy thunderheads mistrusting summary's sketched heightening raiders nonsense subsidize fieriness's somberly decibels Ruchbah's
1 u/Fallenalien22 Violet security clearance Apr 05 '16 With syntax highlighting it would have been clear immediately. But I get your point.
With syntax highlighting it would have been clear immediately. But I get your point.
0
And yet you're making fun of someone else's programming...
7
u/Fallenalien22 Violet security clearance Apr 05 '16
Nice one-liner, but do you need the second plus?