Jump to content
Banner by ~ Ice Princess Silky

Weird programmer things you've found?


Kaneki

Recommended Posts

Hello @Cloggedone

Taking into account that this topic does not apply either to a raw app/game/dev project, specifically useful response nor a pertaining inquiry, it shall be moved to forum lounge. I believe its humorous nature will be fitting of that section.

Have a lovely day.

Link to comment
Share on other sites

>>> import sys
>>> import ctypes
>>> pyint_p = ctypes.POINTER(ctypes.c_byte*sys.getsizeof(5))
>>> five = ctypes.cast(id(5), pyint_p)
>>> five.contents[five.contents[:].index(5)] = 4

>>> 5 is 4
True

Have to love python... Oh, and also for the coders who like Seinfeld and tolerate SOAP:

Y7z5c5H.gif

Edited by Celtore
Failed at adding gif
Link to comment
Share on other sites

CS major here. Pff, online? How about from actual studies as well?

1. Name for a C++ variable as being ________________ (yes, underscores) from an assignment.

2. Technically not programming languages, but HTML/web design plus The Oatmeal. Look it up. (I'm away from home so I can't provide links.)

3. Magic the Gathering is Turing Complete. Look it up.

4. You can create a Venn diagram showing the relationship between music note names, letters of the alphabet, academic grades, and programming language names. Examples: C++, C, C#, F#, R, etc. Yes, there's also C--.

5. There's a slew of esoteric programming languages out there. My personal favorites (whose names I can remwmber) include FiM++, Whitespace, and Brainfuck (or B****fuck, for those who don't like profanity).

6. Programming languages as various things, such as weapons (Assembly is a knife with a sniper scope), tools (C++ is an overloaded Swiss army knife), and even religions. Look it up.

7. 0!=1 is a programming and math pun.

I'll add more whenever I realise I forgot something.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Join the herd!

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...