Geek Jokes

TOPIC CLOSED
TOPIC CLOSED
Author
Discussion

Escapegoat

5,135 posts

136 months

Thursday 2nd November 2017
quotequote all
Must be a repost, and I can't do due diligence pedantry on the C, but I hadn't seen this before and it's worth sharing:


Clockwork Cupcake

74,624 posts

273 months

Thursday 2nd November 2017
quotequote all
Escapegoat said:
Must be a repost, and I can't do due diligence pedantry on the C, but I hadn't seen this before and it's worth sharing:
It's not C. Looks like Java to me.

jammy-git

29,778 posts

213 months

Thursday 2nd November 2017
quotequote all
JavaScript.

kambites

67,602 posts

222 months

Thursday 2nd November 2017
quotequote all
yes Whatever it is, it's this new-fangled "object oriented" rubbish, so not C.

SystemParanoia

14,343 posts

199 months

Thursday 2nd November 2017
quotequote all
haha like it biggrin

Einion Yrth

19,575 posts

245 months

Thursday 2nd November 2017
quotequote all
Most likely C# although most of the newer C derived dialects look pretty similar.

Clockwork Cupcake

74,624 posts

273 months

Thursday 2nd November 2017
quotequote all
kambites said:
yes Whatever it is, it's this new-fangled "object oriented" rubbish, so not C.
I take exception to that!

wink

Einion Yrth

19,575 posts

245 months

Thursday 2nd November 2017
quotequote all
On closer inspection, it doesn't quite work, the break in the switch statement is an escape from #region reality, and must occur any way the wind blows.

Clockwork Cupcake

74,624 posts

273 months

Thursday 2nd November 2017
quotequote all
Einion Yrth said:
On closer inspection, it doesn't quite work, the break in the switch statement is an escape from #region reality, and must occur any way the wind blows.
My understanding of the #region in languages like C# is that it is just an IDE directive to make it easier to collapse code.

Certainly in C++ that break statement in the switch statement would just exit the switch statement, not the while loop.

So that code would just loop infinitely, once an exception had been caught.

Einion Yrth

19,575 posts

245 months

Thursday 2nd November 2017
quotequote all
Clockwork Cupcake said:
Einion Yrth said:
On closer inspection, it doesn't quite work, the break in the switch statement is an escape from #region reality, and must occur any way the wind blows.
My understanding of the #region in languages like C# is that it is just an IDE directive to make it easier to collapse code.

Certainly in C++ that break statement in the switch statement would just exit the switch statement, not the while loop.

So that code would just loop infinitely, once an exception had been caught.
Fair play, you're right - lazy parsing on my part - must be tired.

SystemParanoia

14,343 posts

199 months

Sunday 5th November 2017
quotequote all

GrumpyTwig

3,354 posts

158 months

Sunday 5th November 2017
quotequote all
SystemParanoia said:
<an image>]
There's some tragic and painful irony in that image given my experience of both, I've certainly ended up in some rabbit holes with Linux. Probably on a weekly basis too, though my recent favourite was trying to work out why all the NIC's on a server had swapped places smile

Edited by GrumpyTwig on Sunday 5th November 20:55

durbster

10,288 posts

223 months

Sunday 5th November 2017
quotequote all
kambites said:
yes Whatever it is, it's this new-fangled "object oriented" rubbish, so not C.
shoot

let thems = new FightingWords();

(and it's not Javascript)

SystemParanoia

14,343 posts

199 months

Sunday 5th November 2017
quotequote all
durbster said:
kambites said:
yes Whatever it is, it's this new-fangled "object oriented" rubbish, so not C.
shoot

let thems = new FightingWords();

(and it's not Javascript)
from round1 import fight

Clockwork Cupcake

74,624 posts

273 months

Sunday 5th November 2017
quotequote all
let? LET?

I see we have a BASIC programmer amongst us. wink

durbster

10,288 posts

223 months

Monday 6th November 2017
quotequote all
Clockwork Cupcake said:
let? LET?

I see we have a BASIC programmer amongst us. wink
nono

It was Javascript ES6 actually.

Clockwork Cupcake

74,624 posts

273 months

Monday 6th November 2017
quotequote all
durbster said:
nono

It was Javascript ES6 actually.
Fair enough; it's not something I program in. I was just surprised to see "let" as it is a keyword I always associate with BASIC when growing up. smile

durbster

10,288 posts

223 months

Monday 6th November 2017
quotequote all
Clockwork Cupcake said:
durbster said:
nono

It was Javascript ES6 actually.
Fair enough; it's not something I program in. I was just surprised to see "let" as it is a keyword I always associate with BASIC when growing up. smile
I'm not sure I like it. It makes each declaration sound like you're about to say something profound.

let bygones = bygones.

MartG

20,696 posts

205 months

Tuesday 7th November 2017
quotequote all

kambites

67,602 posts

222 months

Tuesday 7th November 2017
quotequote all
durbster said:
I'm not sure I like it. It makes each declaration sound like you're about to say something profound.

let bygones = bygones.
Better than Perl. Putting "my" in front of all your variables sounds so selfish...
TOPIC CLOSED
TOPIC CLOSED