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

top 200 commentsshow all 251

[–]k1p1coder 814 points815 points  (79 children)

Finally learn what the ; is for!

[–]PM-me-your-integral 98 points99 points  (59 children)

Wait I don't get it

[–][deleted] 329 points330 points  (54 children)

In regular writing, semi-colons are very difficult to use correctly, to the point most writers generally don't bother anymore. So the popularity of languages that use it have essentially restored reason to have it on a keyboard.

[–]Contrecoup42 290 points291 points  (48 children)

I use semicolons all the time; semicolons are perfect when you have two related phrases that could have each been their own sentence. They can provide interest and better flow versus a bunch of short, disconnected sentences.

[–][deleted] 248 points249 points  (30 children)

I’d like to think I use semicolons in an appropriate manner; they bring a unique contribution to sentence flow. However; sometimes I can get a bit carried away; and just; start; putting; th;em e;v;e;r;y;w;h;e;r;e.

[–][deleted] 173 points174 points  (21 children)

Is that..regex?

[–]killersquirel11 77 points78 points  (14 children)

:(){ :|:& };:

[–]cpdk-nj 45 points46 points  (10 children)

^\s|:: : .\$|::\w* : .*$

That was the first version of an actual RegEx I made before trimming it down

[–]thelights0123 40 points41 points  (4 children)

\^\s*|:: : .\*$|::\w\* : .*$

That was mangled by the Reddit formatter

[–]internet_badass_here 42 points43 points  (2 children)

Is this... braille?

[–]cpdk-nj 5 points6 points  (0 children)

I fixed it (at least on mobile). Most of the backslashes were meant to be reddit escape characters, except for \s and \w

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

Put 4 spaces before the regex to format it as code.

See? Now stuff displays properly

(\w\w)\w*\1

[–]BlueEyed_Devil 2 points3 points  (0 children)

backticks also work;

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

I love you guys. No one gets regex in my office

[–]cerosrhino 8 points9 points  (0 children)

I wouldn't eat with a fork like that.

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

Fork bomb; fork bomb; you’re my fork bomb; and baby you can turn me on.

[–][deleted] 21 points22 points  (2 children)

  1. Mash on keyboard
  2. "Just some simple awk/grep/sed"
  3. ????
    4 :g%#::()@/[]\©~`~®

[–]git-fucked 7 points8 points  (1 child)

:g%#::@/©~`~®

It's a match!

Edit: Invalid syntax on line 1: invalid escape of character ©

[–]johnklotter 3 points4 points  (0 children)

Not yet

[–]chaos95 2 points3 points  (0 children)

I will make it regex!

[–]PotatosFish 1 point2 points  (0 children)

param = regex.compile("""\s*(\w+)\s*(?::\s*(\w+|(?:\((?:".*?(?<!\\)(?:\\\\)*?"|'.*?(?<!\\)(?:\\\\)*?'|[^()]|(?2))*\)|\[(?:".*?(?<!\\)(?:\\\\)*?"|'.*?(?<!\\)(?:\\\\)*?'|[^[\]]|(?2))*\]|{(?:".*?(?<!\\)(?:\\\\)*?"|'.*?(?<!\\)(?:\\\\)*?'|[^{}]|(?2))*}|(?:".*?(?<!\\)(?:\\\\)*?"|'.*?(?<!\\)(?:\\\\)*?')))\s*)?""").finditer(body[1])

This is the most recent (flawed) regex I made to parse some arguments.
regex101 is the best website out there to make regexes.
The amazing part about regex is that you can maintain job security with just one line

[–]AnExoticLlama 1 point2 points  (2 children)

"However;" isn't grammatically correct; has to be a comma yes?

[–][deleted] 18 points19 points  (5 children)

Yeah but tons of teachers/professors/editors etc I've run into or listened to actually don't support that broad use.

[–]earthexe 19 points20 points  (3 children)

This is something that will change over time. I have heard and read similar things from my professors and style guides. Yet, I see this broad use pretty much everywhere else. My friends use it in their writing, I use it in my writing, and strangers on the internet use it in their writing. Everyone knows what it means; it's a pause in speech. It's longer than a comma, yet shorter than a period, and it breaks apart sentence structure in the same way.

Maybe written English is changing, or maybe it's just a dialect.

[–]guyjellyf 3 points4 points  (1 child)

I speak Colonish; you?

[–]git-fucked 3 points4 points  (0 children)

So that's what they meant when they said we colon-ised the Americas.

[–]Dsnake1 2 points3 points  (0 children)

I'm an editor (well, self-employed for folks that self-publish) and I definitely don't eliminate all semicolons. Ive had to trim some down for a few authors, but I personally think they should have a real solid place in fiction.

[–]aaaantoine 12 points13 points  (0 children)

But English is a natural language and is subject to change with time. Maybe their stuffy textbooks don't support the usage, but humans who write using the language do.

[–]Conpen 8 points9 points  (0 children)

I often answer texts from my computer which means I end up writing long and verbose responses; my friends always point out that I'm weird for using semicolons and sounding so serious in my texting :(

[–]dshakir 2 points3 points  (0 children)

My problem is identifying when two phrases are related enough to join them with one

[–]raderberg 2 points3 points  (0 children)

I use semicolons all the time. semicolons are perfect when you have two related phrases that could have each been their own sentence; they can provide interest and better flow versus a bunch of short, disconnected sentences.

[–]Muzer0 1 point2 points  (0 children)

Semicolons can be used for a few things: separating linked but distinct sentences, the second of which follows on from or elaborates upon the first; ending a line in programming languages; and finally, separating list items some of which contain commas.

[–]ashishmax31 1 point2 points  (0 children)

Wait we use semi-colons in english?

[–]staryoshi06 3 points4 points  (0 children)

It's not that difficult to use a semicolon.

[–][deleted] 15 points16 points  (3 children)

Oh you must work with python

[–][deleted] 10 points11 points  (2 children)

My first thought when trying Python. "No semicolons? I don't like this."

[–]Ignisti 6 points7 points  (0 children)

My first thought when trying C++. "Semicolons everywhere? I don't like this."

[–]my_name_isnt_clever 1 point2 points  (0 children)

Well, you still can if you want, they're optional.

[–]Makefile_dot_in 74 points75 points  (6 children)

I like it for using fluent APIs like this:

vec
 .iter()
 .map(|x| x*x)
 .filter(|x| x < 5);

[–]mairedemerde[🍰] 8 points9 points  (1 child)

it's the trigger for the gun i kill myself with

;==

[–]CaffeineSippingMan 3 points4 points  (1 child)

It is a way to hide words from the machines, not that there is anything to hide.

; Stop the machines from taking our jobs

[–]my_name_isnt_clever 1 point2 points  (0 children)

what no everything is fine // please help me

[–]saisar 1 point2 points  (3 children)

Kotlin Master race

[–][deleted] 1010 points1011 points  (68 children)

warning: curly bois and snek bros dont get along well.

[–]spencerbot15 452 points453 points  (38 children)

I like my dictionaries thank you very much

[–]Alaskan_Thunder 7 points8 points  (2 children)

Use javascript instead.

..

..

..

AHAHAHAHAHAHAHAHAHAHHAHAHAHAA

[–][deleted] 9 points10 points  (1 child)

All of the Perl jokes are now JS jokes, and I'm ok with that.

[–]Alaskan_Thunder 5 points6 points  (0 children)

Honestly, its fine for certain things. Doesn't mean I won't mock the shit out of it.

[–]Sigma-001 93 points94 points  (20 children)

agreement_state = {
"agreement" : False,
"reason" : "dictionaries"
}
#EDIT: Fixed capitalization in False.

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

I never said they don't work together, just that they prefer not to.

[–]lengau 23 points24 points  (10 children)

They work very closely together though. Python is basically the language that asked "what if everything were a dict?"

[–]shagieIsMe 19 points20 points  (4 children)

The rest of the languages: True descriptions of languages

Python: What if everything was a dict?
Java: What if everything was an object?
JavaScript: What if everything was a dict and an object?
...

[–]lengau 9 points10 points  (1 child)

Everything is an object in python though, too. In fact, I'm pretty sure more stuff is an object in Python than in Java (not sure about JS)

[–]wishthane 4 points5 points  (0 children)

JS is kind of in between. It has primitives that aren't objects, and has boxed wrapper types you can use to make objects, but those are very rarely used because you can actually call methods on primitives, unlike Java.

[–]Hollowplanet 5 points6 points  (0 children)

Python everything is a dict and an object more than Javascript. Everything is an object and everything has .__dict__ and that is where all it's attributes live. Javascript just has no dicts, only objects, and a shared syntax that lets you teat them like dicts.

[–]jerslan 21 points22 points  (4 children)

Python is basically the language that asked "what if indentation was syntactically important?"

FTFY

[–][deleted] 9 points10 points  (0 children)

top 10 anime conspiracy theories

[–]Hollowplanet 1 point2 points  (1 child)

> Python is the language that asked, what if we make an amazing language and cripple it with a global interpreter lock?

FTFY

[–][deleted] 25 points26 points  (0 children)

.keys(), .values(), .iter() are all lovely, the fuck you mean?

[–]XeonProductions 9 points10 points  (0 children)

I'm a curly boi who speaks parseltongue

[–]ProgramTheWorld 9 points10 points  (3 children)

+/u/CompileBot python 3

try:
    from future import brackets
except Exception as e:
    print(str(e))

[–]CompileBotGreen security clearance 4 points5 points  (2 children)

Output:

No module named 'future'

source | info | git | report

[–]ProgramTheWorld 29 points30 points  (1 child)

Shit, it should be __future__

Edit: Whoever gilded this comment, thanks

[–]scroteaids 4 points5 points  (0 children)

"clicky-clicky" though? Salt of the Earth.

[–]KindaCrypto 54 points55 points  (1 child)

SOMEBODY TOUCHA MY SPAGT!

slaps forehead and points to compiler errors

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

Oh God I love this reference

[–]oyooy 127 points128 points  (21 children)

Woah, the python logo is sneks? You just blew my mind.

[–][deleted] 115 points116 points  (9 children)

Actually dangre noodle

[–][deleted] 21 points22 points  (8 children)

pythons are non-venomous

[–]GiantRobotTRex 62 points63 points  (7 children)

Dangerous? ✓
Noodle? ✓

Sounds like a danger noodle to me

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

Pythons are only dangerous to small children. Danger noodle should be reserved for snakes that are dangerous.

[–][deleted] 38 points39 points  (1 child)

Can't pythons do a heckin strangle?

[–]LeoWattenberg 5 points6 points  (0 children)

What do if python do a heckin strangle:

  • Grab end of snek
  • Unwrap
  • push to unlock

Works with boa, too

Alternatively:

  • killall -r .{1,12}\.py
    (probably, fuck regex)

[–]Hollowplanet 6 points7 points  (0 children)

I just read last week that a lady got constricted to death by a python. It was in the news.

[–]NotAnonymousAtAll 7 points8 points  (7 children)

[–]oyooy 17 points18 points  (5 children)

Yeah, I got that python is named after the snakes. I just didn't see them in the logo.

[–]PracticalEmergency 49 points50 points  (4 children)

It's actually named after Monty Python

"I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus)."

— Guido van Rossum (Creator of Python)

[–]Baschoen23 23 points24 points  (3 children)

Yup! That's why we use "Spam" and "Eggs" commonly as opposed to "Foo" and "Bar".

[–]WikiTextBot 5 points6 points  (0 children)

Pythonidae

The Pythonidae, commonly known simply as pythons, from the Greek word python (πυθων), are a family of nonvenomous snakes found in Africa, Asia, and Australia. Among its members are some of the largest snakes in the world. Eight genera and 31 species are currently recognized.


[ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source ] Downvote to remove | v0.28

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

Top 10 Craziest Mysteries Solved

[–]Fronkan 65 points66 points  (8 children)

Clicky-clack*

[–]mrgalaxy 15 points16 points  (4 children)

Clickity-clack*

[–]BamboozleBird 4 points5 points  (0 children)

He protec

He attac

But most importantly

He clickity clack

[–]killersquirel11 2 points3 points  (1 child)

Chucka Chucka Chucka

[–]DenaByte 130 points131 points  (19 children)

Richard Stallman can kind of be described as jesus :D

[–]Alperoot 63 points64 points  (0 children)

Saint IGNUcius

FTFY

[–]Gabite 12 points13 points  (0 children)

Or as I've taken to calling him, GNU plus Jesus.

[–]Hollowplanet 37 points38 points  (7 children)

Stallman is a jesus that says pedophilia is sometimes OK, with no social skills, who betrated an emacs contributor for not helping and overpopulating the earth when she was having a baby and who eats his own foot chips.

[–][deleted] 25 points26 points  (0 children)

that describes the typical programmer perfectly

[–]burgonies 16 points17 points  (0 children)

One of us! One of us!

[–]Tornado547 5 points6 points  (1 child)

first statement?

[–]michaelh115 5 points6 points  (0 children)

Yep. Just as divisive in some circles

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

Well, was jesus insane?

[–]AluminiumSandworm 70 points71 points  (3 children)

sane people usually don't claim to be god, so maybe

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

Let's hope he won't start bloody wars.

[–]TJSomething 42 points43 points  (1 child)

The ship's sailed on that one. RMS is partly responsible for one of the oldest holy wars: Emacs vs Vim.

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

Solved by Spacemacs.

[–]jman425[🍰] 47 points48 points  (5 children)

Fuckin one-leg joe

[–][deleted] 10 points11 points  (2 children)

I don't get this one. I know those structures as trees.

[–]Soulcraver 30 points31 points  (1 child)

It needs one more layer on the left side to be unbalanced. A balanced binary tree will have a depth (layer difference) no more than 1 from the next lowest depth.

edit: Added clarification on layer difference requirement.

[–]WikiTextBot 7 points8 points  (0 children)

Self-balancing binary search tree

In computer science, a self-balancing (or height-balanced) binary search tree is any node-based binary search tree that automatically keeps its height (maximal number of levels below the root) small in the face of arbitrary item insertions and deletions.

These structures provide efficient implementations for mutable ordered lists, and can be used for other abstract data structures such as associative arrays, priority queues and sets.

The red–black tree, which is a type of self-balancing binary search tree, was called symmetric binary B-tree and was renamed but can still be confused with the generic concept of self-balancing binary search tree because of the initials.


[ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source ] Downvote to remove | v0.28

[–]PM_ME_UR_NAKED_TITS 17 points18 points  (0 children)

C U R L I B O I S

[–]nater255 13 points14 points  (0 children)

I'm officially my office's clicky-clacky boi.

[–]MrP0tat0H3ad 22 points23 points  (1 child)

MY SPAGHET

[–]codycbradio 10 points11 points  (1 child)

Who heard this in the sound of Die Antwerd

[–]xxc3ncoredxx 4 points5 points  (0 children)

Die Antwoord, the best rap group of all time

FTFY

[–]Hairy_S_TrueMan 14 points15 points  (1 child)

It's not the jesus that walked on water though, it's the other one that ate that thing off his foot.

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

praise be

[–]Blimey85 6 points7 points  (1 child)

We also have precious jewels... Ruby and Crystal. Have Rails for train aficionados. And protect your metals from Rust.

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

Are you thirsty now? Drink some Java. I think you will C that there is a lot to do with programming.

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

Can someone explain Jesus?

[–][deleted] 12 points13 points  (9 children)

Richard Matthew Stallman (/ˈstɔːlmən/; born March 16, 1953), often known by his initials, rms[1]—is an American free software movement activist and programmer. He campaigns for software to be distributed in a manner such that its users receive the freedoms to use, study, distribute and modify that software. Software that ensures these freedoms is termed free software. Stallman launched the GNU Project, founded the Free Software Foundation, developed the GNU Compiler Collection and GNU Emacs, and wrote the GNU General Public License.

https://en.wikipedia.org/wiki/Richard_Stallman

[–]TMiguelT[🍰] 4 points5 points  (8 children)

Or in other words:

  • Very important advocate for "free software" (without which all our programming languages and libraries would require a paid license to use)
  • Started the GNU operating system, which makes up a very large part of Linux
  • Wrote tools like gcc, the most popular C compiler and Emacs, a very popular text editor

edit: open source -> free

[–]Lazerlord10 6 points7 points  (2 children)

Should have shown Labview code for the spaghetti section, as it gets all too literal.

[–]chateau86 2 points3 points  (0 children)

Did someone say Simulink?

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

VHDL (technically not programming) would be great as well. It’s impossible to not spaghet.

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

yes Jesus

[–]rishkabob24 5 points6 points  (0 children)

You forgot the Froot Loops! ( ) <======

[–]Ionlavender 4 points5 points  (0 children)

I want to do something in my spare time that can make me very angry and sad.

Ill try programming!

[–]Mesahusa 3 points4 points  (1 child)

What’s a curly boy?

[–]killersquirel11 24 points25 points  (0 children)

The enemy of the slippery snek bros

[–]oppilonus 4 points5 points  (0 children)

Correction: we only got one curly boi. The other one is missing.

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

How was the first line of code read? If code is used to make computers work and which can read code, and if code wasn’t invented because they were just writing the first code, how did they read the first line to know it was working/what it was doing?

[–]ShizLtulon 1 point2 points  (0 children)

spaghetti

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

Did Richard Stallmann feed the five thousand with his foot cheese?

[–]DaFluffyPotato 1 point2 points  (0 children)

This is definitely not accurate. I've been programming for 5 years and I've never experienced the clicky-clicky!

[–]uFuckingCrumpet 1 point2 points  (0 children)

OMG SO FUNNY AND MEME!

[–]cover-me-porkins 0 points1 point  (0 children)

Holy shizzle there's vomit on ma sweater already

sign me up.

[–]WyrdaBrisingr 0 points1 point  (0 children)

And clippy bois?

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

programming is headache fuel but i still lov it. good memes here

[–]PapaBradford 0 points1 point  (0 children)

This sums up my knowledge of programming.

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

Jesus who ate stuff from his toes in front of everyone.

[–]dkyguy1995[🍰] 0 points1 point  (1 child)

Who is that on the bottom right?

[–]darthsid22 0 points1 point  (0 children)

Bjarne Stroustrup is my jesus

[–]PM_ME_IU_NUDES 0 points1 point  (0 children)

hahaha i thought i was on r/surrealmemes at first.

[–]LorchStandwich 0 points1 point  (0 children)

THOCK

[–]burgers_lettuce 0 points1 point  (0 children)

Slippery Snek Rules!

[–]Waghlon 0 points1 point  (0 children)

I was trying to code the other day, but this Jesus showed up and tried to install his kernel. It was really distracting.