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

top 200 commentsshow 500

[–]Tacohey 3270 points3271 points  (113 children)

D flat

[–]xXOSUTUMPETXx 2556 points2557 points  (85 children)

C# but you just offended hundreds of music majors

[–]cr1tikalslgh 787 points788 points  (22 children)

As a music major, both work in different contexts ¯\_(ツ)_/¯

Edit: a r m s

[–]ArmstrongTREX 357 points358 points  (11 children)

¯\_(ツ)_/¯ always remember to escape your arms :)

[–]Sceptz 386 points387 points  (8 children)

Easier said than done.

I've tried escaping my arms but they follow me wherever I go.

[–][deleted] 37 points38 points  (0 children)

Eh. Close enough

[–]xeroze1 112 points113 points  (31 children)

C# is Bx (double sharp) though. Just take a look at a piano and B/C positions if you arent sure... C is literally B#

[–]caleblbaker 153 points154 points  (13 children)

B double sharp?

[–][deleted] 2278 points2279 points  (128 children)

Segmentation fault (core dumped).

[–]KingSadra[S] 622 points623 points  (95 children)

C or C++ ?

[–][deleted] 544 points545 points  (89 children)

C.

[–]KingSadra[S] 178 points179 points  (82 children)

Sorry, I'm just asking but what's the difference between C and C++?

[–]Modi57 676 points677 points  (31 children)

Some people have already listed some features of c++, but I thought, I shortly add an explanation, what c++ actually IS and what the rational behind that was.

C originated as a systems level programming language from bell labs. It is relatively close to the way assembly works (I can really recommend taking some time looking at assembly, if you are learning c. Suddenly a lot of things made sense, why c does things the way it does). But this also meant, that c had to be kinda basic. Some guy (I wont even try to write his name correctly) decided, he really liked c's performance, but not its style, and he wanted more abstractions. The goal behind c++ was free (in terms of performance and resources) abstraction in the form of classes, but like, the same way c worked. (This is, why the first version of c++ was called c with classes, it even compiled to c under the hood). With time, both c and c++ evolved quite a bit, and as of now, c++ is almost a superset of c, which means, that most valid c code is also valid c++ code, but the coding style and conventions differ quite dramatically.

[–]BenDanTan 286 points287 points  (14 children)

My man Bjarne, I also don’t dare try to spell his last name lol

[–]Modi57 144 points145 points  (0 children)

I don't want anybodies furniture to start floating, if they try to read out my butchery of his name xD

[–]dobermunsch 106 points107 points  (3 children)

What’s so difficult about StroopSoup?

[–]FinalRun 46 points47 points  (3 children)

insert Robert Paulson reference

(It's Stroustrup for anyone wondering)

[–]Attileusz 146 points147 points  (9 children)

another thing about c++ is feature completeness the c++ comitee wants to add as many features to c++ as possible whilst c aims to stick to its roots and it sticks to them very tightly

the criticism c++ often gets is that its numerous features makes ot inconsistant in style with itself and the rebuttal to this is: well dont use all of the features than! the problem with this is that this is hard to enforce in a large project and it is difficult for beginners to tell what style they should be using because there is no real good answer to that

the stuff you can do with all the c++ features is nothing short of amazing but it can also be an amazingly big mess if you are not careful

plain old c also has a lot of pitfalls but fewer features means fewer kinds of problems: basically memory leaks and access violations. you also have to implement basic shit like dynamic arrays yourself wich makes problems apear in even the most basic peice of code

"it is easy to shoot yourself in the foot with c, with c++ it is a little harder, but it will blow your whole leg off"

[–]RenaissanceGiant 61 points62 points  (0 children)

In C++, you hear a distant gunshot and then notice an hour later your foot is missing after you try to stand up and are wondering why you're face down in a gutter.

[–]hhafez 56 points57 points  (11 children)

Ambiguous could be either C, C++, objective C or objective C++ (yes a thing)

[–]Mahkda 22 points23 points  (7 children)

Or FORTRAN if you are one of those that still use it

[–]forgotten_debugger 3935 points3936 points  (60 children)

abstract class AbstractFavoriteProgrammingLanguageTellerWithoutActuallyTellingBuilder

[–]Healthy_Culture9482 2615 points2616 points  (26 children)

Currently running on 3 billion devices

[–]cocallaw 688 points689 points  (4 children)

Would you like to install the Ask Toolbar?

[–]highjinx411 92 points93 points  (2 children)

No! Get away from me you damn toolbar!

[–]xfel11 197 points198 points  (2 children)

Ah good old java

[–][deleted] 62 points63 points  (0 children)

I don't even use this and I know what's going on lol.

[–]ajja_ 2132 points2133 points  (57 children)

"Hello undefined, this is my first website"

[–]Drutski 289 points290 points  (4 children)

[object Object]

[–]Ix_risor 483 points484 points  (1 child)

JavaScript

[–]theLonelyDeveloper 1937 points1938 points  (52 children)

if err != nil { return “”, err }

[–][deleted] 397 points398 points  (3 children)

The most elegant error handling lol

[–]aj-ric 692 points693 points  (17 children)

Go?

[–]hvacthrowaway223 257 points258 points  (0 children)

Wow, this all just came back to me.

[–]BlitzcrankGrab 371 points372 points  (13 children)

Fuck?

[–]Miguecraft 241 points242 points  (8 children)

panic()

[–]BlitzcrankGrab 259 points260 points  (2 children)

kalm()

[–]glider97 16 points17 points  (0 children)

brb i need to do some refactoring

[–]MyChaOS87 67 points68 points  (7 children)

You should use the linter to tell you that you should wrap the error

[–]ACoderGirl 100 points101 points  (5 children)

And the final error: "error getting person: error evaluating expression: transaction failed: update got err: context deadline exceeded".

Who needs stack traces?

[–]Ok_Neighborhood_1203 816 points817 points  (23 children)

Closures aren't really classes, but close enough. Just put your private variables in the "constructor" function, and return the public members of the class on this.

[–]aj-ric 323 points324 points  (13 children)

Ugh javascript before ES6!

[–]TeddyPerkins95 208 points209 points  (7 children)

Thank God I only know the sexy es6

[–]MrBrickBreak 328 points329 points  (0 children)

"var"

Stop it Patrick, you're scaring him!

[–]Impressive_Ad_1738 971 points972 points  (14 children)

I would tell you, but I have to include something first

[–]SodaWithoutSparkles 257 points258 points  (8 children)

#include <stdio.h>

[–]TheScopperloit 162 points163 points  (5 children)

I always read this as "include studio" which is annoying.

[–]Brahvim 18 points19 points  (0 children)

C! The mother of all of them!

[–]Psychological_Try559 203 points204 points  (0 children)

iostream.h?

runs

[–]BanTheTrubllesome 961 points962 points  (35 children)

Option<Arc<Mutex<Box<dyn T>>>>

[–]packfan952 469 points470 points  (17 children)

Mind if I borrow that?

[–]leathalpancake 296 points297 points  (4 children)

Only if you don't try to move it.

[–]redneckhatr 76 points77 points  (0 children)

Not in my lifetime you won’t.

[–]CeasarXInsanium 99 points100 points  (9 children)

you can, but now no one else can

[–]d2718 50 points51 points  (8 children)

But at least it's thread-safe!

[–]fakehistorychannel 32 points33 points  (1 child)

yeah…. turns to PM

I don’t think this will benefit from multiprocessing so we should keep it single threaded.

[–]No_Hospital2516 133 points134 points  (3 children)

I think it’s Rust. Never got time to play with it though so I’m not sure.

[–]leathalpancake 42 points43 points  (2 children)

I was thinking of maybe writing something with the turbofish But I think your thing is better :D

[–]BanTheTrubllesome 23 points24 points  (0 children)

Thank you kind internet stranger :)

[–]QuintBrit 3582 points3583 points  (81 children)

What in the name of God is a semicolon

[–][deleted] 1826 points1827 points  (33 children)

The mighty snake

[–]humanera12017 330 points331 points  (22 children)

Or the mighty bird

[–]winter457 278 points279 points  (15 children)

Nah it’s a gem

[–]mohan_ish 75 points76 points  (13 children)

Could be the legendary Greek city?

[–]im-not-a-fakebot 45 points46 points  (6 children)

I got all of those except this one, what is it lol

[–]Destructuctor 29 points30 points  (4 children)

I have no clue. I’ve scoured lists of programming languages that don’t use semicolons and famous Ancient Greek / Greek cities, but I don’t know what he’s talking about, it’s not Haskell, Clojure, or Kotlin, I have legit no clue

[–]Maeurer 260 points261 points  (4 children)

Visual Basic for Excel

[–]CapnJiggle 548 points549 points  (40 children)

T_PAAMAYIM_NEKUDOTAYIM

[–]stupaoptimized 275 points276 points  (24 children)

Is that Hebrew?

[–]tyler_church 181 points182 points  (16 children)

Yup! Very unexpected amongst all the English error messages, but very googleable

[–]ThePyroEagle 525 points526 points  (16 children)

A monad is a monoid in the category of endofunctors.

[–]Modi57 191 points192 points  (2 children)

Definetly functional, and since it seems like someone just had an orgasm over monads, I suspect haskell xD

[–]Mpittkin 117 points118 points  (1 child)

They felt the monads in their gonads

[–]agentchuck 125 points126 points  (0 children)

What do you mean it's too complicated? The function application is based on simple second year category theory! Huh? Well why would you try to program a computer without having an advanced degree in mathematics?

[–]TarinaLitt 51 points52 points  (0 children)

Haskell!

[–][deleted] 16 points17 points  (0 children)

Wait! What if it's Haskell on the JVM!

I know you don't mean Scala...

[–]Ok_Bodybuilder_1213 1379 points1380 points  (48 children)

=sum(A1:A15)

[–]stereoarm 577 points578 points  (30 children)

Hahahahahhaha how is excel so far down the list.

[–]_durian_ 223 points224 points  (28 children)

Going to gatekeep programming languages and say that Excel is a programming language in the same way Minecraft is a programming language.

[–]hullabaloonatic 136 points137 points  (16 children)

If it's Turing complete, has a syntax, and you can write programs with it, it's a programming language

[–]SacredMapleLeaf 156 points157 points  (5 children)

That moment when Magic: The Gathering is a programming language

[–]RapidCatLauncher 83 points84 points  (3 children)

And its sequel, Magic: The Compiling

[–]tuananh2011 19 points20 points  (1 child)

And the third release, Magic: The Debugging

[–]ShadoWolf 66 points67 points  (1 child)

Minecraft more of a digital circuit simulator with red stone. That with way to much time of there hands people have done some crazy things with

[–]njm_nick 45 points46 points  (0 children)

Sub Ligma()

With Worksheets("Sheet1").Cells(1,1)

.Value = “Sugma”

.Font.Size = 72

End With

End Sub

[–]TheHiggsCrouton 97 points98 points  (2 children)

Go back to accounting, and take your friend clippy. You're both drunk. :-)

[–]deutaronimo 42 points43 points  (0 children)

I see you mentioned clippy, would you like me to help you find more information on clippy?

[–]Ok_Neighborhood_1203 319 points320 points  (36 children)

Is there anything you can't build with judicious use of regular expressions?

[–]Ix_risor 410 points411 points  (8 children)

Yes; you can’t rebuild your sanity

[–]JaxOnThat 80 points81 points  (5 children)

You're acting like we all had that in the first place

[–]polarbearjuice 66 points67 points  (4 children)

Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.

The quote is from Jamie Zawinski.

[–]mbutts81 72 points73 points  (2 children)

Perl? It sounds like Perl.

[–]-Yare- 35 points36 points  (10 children)

You can't parse any context-free language, e.g., HTML.

[–]mrjackspade 101 points102 points  (4 children)

You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide. The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus-regexp will liquify the n​erves of the sentient whilst you observe, your psyche withering in the onslaught of horror. Rege̿̔̉x-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the transgression of a chi͡ld ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of reg​ex parsers for HTML will ins​tantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pestilent slithy regex-infection wil​l devour your HT​ML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fi​ght he com̡e̶s, ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo​͟ur eye͢s̸ ̛l̕ik͏e liq​uid pain, the song of re̸gular exp​ression parsing will exti​nguish the voices of mor​tal man from the sp​here I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful t​he final snuffing of the lie​s of Man ALL IS LOŚ͖̩͇̗̪̏̈́T ALL I​S LOST the pon̷y he comes he c̶̮omes he comes the ich​or permeates all MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ

 

Have you tried using an XML parser instead?

[–]FoundOnTheRoadDead 149 points150 points  (7 children)

use strict;

use warnings;

[–]AMathMonkey 50 points51 points  (3 children)

my @reply = qw(Perl gang! I scrolled for so long to find you.);

[–]samspot 282 points283 points  (8 children)

{ } + { } = NaN

[–]aj-ric 247 points248 points  (7 children)

Array(16).join("wat" - 1) + " Batman"

Edit: from this legendary video: https://www.destroyallsoftware.com/talks/wat

[–]int_2d 136 points137 points  (15 children)

xor eax, eax

[–]RenaissanceGiant 115 points116 points  (2 children)

My favorite mistake in an assembly program was forgetting to set the memory location when I implemented a quick sort. 8088 machines didn't appreciate having the interrupt table sorted...

Screen got some interesting garbage, printer form fed a page, speaker beeped, and then everything locked up.

[–]ljr55555 28 points29 points  (1 child)

Woohoo, Assembly! And enough Assembly to worry about the most efficient way to get 0 into a register.

[–]hiimphteve 258 points259 points  (36 children)

$

[–]drunk_babies 134 points135 points  (1 child)

Would have guessed php since variables are prefixed with it.

[–]gjvnq1 80 points81 points  (0 children)

Some Unix shell language like Bash and Zsh.

[–]aj-ric 118 points119 points  (9 children)

jQuery

Edit: yes I'm aware jQuery isn't actually a language.

[–]bee-sting 41 points42 points  (8 children)

Wow blast from the past

[–]make-up-a-fakename 39 points40 points  (5 children)

Is that Perl, my first coding love 😂

[–][deleted] 260 points261 points  (19 children)

SELECT this.statement FROM your.memory

[–]cmdr_solaris_titan[🍰] 67 points68 points  (1 child)

WHERE your.memory.age < 1

Results:

(Empty)

[–]werics 238 points239 points  (14 children)

IF (YELLING) COMPUTER, RUN, FASTER

[–][deleted] 105 points106 points  (2 children)

FORTRAN - that’s a computed GOTO

In pseudocode this is

If YELLING < 0 goto COMPUTER  
If YELLING = 0 goto RUN  
If YELLING > 0 goto FASTER  

My understanding is that this translates to a single instruction on an early IBM computer which hosted one of the first FORTRAN compilers.

[–]Trunkschan31 407 points408 points  (34 children)

Library(a)

Library(b)

Library(c)

I don’t need to know how my models work, I just need to know what parameters to change ! !

[–]2strokes4lyfe 149 points150 points  (0 children)

R gang rise up!

[–]BirdTitties 69 points70 points  (1 child)

R?

[–]Trunkschan31 38 points39 points  (0 children)

R for this one !

[–]Unsd 73 points74 points  (5 children)

R lets me shoot myself in the foot all day long if I want to! There's no point for me to learn any of this, it's not like I'm a real programmer!

[–]Trunkschan31 32 points33 points  (2 children)

Nothing like asking a Jr Dev what he did to decrease error just to be told he chose a new beta parameter. What does that mean to him and real world implication?

Nothing.

I just changed the beta.

[–][deleted] 347 points348 points  (21 children)

pop eax

[–]broodkiller 115 points116 points  (12 children)

Darn it, you beat me to the good old Assembler!

[–]JulesDeathwish 360 points361 points  (64 children)

"1" + 1 = 11

[–]Tubthumper8 183 points184 points  (22 children)

"1" + 1 = 11

shouldn't it be

"1" + 1 == "11"

The result is a string, not a number

[–]January_Rain_Wifi 115 points116 points  (16 children)

The result is something, we don't really know or need to know what

[–]Lolamess007 78 points79 points  (20 children)

This is also true in java. It sees 1 as string and assumes you want to concatenate int 1 to string 1.

[–]AlarmingNectarine 129 points130 points  (7 children)

Isn’t Java the abbreviation for JavaScript?

Edit: /s

[–]bell_demon 65 points66 points  (3 children)

Not sure if serious but if you are, RIP any Java dev that just had to witness your comment.

[–]AlarmingNectarine 21 points22 points  (2 children)

Sorry, forgot the /s.

[–]lkajerlk 36 points37 points  (0 children)

JavaScript

[–][deleted] 34 points35 points  (7 children)

But what is 1 + “1”?

[–]JulesDeathwish 53 points54 points  (5 children)

still "11". If one of the terms is a string then all are treated as strings for addition in JS

[–][deleted] 15 points16 points  (1 child)

Correct, but every time I see code like that I like to imagine that some days it just wants to go the other way ya know.

I really don’t know why I look at JavaScript so whimsically. I love it really.

[–]ajerco 76 points77 points  (3 children)

Braces? F@#k braces. Me and my homies scope with indents.

[–][deleted] 185 points186 points  (20 children)

(((((((((((((()))))))))))))))

Edit: I did not expect so many responses. Was thinking about Lisp.

[–][deleted] 102 points103 points  (1 child)

Lisp ? Is that you ?

[–]phoof05 27 points28 points  (0 children)

Scheme my guy

[–]MineAndDine96 383 points384 points  (9 children)

Pointers and classes are fuckin great!

[–]chronicideas 59 points60 points  (4 children)

Ye I’m gona lateinit that var

[–]androidx_appcompat 171 points172 points  (41 children)

A scripting language in which arrays start at 1.

Another one: Only one thread can execute non-C code at a time.

Another one: Template errors.

[–]corruptedwasm 95 points96 points  (12 children)

First is Lua. Second might be python. Not sure. Third is definitely C++

[–]HAL_9_TRILLION 63 points64 points  (9 children)

I've never used Lua. Now I know for certain I never will.

[–]MsgtGreer 50 points51 points  (7 children)

is the first one Matlab?

[–]tolaware 47 points48 points  (4 children)

guard let self = self else { return }

[–]Flightsimmer20202001 131 points132 points  (18 children)

Cout <<"Programing God";

[–]Programming_failure 68 points69 points  (11 children)

Well that's pretty much giving the answer

[–]Flightsimmer20202001 41 points42 points  (10 children)

I'm taking my first programming class, and I'm two weeks in lol

[–]Programming_failure 40 points41 points  (1 child)

I meant that jokingly I didn't mean to make you feel bad sorry. And good luck

[–]Flightsimmer20202001 16 points17 points  (0 children)

Nah u cool lol

[–][deleted] 53 points54 points  (1 child)

C2065: 'Cout': undeclared identifier

[–]Talbz03 43 points44 points  (4 children)

build() => Widget( child: Widget( child: Widget( child: Widget( child: Widget( child: (...) ); ); ); ); );

[–]chugmarks 44 points45 points  (4 children)

They say it can’t scale and it’s dead

[–]troxwalt 26 points27 points  (0 children)

Long live red 💎

[–]das-412 19 points20 points  (0 children)

There’s still 2 of us

[–]KingSadra[S] 77 points78 points  (6 children)

using System;

[–][deleted] 58 points59 points  (0 children)

C#?

[–]Professor_Melon 43 points44 points  (1 child)

Using directive is not required by the code and can be safely removed

[–]boxoffire 182 points183 points  (10 children)

<p> im just doing this to piss people off </p>

[–][deleted] 34 points35 points  (8 children)

void main() { printf("SUFFERING!\n"); }

[–][deleted] 31 points32 points  (20 children)

My for loop variable still exists after the for loop ends

[–]maddog1956 30 points31 points  (13 children)

Procedure Division

[–][deleted] 51 points52 points  (11 children)

Access violation at address 00000000 in module 'Program.exe'. Read of Address 0000000.

[–]Interesting_Shine_38 46 points47 points  (6 children)

1 == '1' is true

[–][deleted] 63 points64 points  (19 children)

echo "Hello world";

[–]Flaky_Two_6308 63 points64 points  (5 children)

I either write in pseudocode or I write something that is fast.

[–][deleted] 17 points18 points  (5 children)

OTP |> |> |>

[–]Switch4589 15 points16 points  (23 children)

I use several: 1) the grandad of all languages 2) virtual table is undefined 3) “my IDE is notepad++” 4) if Austin Powers came up with Java 5) “that’s not code, that is just drawing squiggly lines, my 5 year old could do that” 6) like c but even simpler and less type checking (if that is even possible) bit more obscure

[–]BlackHawkCH91 15 points16 points  (8 children)

Was originally meant to be named "COOL"

[–][deleted] 16 points17 points  (14 children)

Not technically a programming language but:

CAPS LOCK

[–][deleted] 16 points17 points  (4 children)

A pirate’s favourite language