What The F#
whatthefsharp.com
external-link
A Collection of Surprising Behavior by Programming Language

A small collection of WTF code snippets sorted by language.

@Kacarott@aussie.zone
creator
link
fedilink
61M

Some of the examples seem to be more “unintuitive for newbies”, but there are still some good ones in there

Fonzie!
link
fedilink
117d

Yeah, just check the PHP section!

My favourite is

var_dump(true == 'bob') . PHP_EOL;   // bool(true)
var_dump('bob' == 0) . PHP_EOL;   // bool(true)
var_dump(true == 0) . PHP_EOL;   // bool(false)
Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 18 users / day
  • 117 users / week
  • 455 users / month
  • 2.2K users / 6 months
  • 1 subscriber
  • 1.69K Posts
  • 37.2K Comments
  • Modlog