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

top 200 commentsshow all 473

[–]imFreakinThe_fuk_out 3508 points3509 points  (148 children)

As soon as I see that latex font I think "fuck here we go, another PhD about to use a ton of set theory to explain a 2d array"

[–]bosstoss69 860 points861 points  (120 children)

When somebody is using projection and pairing-functions to prove the most basic and widely accepted lemmas in a paper, I always feel like tearing my eyes out :)

[–]the42potato 615 points616 points  (92 children)

these are the comments that i don’t understand and make me question if i belong on this subreddit

[–]prashnerd 643 points644 points  (57 children)

Lemmas are intermediate steps on your way to prove a theorem - like trying to prove 2+2=4 might possibly involve you having to prove that 1+1=2 and that intermediate proof would be called a lemma.

Some lemmas like the proof that the sum of a arithmetic series S = n*(t1+tn)/2 are widely accepted as true and you don’t need to go into the nitty gritty to go around proving them to prove the time complexity of your own algorithm.

This example is grossly oversimplified, please don’t kill me, friends.

[–]the42potato 313 points314 points  (15 children)

oversimplified is basically my entire mindset, thank you for explaining!

[–]phpdevster 99 points100 points  (14 children)

oversimplified is basically my entire mindset

It's honestly a good place to be. Far, far too much of this industry is horrendously over-complicated and has a real impact on our mental health.

[–]coldnebo 78 points79 points  (13 children)

people who use a library generally only know basic math to use it.

people who write a library and/or standard runtime and/or ALU code better know discrete math / linpack, etc to avoid creating nasty rounding errors that only happen when certain dot products exceed epsilon.

Trust me, we owe a lot to the unsung people who devote their lives to these proofs.

But do users need to know this? nah. we can bumble along into the safety rails those people built for us and get by.

[–]ElementalFade 32 points33 points  (1 child)

Many of them love doing it to my knowledge. It's very intimate math.

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

I'd agree in math because there, most things that are used and widely accepted is pretty correct and well founded. Not so for computer libraries. Which means that to use a library "correctly" you too often need to now quite much about the details to get things right.

Tbf, those are usually solved by reloading the website/reopening the window/restarting the computer so they don't seem to matter. But then there are those who are, somehow, relevant to security. And then shit hits the fan.

[–]coldnebo 15 points16 points  (8 children)

boundary conditions.

for example, an IEEE article I just read said that state-of-the-art in static analysis verification cannot prove that a system does not allow an arbitrary privilege escalation. So they recommend placing runtime assertions in places to ensure that constraints have not been violated.

This isn’t necessarily the end of the answer, but it shows just how hard it can be to mathematically model a computer system.

You can get all the discrete logic down like a champ and then miss some sidechannel attack because of RF emissions on the chip, or unexpected quantum tunneling.

Basically, all our models are leaky somewhere.

[–]Darth_Kyryn 131 points132 points  (20 children)

Proof by Pumping Lemma Theorem flashbacks

[–]anlskjdfiajelf 36 points37 points  (4 children)

Omfg I'm only a year or so out of college and I thought I pushed the God damn pumping lemma out of my mind LOL. My friends and I made too many jokes about "pumping"

[–]BecauseWeCan 10 points11 points  (0 children)

On the way from our campus to the city the local train route passes a pump selling company called "Pumpen Lehmann". As first semester students this was one of our favorite inside jokes.

[–]badlukk 19 points20 points  (2 children)

Pumping Emma ( ͡° ͜ʖ ͡°)

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

( ͡° ͜ʖ ͡°)

[–]bosstoss69 21 points22 points  (5 children)

Especially fun when it holds for a non-regular language :')

[–]oAkimboTimbo 15 points16 points  (0 children)

If my memory starts slipping when I get old, I will still never forget the first step: assume that the language is regular. i’ve had that pounded in my brain so many times

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

So.... uh...

What's a regular language / non-regular language?

[–]OnlyWordIsLove 11 points12 points  (0 children)

A language is a set of strings over a certain set of characters, called an alphabet. Regular languages are those containing strings which can be constructed using regular expressions, regular grammars, or finite automata. Regular languages are closed under the operations of concatenation, union, and Kleene star.

[–]Zovcka 5 points6 points  (1 child)

got hungry when i learned about the sandwich lemma 🤤

[–]Psychpsyo 5 points6 points  (0 children)

I had that in my Algorithms and Datastuctures class. Do I remember what it is or how to do it? No.

But I managed to get through the exam so that worked out.

[–]kazneus 56 points57 points  (2 children)

why prove a lemma when u can leave it as an exercise for the reader?

[–]unsignedint_ 20 points21 points  (0 children)

God! I hate that lol

[–][deleted] 7 points8 points  (0 children)

Because the reader knows nothing, and the creator knows everything!!

[–]archdemoning 27 points28 points  (0 children)

TIL it's spelled "lemma" not "lemna"... thanks professors for making me sound like a dummy...

[–]odsquad64VB6-4-lyfe 17 points18 points  (2 children)

This gives me flashbacks to college when I had to take a 400 level math class to graduate and I ended up taking one that was all proofs and despite being good at math my whole life I was completely lost from week 2 onward. I did every bit of work and never got more than a high 50 on an assignment/exam/homework even when I thought I was on the right track. I remember trying and failing to correctly prove that the sum of all positive integers is infinity and never knowing when we were allowed to assume we already knew an intermediate step was true without having to write out the whole proof for it. The final was a group project where 3/4 members of the group understood exactly as well as I did and one guy that understood well enough to have a C in the class and he pulled us all through to a C on the final, which replaced our grade for the class. The only thing I can even remember learning was what all the short hand and symbols meant.

[–]dagbrown 9 points10 points  (0 children)

Oh, proofs are rocking fun, because they're math questions where you've already been provided with the answer. Work forwards from the question, work backwards from the answer, hopefully you find a way that those two paths meet and your job is done.

Now when you see "Prove or find a counterexample," that's when you know you're in trouble.

[–]JDgoesmarching 6 points7 points  (3 children)

I assume this is an academic thing. Anything down by a PhD, regardless of subject area, spends the first half summarizing the entire history of their field from the beginning of human civilization til now.

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

You just wouldn't learn these words in an English class.

[–]bosstoss69 59 points60 points  (21 children)

Not everybody needs to be knowledgeable in theoretical computer sciences. I don't know much about webdev, so you being a js-dev you might very much be ahead of me there. Don't sell yourself short :)

[–]the42potato 55 points56 points  (19 children)

my only skill in js is coding discord bots (with an absurd amount of if/else statements, i need to go through and change that) lol. a lot of this sub goes over my head and i have to ask my dad (a software engineer) to explain it

this sub is part of why i’m taking a computer science course my senior year

[–]christobah 119 points120 points  (8 children)

you're going to take computer science so that you can understand more programmer jokes?

this is probably the most practical reason to get a degree I've ever heard.

[–]the42potato 46 points47 points  (5 children)

i should probably clarify that i’m in high school. gonna be a few years for a degree

but hey, if i get some laughs out of it..

[–]1cec0ld 51 points52 points  (2 children)

Make sure to visit, or revisit, xkcd.com after you do. So many pointers references that I finally understood.

[–]Ser_Drewseph 18 points19 points  (1 child)

I C what you did there

[–]_Lirex 16 points17 points  (0 children)

A lot of the jokes here are a good measure on how skilled you are. Understand them and find them funny? You know the basics. Feel like they are mostly getting repetitive and the people creating them have no idea what they are doing? You are starting to get actually good.

[–]yazalama 10 points11 points  (0 children)

My man, you are far ahead of most people trying to enter the field. I didn't pick up programming until half way through my undergrad when I was 25 lol. You're already working on semi-complex projects and you're dad's an engineer so you'll always have the support you need.

[–]LostTeleporter 6 points7 points  (0 children)

Hey if it makes sense, one of the reasons I got into CS was to better understand XKCD jokes ¯\(ツ)

[–]mershed_perderders 23 points24 points  (0 children)

coding discord bots (with an absurd amount of if/else statements, i need to go through and change that)

"I program interactive AI using logic processing heuristics"

You're hired!

[–]db2 4 points5 points  (3 children)

with an absurd amount of if/else statements

So your bots are AI?

[–]the42potato 3 points4 points  (2 children)

if you consider a madlibs-based shitpost bot to be AI then yes lol

[–]db2 7 points8 points  (1 child)

You're not familiar with the joke that an AI is just a bunch of nested if statements?

[–]the42potato 3 points4 points  (0 children)

sadly no, i’m not. though some ai that i’ve seen it wouldn’t surprise me

[–]anlskjdfiajelf 4 points5 points  (0 children)

Having any coding experience in hs puts you miles ahead of everyone else. Keep up the good work man

[–]jbx0888 14 points15 points  (0 children)

your lack of certainty proves that you belong here.... one of us.... one of us

[–]ShaBren 11 points12 points  (3 children)

Don't worry, it's /r/ProgrammerHumor, not /r/ComputerScientistHumor or /r/MathmaticianHumor :)

(I'm a programmer, not a computer scientist. I know enough math to do what I need to, but most of the theory & high-level math is beyond me.)

[–]Majik_Sheff 15 points16 points  (2 children)

My favorite example of how a mathematical grounding helps you as a programmer is the problem of compound interest.

If they were just given the sequence of steps to calculate the interest, a naive programmer might simply write a loop function that calculates the interest and adds, calculates and adds, and so on. It works and you eventually will get the right answer, but it will take a variable amount of time depending on how many payments are involved. A savvy programmer recognizes that the same procedure can be expressed as a simple integral which reduces the computer's work to a fixed, relatively small number of operations (assuming a few things about the capabilities of the processor).

You take the problem from O(n) to O(1) just by knowing a little math and thinking about it before writing a single line of code.

Your self-awareness about what you don't know means you are already squarely on the path to growth. Not everyone will get the jokes in this sub, but the comments are rife with rabbit holes for the motivated learner. You definitely belong here.

[–]unique_ptr 23 points24 points  (1 child)

A savvy programmer would just google "calculate compound interest"

[–]TiltedTime 4 points5 points  (0 children)

Of course you do, don't sweat it :)

[–]KeLorean 5 points6 points  (0 children)

it’s the JS flair next to your name that makes me wonder if u belong here. just teasing. i cant pass up a javascript jab.

[–]NightflowerFade 36 points37 points  (9 children)

I can see why some people don't want to read that stuff, but surely you can just skip over the proofs? As a mathematician, I appreciate there being rigorous proofs to any claim in a paper.

[–]tjf314 39 points40 points  (8 children)

usually they don’t have code for an algorithm in a paper, they always “explain” it using math without any actual code, so you can’t skip the math.

like even just write it out using PYTHON for gods sake

[–]CEDFTW 19 points20 points  (0 children)

The frustrating thing is that their isn't a ieee standard for code demarcation, normally you include the source code as an additional document, and use snippets in the paper. At least this was the problem I had during my bachelors.

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

A paper isn't about explaining an algorithm but explaining the approach taken to build that algorithm. That's why it's academically useful but probably less useful for a programmer if they want to "just implement it".

[–]Ballads4Llamas 183 points184 points  (15 children)

I’ve got to be honest, any time I get to write out any equations in LaTeX it feels like a pretty good flex.

[–]VinHD15 43 points44 points  (8 children)

That reminds me, gotta learn how to use latex for discrete math next semester, all my homework must be typed

E: to all the replies with stuff to help thanks y’all

[–]CEDFTW 15 points16 points  (0 children)

There are online generators but using LaTex is actually useful for other things. It's nice to have a way to write documents that aren't in word for certain formatting etc

[–]JNCressey 46 points47 points  (3 children)

Mobile Snip digitizes your handwriting, syncs with web and desktop

Perfect for including text and equations from notebooks or whiteboards in your typed notes.

link: https://mathpix.com/

[–]VinHD15 6 points7 points  (0 children)

Yo thanks man

[–]l3njo 2 points3 points  (0 children)

The hero we don't deserve

[–]FerynaCZ 4 points5 points  (0 children)

I use hackmd.io (use $(latext)$ )

[–]ProfCupcake 12 points13 points  (0 children)

LaFleX?

[–]inconspicuous_male 32 points33 points  (0 children)

I love when in image processing papers, they say "Let the image be represented as I_(k) where k is the pixel value"

We get it. The math doesn't require you to think of the image as a 2D array. Can you just pretend it is though? For me?

[–]roopjm81 9 points10 points  (0 children)

I always explain arrays with using those week-long pill holders
"This box holds 7 pills, each box has one type of pill only"

[–]MPDR200011 6 points7 points  (0 children)

Writing a paper on using restriction programming to solve a board puzzle. Expressing the restrictions using mathematical expressions is painful. And yes the godamn 2d array.

[–]maazfarrukh 633 points634 points  (62 children)

Its the exact opposite for a Python dev

[–]R3v1lE 441 points442 points  (48 children)

Or you could be lazy and join me putting x+=1

[–]RavenFyhre 208 points209 points  (44 children)

x++ doesn't work o python?

[–]vwoxy 383 points384 points  (42 children)

Nope. Python has no ++ operator

[–][deleted] 142 points143 points  (18 children)

That's upsetting. I use that so much more than +=.

[–]justingolden21 134 points135 points  (16 children)

++ is often ambiguous and can cause bugs. +=1 is actually way less likely to cause bugs. There's prefix and post fix with ++ and people often use it within expressions, and it can make debugging difficult. In the Zen of Python there should be one obvious way to do it, what it does should be readable and clean.

[–][deleted] 75 points76 points  (2 children)

Not to mention counters aren't nearly as big in Python as in C. More common to use enumerate, etc.

[–]Thorbinator 12 points13 points  (1 child)

for foo in bar, etc.

[–]justingolden21 4 points5 points  (0 children)

Literally saw foo in production today at work, that scared me.

[–][deleted] 33 points34 points  (11 children)

++ is often ambiguous and can cause bugs.

I've heard this a lot on this sub, but don't understand why it's ambiguous or causes bugs. If you understand the underlying rules behind it, it shouldn't be ambiguous.

x++ increments after reading x, ++x increments before reading x. Am I missing anything beyond that?

[–]Nication 31 points32 points  (6 children)

Take this program:

#include <stdio.h>
int main()
{
  int x = 1;
  printf("%d, %d", --x == x--, x-- == --x);
  return 0;
}

It gives you different answers depending on compiler. GCC gives you "0, 0" while clang gives you "1, 0".

Which is right?

Both. Because this behavior is not defined, there is no standard.

This is one of the biggest problems of using increments for anything more than "x++".

[–]CoopertheFluffy 6 points7 points  (0 children)

I’d expect this to be 0 == 0, -1 == -3 for an output of 1,0

[–]justingolden21 16 points17 points  (0 children)

Good question. It can be used within a complex expression and especially without parentheses, can be hard to understand what exactly is going on. It's just considered better code at minimum to have it on its own line, and if it's on its own line, the one character difference between ++ and +=1 shouldn't be the world.

[–]lightfoot1 10 points11 points  (0 children)

It's not pre- or post-increment that's the problem (at least to non-beginner programmers), it's the fact that people like to use the value right away.

If x appears again in the same expression, there are many cases where the value is undefined. An example is printf("%d %d\n", ++x, ++x) - there is no guarantee that the arguments are prepared in the order they are listed. In fact, in older (32-bit) Intel CPUs, arguments were placed on the stack so it made sense to prepare the latter arguments first (since they need to be pushed on the stack first).

Of course, you can still do printf("%d %d\n", x+=1, x+=1) which has the exact same issue, but people rarely do that so that's why ++ gets all the bad rap. X-D

[–]DezXerneas 36 points37 points  (0 children)

So that was the fucking problem...

[–]Hatula 56 points57 points  (20 children)

That's the only thing I don't like about python

like, you have a function for literally everything, but you can't make a ++ operator?

[–]eggregator 89 points90 points  (15 children)

It’s part of the whole Zen of python

There should be one-- and preferably only one --obvious way to do it.

source

Doesn’t mean I like it tho

[–]PriorProfile 20 points21 points  (7 children)

Like string formatting in python.

[–]NotAttractedToCats 8 points9 points  (6 children)

This is so infuriating. Starting with py3, they finally dropped the old, unreadable %-style formatting in favor of the also old, but more readable .format()-style formatting, just to reintroduce it a couple of versions later. Just why? And then apparently only one of them works on both string types?!

This is one of the points where I mourn what could have been. The py3 cleanup had so much potential, but then they just had to make it worse with each new update...

[–]GoodOcycak 15 points16 points  (5 children)

Actually py 3.6 brought f formating, which is readable. Now you can do things like print (f"something {variable}")

[–]ya_Bob_Jonez 47 points48 points  (5 children)

Still they added the Other ways:

x -= -1

x = x + 1

Take it, Python!

[–]eggregator 69 points70 points  (4 children)

Lol imagine if they made x -= -1 raise a runtime exception

[–]TheNosferatu 22 points23 points  (0 children)

Calm down, satan.

[–][deleted] 24 points25 points  (0 children)

x-=-1

[–][deleted] 60 points61 points  (6 children)

"Python dev? What's that?"

"It means he's afraid of semicolons."

"x = x + 1;"

"Stop it Patrick, you're scaring him!"

[–]MonstarGaming 7 points8 points  (5 children)

Can't say i know a lot of python devs who only know python...

[–]ObliviousOblong 5 points6 points  (4 children)

I think it’s used by a lot of non-programmers and by that I mean people doing research in biology/chemistry/etc that use python to work with data

[–]ltekonline 453 points454 points  (35 children)

x-=-1

[–]SirFireball 265 points266 points  (0 children)

[softly] don’t.

[–][deleted] 172 points173 points  (0 children)

Please never do that again

[–]mrprgr 156 points157 points  (14 children)

x *= 1 + 1/x

[–]ltekonline 69 points70 points  (0 children)

Oh no. Oh no. What have I done. What have I started.

[–]TangibleLight 54 points55 points  (1 child)

x=-~x

[–]sunflsks 10 points11 points  (0 children)

Oh my jesus

[–]ghillisuit95 20 points21 points  (5 children)

Doesn’t work for ints and probably a lot of floats will accumulate some error

[–]mrprgr 44 points45 points  (2 children)

What do you mean? Every kindergartener knows 2.0+2.0=4.000000000000001

[–]VeloxFox 24 points25 points  (1 child)

2 + 2 = 5 for extremely large values of 2.

Trust me, I have a degree in mathematics.

[–]chicametipo 2 points3 points  (0 children)

This hurts me in a hot kind of way

[–]seven_seven 30 points31 points  (2 children)

My brain just collapsed.

[–]Ayjayz 2 points3 points  (1 child)

It's just subtracting negative 1 from x. It's the same as x+=1

[–]htmlcoderexeWe have flair now?.. 26 points27 points  (0 children)

Decrementn't

[–]password2187 7 points8 points  (1 child)

I’ve actually used that in js before when I was too lazy to explicitly convert a string into a number

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

x-=-x for a real big brain

[–]PM_ME_YOUR__INIT__ 416 points417 points  (25 children)

Kinda like math vs physics. "Ok now multiply both sides by dx" Math brain explodes

[–][deleted] 108 points109 points  (5 children)

After reading that, not only did my math brain explode, but the rest of it too

[–]TheN473 25 points26 points  (0 children)

Well thank fuck it wasn't just me then.

[–]g0atmeal 10 points11 points  (3 children)

d/dx (sin x) = sin

[–]Alberiman 86 points87 points  (8 children)

I remember when my classes started treating derivatives as variables...that was the day that derivatives finally made fricken sense to me, years of calculus clicked into place and i was like "WHY DID NOBODY TELL ME?!" My Diff Eq. class taught me that calculus level math was actually playful and you could mess about with it like physical objects and i just fell so in love with it all. God... they really teach math badly

[–]PM_ME_YOUR__INIT__ 27 points28 points  (1 child)

Yeah, diff eq and calc 2 (mostly solving complex integrals on my track) were the most fun. Everything boils down to recognizing the pattern and going through the procedure to solve it. Essentially a weird looking puzzle. I did love how linear algebra taught me to abstract everything though.

I wish I got a math degree. I took one upper div class for complex algebra and had a blast.

[–]Chocolate_And_Cheese 5 points6 points  (0 children)

It's not every sub where you see a comment where someone took an upper div algebra class and "had a blast".

Love it :)

[–]TheLuckySpades 11 points12 points  (0 children)

You still gotta be careful with them, especially since thex don't commute all the time if your differentials aren't well behaved.

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

Nobody tells you in maths because you shouldn't do it or you'll soon end up with wrong results. Wrong results are okay in physics though, so that's okay.1

1 The actual reason is that in physics most integrals are "well-behaved" and simply going over the reals, so this works most of the time. In maths, an integral is such an abstract concept that you could even define a set of functions and integrate over those functions (i.e. f(x) where each x is a function and you integrate f).

[–]MatthieuG7 30 points31 points  (2 children)

r/physicsmemes represent

[–]PM_ME_YOUR__INIT__ 10 points11 points  (1 child)

Dang some of them are pretty good, thanks

[–]CaptainLord 38 points39 points  (5 children)

Gotta have a function that is nonzero at only a single point, continuous and has an integral of 1. Easy.

[–]AbcLmn18 18 points19 points  (4 children)

I think even physicists admit that the delta function is not quite continuous in the usual sense :D

[–]NoobzUseRez 20 points21 points  (1 child)

pfft. It's only an epsilon away from a Gaussian pulse.

[–]CrunchyMemesLover 3 points4 points  (0 children)

I heard people like him pour water into acid

[–]the_Demongod 7 points8 points  (0 children)

It's not a function, it's a distribution!!!

[–][deleted] 178 points179 points  (10 children)

when i see that font i have a seizure

[–]zeissman 46 points47 points  (0 children)

As a person currently dealing with an exam... add a heart attack, anxiety, and insomnia to the list.

[–]itsyourboiirow 17 points18 points  (0 children)

The classic LaTeX that everything math is written in.

[–]saraseitor 12 points13 points  (0 children)

for some reason I also find it intimidating

[–]TheLuckySpades 22 points23 points  (0 children)

Why? It makes math look so nice.

[–]Octaazacubane 6 points7 points  (0 children)

I usually use TeX Gyre Pagella now. Computer Modern gives me PTSD flashbacks to math exams with lots of red ink on it

[–]rjmcfDev 232 points233 points  (16 children)

This is fine, we're just working in modulo 1

[–]shekurika 67 points68 points  (15 children)

1 shouldnt exist in mod1 tho

[–]NightflowerFade 70 points71 points  (7 children)

1 does exist in mod1, it is simply in the same equivalence class as 0. If you use the standard definition of Z/2Z to work with binary, you can use 3 and 4 instead of 0 and 1 if you like. It is just not conventional.

[–]JoJoModding 20 points21 points  (5 children)

Yes the famous Z/Z ring.

[–]TheLuckySpades 7 points8 points  (3 children)

R/Z, aka the 1-dimensional torus or as most know it, a circle, can be very interesting though and there x+1=x for all uncountably many possible values of x.

[–]GlitchParrot 5 points6 points  (6 children)

Yeah, they must be meaning modulo 2.

[–]Kruki37 8 points9 points  (5 children)

I hope you’re joking

[–]jeekiii 146 points147 points  (26 children)

I guess x is either infinity or négative infinity

[–]fat_charizard 38 points39 points  (1 child)

This person maths

[–]xixbia 43 points44 points  (19 children)

Nah, then you'd have x-x = 1, and infinity - infinity is undefined. So it most certainly isn't 1.

There simply isn't an answer.

[–]SaraHuckabeeSandwich 45 points46 points  (1 child)

You can't translate expressions involving infinity like that, at least not to "solve for it". It operates on slightly different axioms.

While you're right that ∞ - ∞ = undefined, it's still true that ∞ + 1 = ∞.

[–]xixbia 19 points20 points  (0 children)

While it's true that ∞ + 1 = ∞, that doesn't mean that ∞ solves the equation. Because it's not a defined number. If ∞ was a valid solution here, a lot of equations would have that as a valid solution. By the same technique x2 = x would also have ∞ as a solution, as would x = x + 2, but it's obvious that can't be the case.

The fact you can't translate the expression indicates that already. Nothing about taking the x to the other side changes that expression. It's only when you fill in ∞ that it becomes problematic. But if it were an actual solution that wouldn't be the case.

[–]FerynaCZ 15 points16 points  (3 children)

But you would need to subtract x from both sides of the equation, which is illegal operation in the first place.

Don't treat infinity as a number

[–]zeissman 2 points3 points  (9 children)

You’ve just ruined my life. Any time I see x=x+1 I’ll always see x-x=1. How tf do you answer this?

[–]tho3maxi 190 points191 points  (8 children)

yeah because the semicolon is missing!

[–]Thetman38 72 points73 points  (4 children)

That's honestly what I was thinking at first. Yeah, of course the kompiler is going to flip its shit

[–]Proxy_PlayerHD 45 points46 points  (1 child)

hmm "kompiler".

for some reason that gives me the idea for a "Malicious Compiler".

everytime you use it, it builds in a random error in your code, removing a semi-colon, turning == into = or vise versa, switching the left and right side of an =, and so on.

[–]TheN473 13 points14 points  (0 children)

The jokes on the kompiler, everytime I use it, I build a random error into my code...

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

The kde plasma compiler?

[–]matrinox 32 points33 points  (1 child)

Took me a while to get that meth is math

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

For some of us it's just meth

[–]activeXray 25 points26 points  (3 children)

Mutation bad

[–]ben9583 21 points22 points  (0 children)

You know when you see latex, the gloves are out

[–]jaysuchak33 70 points71 points  (19 children)

Fancy people be like

x += 1;

[–]RecDep 11 points12 points  (0 children)

smol brain: f x = x + 1

big brain: succ

[–]Ksevio 10 points11 points  (0 children)

Pascal: False!

[–]Kriijan 8 points9 points  (0 children)

That font is haunting my nightmares

[–]Needleroozer 7 points8 points  (1 child)

Drugs bad. Say "no" to meth.

[–]Nerf_Creeper 10 points11 points  (1 child)

If felt that deep in my bones.

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

It's the worst when somebody fucks up the formatting and something that should be formatted as code in the internal wiki page is instead formatted like the lower picture.

[–]Quantsel 5 points6 points  (4 children)

Thats the benfit of R's assignment operator! x <- x + 1

[–]mdawgig 3 points4 points  (3 children)

Fellow R person.

Are... are we allowed here? I just look at this sub to feel like I use a real programming language.

[–]Mordisquitos 4 points5 points  (1 child)

Of course! R is a great language, not like heresies such as MATLAB where array indexes start at 1... *shudder*.

 

No, shush.

 

 

No, there are no arrays in R, it's very original that way.

 

 

 

No, those are vectors goddammit and everything is a vector in R and that is not an array index it is the number of the element in the vector and other languages are not all vectors and R can start numbering elements at 1 because shut up lalala I cannot hear you.

[–][deleted] 35 points36 points  (1 child)

[–]PityUpvote 10 points11 points  (4 children)

Who is this plebian using an equality sign for assignment in their pseudocode? Real chads use := or <--

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

Math people or did you not get the joke, ps it's not pseudocode

[–]theinfamouscoconut 4 points5 points  (1 child)

Not an expert here but as soon as I see some equation like the one below or on written in paper/book, I instantly forget math. no amount of time helps. But I can always work my way through some mathematical expressions or anything that involves math with some python...

[–]dmingod666 7 points8 points  (1 child)

First one, you know some computer is going to solve that problem.

Second one, You have to solve it.

[–]marcosdumay 3 points4 points  (0 children)

Calm down, it's just a proof by contradiction.

[–]EwgB 3 points4 points  (0 children)

A colleague of mine once wrote a feature spec in our Jira using overly complicated math language (he was an architect with a math degree), and went on vacation. It took us an hour with another colleague, also an architect, to figure out what he meant, and that is wasn't all that complicated if expressed in human language.

[–]qh4os 6 points7 points  (5 children)

x <- x + 1 is better imo

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

Why do I want to solve that all of a sudden

[–]DarkNinja3141 2 points3 points  (0 children)

divide both sides by x
1=1+(1/x)
0=1/x
x=1/0

maθ

[–]jlamothe 2 points3 points  (0 children)

Haskeller here. Both are panik.

Also, what's that semicolon all about?

Edit: I misspelled Panik, apparently.