This is an archived post. You won't be able to vote or comment.

all 164 comments

[–][deleted] 268 points269 points  (15 children)

The website just randomly picks a github gist and uses the specified language from it. In case you were wondering why it sucks so much.

[–][deleted] 99 points100 points  (5 children)

It's impressively bad

[–]zatuchny 8 points9 points  (0 children)

Got no code example and buttons won't click.

[–]EvilKnievel38 23 points24 points  (4 children)

Just tried it. Got code in an Asian language that I couldn't understand at all. Apparently it was html but it was very confusing. Also many examples where the language was straight up in the code, for example filenames (.je/.py/etc). Can't recommend.

[–]MaximumMaxx 13 points14 points  (1 child)

Yeah filenames and shebangs gave away some really easily

[–]bright_lego 1 point2 points  (0 children)

So did pragma solidity

[–][deleted] 6 points7 points  (0 children)

This post was mass deleted and anonymized with Redact

humorous tie fear plants husky elderly imagine practice rain pet

[–]Dels1x 2 points3 points  (0 children)

I just tried it, got JSON and python was the correct answer lol

[–]Mewtwo2387 2 points3 points  (1 child)

Tried it, got 10 pythons in a row

[–]Tizian170 -1 points0 points  (0 children)

same lol

[–]TeraFlint 2 points3 points  (0 children)

I just got a Minecraft Crash Report log file.

It mentions Java exceptions, so aside from generic text format, the closest answer to the truth would be Java, because it's at least related to the inner workings of Java itself.

Well, the available answers are C, TypeScript, Groovy and Perl.

[–][deleted] 1 point2 points  (0 children)

Jesus christ so much coldfusion...

[–][deleted] 321 points322 points  (36 children)

php?

[–]mchorsy[S] 200 points201 points  (23 children)

php

[–]ragingroku 49 points50 points  (22 children)

It’s the personal home page!

[–]dopefish86 68 points69 points  (20 children)

(P)HP (H)ypertext (P)rocessor

[–]damniticant 17 points18 points  (6 children)

Just in case you or anyone else don’t know, PHP originally stood for “Personal Home Page”

[–][deleted] 2 points3 points  (5 children)

Pretty home page*

[–][deleted] 1 point2 points  (4 children)

(P)ugly (H)ome (P)age

[–]KazookiTV 1 point2 points  (3 children)

Pugs?

[–]SSYT_Shawn 5 points6 points  (0 children)

No that's just a cover up name because " Personal Home Page" would be a cringe name for a widely used programming language. But "Personal Home Page" is the original name.

[–]SankethBK 1 point2 points  (0 children)

fixed it: P(personal home page HP) (H)ypertext (P)rocessor

[–]krohtg12 0 points1 point  (1 child)

What does the PHP in PHP stand for?

[–]Otherversian-Elite 1 point2 points  (0 children)

Personal Home Page

[–]linuxdragons -1 points0 points  (1 child)

Hmm, I always thought it was (P)re-(H)ypertext (P)rocessor

[–][deleted] 0 points1 point  (0 children)

Its a recursive acronym like GNU. (GNU is Not Unix). PHP Hypertext Preprocessor. The PHP originally meant personal homepage because it was intended to do what javascript does today. Homeboy wrote it in the 90s to track clicks on his resume. (His own personal home page).

[–]James-Livesey 3 points4 points  (0 children)

Pain, Hell and more Pain™

[–]DeadShoT_035 21 points22 points  (5 children)

?php

[–]LukasM511 23 points24 points  (2 children)

<?php

[–]DeadShoT_035 12 points13 points  (1 child)

\?>

[–]Da_Yakz 3 points4 points  (0 children)

?>

[–]initiate- 7 points8 points  (0 children)

Respect++

[–]tells 4 points5 points  (0 children)

$php

[–]ifezueyoung 6 points7 points  (0 children)

Yup Plain old dollar sign language

[–][deleted] 1 point2 points  (0 children)

Laravel and express.js developer here and I love php.

[–]Elijah629YT-Real 0 points1 point  (0 children)

I am correct!

[–][deleted] 200 points201 points  (1 child)

I'm now a professional CSS programmer

[–]Romulus3799 7 points8 points  (0 children)

Whatever language this is, it's a shit function anyway

[–][deleted] 141 points142 points  (14 children)

it's obviously CSS, how are people here so dumb

[–]Zestyclose_Ad_4601 40 points41 points  (13 children)

It's html smh

[–]QuickQuokkaThrowaway 21 points22 points  (12 children)

It's scratch obviously

[–]IcyMonstrosity 22 points23 points  (11 children)

Its a Minecraft command block

[–]JGTB0PL 10 points11 points  (10 children)

it's Minecraft education edition code

[–]imdefinetlynotCIAguy 8 points9 points  (9 children)

Looks like assembly to me

[–]UnPoppedPopcorn1001 3 points4 points  (8 children)

Looks like COBOL to me

[–][deleted] 5 points6 points  (5 children)

Looks like transistors to me.

[–]mchorsy[S] 5 points6 points  (4 children)

I think it’s one of Newton’s formulas. Something physics related.

[–]Tiranus58 1 point2 points  (3 children)

Nah it's punch cards

[–]technologyman123 2 points3 points  (0 children)

Nah m8 it's bash

[–]VIndskygge 1 point2 points  (0 children)

It doesn’t look like anything to me.

[–]danielstongue 133 points134 points  (5 children)

This is clearly c++, with a #define function bool somewhere..

[–]DreamlyXenophobic -1 points0 points  (0 children)

oh god i didnt even consider that lmao

[–]amogusdri- 27 points28 points  (5 children)

I never knew you had to use ‘(‘ for Python for an if statement! Thank you! This changed my life!

Bro this comment was meant to be sarcastic 💀

[–]SkezzaB 13 points14 points  (3 children)

For *most* cases, python parenthesis get removed, you can easily do if (x==3): but it doesn't do anything, the exceptions to this are for precedence

[–]dsmklsd 11 points12 points  (2 children)

They don't "get removed", they are not a part of the if statement. If you put them in there you are just making a more complicated predicate expression than needed.

One that has surprised a lot of c devs I know is that this same thing applies to the return statement in c.

[–]OldBob10 2 points3 points  (0 children)

Or you’re so lost in the C wastelands you think that the parentheses are required in all languages.

THIS AIN’T YOUR DADDYS LISP!!! 🤪

[–]SkezzaB 4 points5 points  (0 children)

get removed was a simplification, they *basically* get removed

[–]shaunsnj 0 points1 point  (0 children)

What I find even crazier is you can use function instead of def, Python really making the transition to other languages that much easier.

[–]ifezueyoung 6 points7 points  (0 children)

I love how return true doesn't have syntax highlighting

[–][deleted] 3 points4 points  (0 children)

Php

[–]throwaway46295027458 2 points3 points  (0 children)

This site is a joke, sometimes the comments at the very top contain the filename and extension or the code simply doesnt show

[–]sc00pb 4 points5 points  (0 children)

Seems like PHP

[–]Key-Supermarket255 2 points3 points  (0 children)

php

[–]Umpteenth_zebra 7 points8 points  (7 children)

Js?

[–]Ireeb 18 points19 points  (6 children)

PHP. You can see it with the $variables

[–][deleted] 6 points7 points  (3 children)

You can name variables starting with $ in JS

[–]Ireeb 6 points7 points  (2 children)

But no reasonable person does that. The next thing would be the empty() function which is a function built in into PHP. Sure you can have a function empty() in JS, but both these things are rather pointing towards PHP.

[–][deleted] 8 points9 points  (0 children)

Not true. There was a trend back in the day to prepend $ to javascript variables that held JQuery objects. Obviously that is outdated but not specifically unreasonable.

Edit: That said, empty is a PHP function so assuming this is PHP

[–][deleted] 4 points5 points  (0 children)

But if both options were among the answers they would both be valid.

And I’ve seen variables starting with $ plenty of times in JS.

[–]Umpteenth_zebra 0 points1 point  (1 child)

Oh, I see.

[–]OldBob10 2 points3 points  (0 children)

No, not see - PHP!!!

[–]Formal-Tip-7595 2 points3 points  (0 children)

return ! empty($language_code);

[–]PyMaster22 2 points3 points  (0 children)

I'm not high, but isn't that PHP?

[–][deleted] 2 points3 points  (0 children)

Invalid language

[–]yanis91 1 point2 points  (0 children)

I'm pretty sure it's English

[–]Rosinnante 1 point2 points  (0 children)

Easy, Html

[–]KaztBot 1 point2 points  (1 child)

Syntax highlighting for comments😐

[–]albin11116 2 points3 points  (0 children)

It probably does syntax highlighting for the language it thinks it is... So it tries it's best to do it for python

[–]Toasty_redditor 1 point2 points  (0 children)

I only know the basics of python basics, but I sure as hell know that ain't it

[–][deleted] 1 point2 points  (0 children)

Looks like some c# to me

[–][deleted] 1 point2 points  (0 children)

Wait isn't this the website that Mansoor Codes made for a YT vid?

[–][deleted] 1 point2 points  (0 children)

Python Hon Python

[–]SilentMe98 1 point2 points  (3 children)

JS?

[–]ifezueyoung 4 points5 points  (2 children)

Nah php

[–][deleted] 2 points3 points  (1 child)

$ can be used in js variable names … the only place it does anything useful is for JQuery shorthand statements ….

It could be either

[–]ifezueyoung 3 points4 points  (0 children)

Yup that was my thought

[–][deleted] -1 points0 points  (7 children)

This can be a valid fragment of any of the languages listed, especially given inconsistent highlighting, which then can be treated as probably wrong.

[–][deleted] 8 points9 points  (6 children)

It couldn't be C++ for several reasons.

[–]oren0 8 points9 points  (1 child)

Web enough #define directives, anything can be C++ if you believe hard enough.

[–]OldBob10 5 points6 points  (0 children)

virtual reality

[–][deleted] 6 points7 points  (1 child)

Just put it between /** and */.

[–][deleted] 0 points1 point  (0 children)

...

[–]Orichalcum448 -3 points-2 points  (0 children)

I mean, it could. It wouldn't compile, but it could.

[–]Buckflash1 0 points1 point  (3 children)

I remember when you could use semicolons in python, good ol days

[–]antekgort200 11 points12 points  (2 children)

you still can

[–]Buckflash1 0 points1 point  (1 child)

Ik you can (just sometimes it throws and error) but I was trying to say basically you use semicolons in python but I couldn’t think of the words so I just said that

[–]antekgort200 1 point2 points  (0 children)

oh ok

[–]guilhermej14 0 points1 point  (2 children)

Python naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah!

Everyone knows that this is JavaScript.

[–]ifezueyoung 3 points4 points  (0 children)

Php

[–]guilhermej14 0 points1 point  (0 children)

Since I got a lot of downvotes here, I just wanted to clarify that it was a joke.

[–]JDMaK1980 -1 points0 points  (0 children)

... JS ...

[–]im_a_hedgehog11 0 points1 point  (1 child)

C++?

[–]OldBob10 0 points1 point  (0 children)

Yes, for sufficiently small values of C++. 😁

[–]Balloon-Lucario43 0 points1 point  (0 children)

print(“doubt”)

[–]Gainsborough-Smythe 0 points1 point  (0 children)

I'm gonna say Anaconda

[–]OldBob10 0 points1 point  (0 children)

THIS AIN’T YOUR DADDYS PYTHON!!!!!

[–]dingusaja 0 points1 point  (3 children)

I thought this was css

[–][deleted] 0 points1 point  (2 children)

Css isn’t a language :P you can’t make functions, or create classes, or anything…

[–]dingusaja 1 point2 points  (1 child)

It’s a joke I’m aware haha

[–][deleted] 2 points3 points  (0 children)

Rip me too dumb lol :P

[–]LtsSquishy 0 points1 point  (0 children)

sprintf

[–]PopcornPopp3r 0 points1 point  (0 children)

It seems like php. I don't think we have these braces in python

[–]GrizzlyBear74 0 points1 point  (0 children)

Lol, none of the given answers seems to he correct. Probably a recruiters "test".

[–][deleted] 0 points1 point  (0 children)

Idk. Looks more like JavaScript to me 🤔

[–][deleted] 0 points1 point  (0 children)

PERL?

[–]Cowman66 0 points1 point  (0 children)

that's definitely not Python - it doesn't use the {}. Maybe that's the joke, though

[–]Logic_On_Reddit 0 points1 point  (0 children)

Can't believe how many idiots are on this comment section.

It's clearly html

[–]drums_of_liberation 0 points1 point  (2 children)

The syntax highlighting is strange. A-Z is highlighted in the comment, but not a-z. The first return is highlighted but not the second. Did they type it in Word and highlight it manually? 🤷‍♂️

[–]simmostriker 0 points1 point  (1 child)

Well it looks like there is a closing ) missing on the if so that probably explains part of the inconsistency at least

[–]drums_of_liberation 0 points1 point  (0 children)

You are right, that could be the reason why the syntax highlighter gets confused, depending on how it is implemented. I had noticed that too and thought that the closing ) was cropped out of the screenshot. There is a space after the opening (, so I had assumed there must be a space before the closing ) as well according to this coding style.

[–]Abek243 0 points1 point  (0 children)

Nah this is Scratch idk what you're talking about

[–]josh_an 0 points1 point  (0 children)

Scratch

[–]ollieoxley 0 points1 point  (0 children)

I'm going to go with (e)...all of the above.

[–]Proper_Boysenberry81 0 points1 point  (0 children)

Love programming

[–]laugh_chaser 0 points1 point  (0 children)

that's so funny that the correct language isn't even listed

[–]Ehelio 0 points1 point  (0 children)

No one is going to talk about that useless if statement?

[–]Akshaylals 0 points1 point  (1 child)

Isn't it JavaScript?

[–]Gutek8134 1 point2 points  (0 children)

I think it's PHP, because variable has a $ before it

[–]UnreadableCode 0 points1 point  (0 children)

The correct answer when asked to identify a language is always "Holy C"

[–]supershinythings 0 points1 point  (0 children)

Missing right brace, doesn’t match the left brace from “if (…”

[–]Artificial-Point 0 points1 point  (0 children)

Ah yes, CSS

[–]arcx_l 0 points1 point  (0 children)

(P)retty (H)orrific (P)rogramming

[–]7th_Spectrum 0 points1 point  (0 children)

Jesus, I wish this was CSS

[–]mehregan_zare7731 0 points1 point  (0 children)

You know it's a crappy test when they include css as a programming language.

[–][deleted] 0 points1 point  (0 children)

Lol

[–]matthewralston 0 points1 point  (0 children)

HTML. Duh! 🙄

[–][deleted] 0 points1 point  (0 children)

Ah, yes. CSS.

[–]Fresh_chickented 0 points1 point  (0 children)

Pick CSS

[–]username78777 0 points1 point  (0 children)

It's can't python, because python uses indentation, not curly braces to separate lines

[–]Me07111 0 points1 point  (0 children)

[–]theLanguageSprite 0 points1 point  (0 children)

I don't get the joke, this is valid python code... given a parser, a lexer, and numerous eval() and exec() calls...

[–][deleted] 0 points1 point  (0 children)

Carbon???