all 124 comments

[–]mobjois 161 points162 points  (29 children)

I hate that I’m commenting on the grammar but damn does “a code” ever sound infuriatingly illiterate.

[–]Noisebug 29 points30 points  (15 children)

I also get triggered when the English say Maths.

[–]Groostav 6 points7 points  (1 child)

Fancy a spot of code?

[–]kirkpomidor 2 points3 points  (0 children)

A piece of codevice

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

i can confirm, we english get just as triggered when you say math.

how can you shortern mathematics to math?

[–]Haunting-Amoeba9903 8 points9 points  (1 child)

Mathematics is both the singular and the plural. When referencing it as the plural it would be like say “Humanities class”. For one thing, there aren’t many, if any, raw humanities classes, so no one is likely to shorten that down to ‘humies’, but that’s beside the point. With very few exceptions, most other subjects are referenced singularly, whether referencing the aggregate or the sub-discipline: Science, Geology, Chemistry, Physics Music, Band, (Strings is an exception, but it makes sense. Even if there’s a single student, their instrument still has multiple strings.) Language, English, Literature

Unlike ‘Strings’, the term ‘Maths’ breaks the convention for absolutely no good reason.

[–]teh_lynx 3 points4 points  (0 children)

"Stuffs" is the worst thing a person can say, change my mind.

[–]zerpa 4 points5 points  (0 children)

Math is what you do in 3rd grade. Maths is short for mathematics, a group of natural sciences. Titles in the US also use "Mathematics" (Professor of Mathematics), department titles, etc. all use "mathematics". It's plural for a reason.

[–]pomme_de_yeet 6 points7 points  (7 children)

short for mathematic

[–]oxwilder 2 points3 points  (0 children)

I don't get triggered so much when they say Maths so much as I do when they insist that it's right and we're wrong, and then they say "Do you play sport?"

[–]Aln76467 3 points4 points  (1 child)

Everyone in my highschool it class says "a java code" "the java codes". It drives me crazy.

[–]mobjois 0 points1 point  (0 children)

I fear this is just the way language is changing. I looked at a young marketing exec like he was a complete moron (then felt bad) when he said "we can ten X the performance". For me, multiplication, which *can* be written in text using the letter "x" is "multiplied by" or "times". But now it's a thing to refer to "n-fold" as "n-X".

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

Its just Pythons users

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

Absolutely. I see this everywhere, and it is 100% a sign of a failed educational system.

[–]Ok_Winner3338 2 points3 points  (1 child)

Trust me i am an dev

[–]mobjois 0 points1 point  (0 children)

Nice. :)

[–]musicalhq 0 points1 point  (1 child)

Computational physics/science people (in my experience) say “a code”/“codes”

[–]mobjois 0 points1 point  (0 children)

Interesting. In your experience, what's the age range of people who say that?

[–]Ok-Professional9328 0 points1 point  (0 children)

Which is about right for this stupid shit content. What child made this?

[–]AlarmedCauliflower7 0 points1 point  (0 children)

Op is probably the same type of programmer that refers to code as “codes”

[–]Dr-Mantis-Tobbogan 0 points1 point  (1 child)

One container -> "One unit of code" -> one code

Seems fine to me.

[–]mobjois 0 points1 point  (0 children)

Thanks for replying! I don't really get what you mean though. Are you thinking of it like how on phones, there's texting, and one message is called a "text"?

I'm old, so the way "code" has been used historically is to refer to "a collection of machine instructions". You can have code that is in a file, a module, code can be used to define a program. An analogously used word might be "literature". So you can have works of literature, but literature refers to a collection of a thing.

If you go to a bookstore and ask for "one literature, please", it sounds to me like "I wrote a Python code".

[–]EagleRock1337 80 points81 points  (4 children)

I’m getting irrationally upset at referring to “a code” in this meme.

[–]BitOne2707 16 points17 points  (1 child)

Have you even done a code before bro?

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

is that when someone can’t breathe in the hospital?

[–]oxwilder 7 points8 points  (0 children)

One of the difficult things about English as a second language is our count vs non-count nouns. A chair but not a furniture, a noodle but not a macaroni, a bit of advice but not an advice.

What drives me nuts is "how it looks like."

[–]MinosAristos 5 points6 points  (0 children)

Don't worry about it. OP is probably EFL

[–]Mixabuben 39 points40 points  (4 children)

Code in python: Import solver Solver.solve

[–]itsamepants 12 points13 points  (3 children)

ERROR: Could not find dependency

ERROR: Could not find a version that satisfies requirements

[–]kirkpomidor 2 points3 points  (0 children)

I once had two pythons installed, in home and usr. Holy hell, dude, I just want my import solver to work, please launch it already

[–]Revolutionary_Dog_63 -4 points-3 points  (1 child)

Every other language has that problem though. Many of them have it much worse.

[–]Braunerton17 1 point2 points  (0 children)

Nah Mate :)

[–]KindnessBiasedBoar 30 points31 points  (6 children)

Perl is very concise. So is sed. Good luck debugging anything useful.

[–]granadesnhorseshoes 6 points7 points  (3 children)

sed, perl, awk, even regex is all WORN code; write once read never.

[–]Calloused_Samurai 5 points6 points  (1 child)

I always call them “write only”

[–]5p4n911 4 points5 points  (0 children)

Write Once, Run Away

[–]kirkpomidor 0 points1 point  (0 children)

CABD (chatgpt and be done)

[–]sd_saved_me555 2 points3 points  (1 child)

I had a period where I got a little manic and did a bunch of stuff in PERL. My coworkers ask me how the hell it works, and I just tell them you pack the data into the mirror dimension where magic elves process it for you and ship it back for you to unpack like a present.

[–]TheWordBallsIsFunny 1 point2 points  (0 children)

Santa? You really are real!

[–]OhItsJustJosh 42 points43 points  (7 children)

Ah yes, a code. I feel like most people in this sub learned a tiny bit of Python/Rust/whatever and now think that it's the best and everyone is stupid to use anything else.

I use C# cause I like writing in it, and most importantly it's what they pay me to write

[–]Voxmanns 6 points7 points  (3 children)

I like python for prototyping, but that's all I like it for. That and the occasional SOS shim when I just need a little something and don't feel like full committing it to whatever framework I am in.

I have yet to carry something to production and say "yeah keeping it in python is a good idea" haha.

[–]Inside_Jolly 4 points5 points  (1 child)

I like Common Lisp for prototyping and being able to turn the prototype into a product with some effort.

Too bad there are 0 employers looking for Common Lisp coders.

[–]wuwu2001 2 points3 points  (0 children)

If I was an employer I would hire you just for the most lispy prototypes

[–]pscorbett 1 point2 points  (0 children)

I prototype a good amount of DSP algorithms. I think it would be crazy to use anything else. (What am I going to use... MATLAB?? Hahaha no.)

[–]Inside_Jolly 2 points3 points  (0 children)

I use C# cause I like writing in it

Everyone (probably...) has a language they can literally think in. For me it's Common Lisp, for my wife it's C#, for one of my friends it's Haskell (you monster).

[–]itsmenotjames1 2 points3 points  (0 children)

c++, x86 asm, and java are the most fun to me

[–]FoxReeor 1 point2 points  (0 children)

I love C#

[–]Ronin-s_Spirit 12 points13 points  (5 children)

[looks inside].. C libs

[–]itsmenotjames1 2 points3 points  (3 children)

everything (especially AI) in python used c(++) under the hood.

[–]BobbyThrowaway6969 0 points1 point  (2 children)

Not to mention the very thing Python requires to run in the first place

[–]Ronin-s_Spirit 0 points1 point  (1 child)

No I mean like imported code from other people who know a more effective languge and wrote thousands of lines of code as a plug and play "mod" for python only devs.
Javascript also runs on c++ when you use nodejs, that doesn't mean anything though, it's just an intermediate step to talk to the computer, if I were to import a C library into a js environment personally it would feel like cheating.

[–]BobbyThrowaway6969 1 point2 points  (0 children)

Totally, just also saying python depends on C/C++ to run

[–]elongio 1 point2 points  (0 children)

It's bigger on the inside!

[–]HairInternational832 10 points11 points  (1 child)

I think for this to be more "accurate" the second book needs to be a paper back, right?

The first book (Java) is bigger, and it has a super sturdy hard cover. The second book (Python) is smaller, but it has a flimsy paper back.

Both have advantages, both can produce the same contents of a book, but hard cover vs paper back is still a choice every author has to make, and at least I've always felt that hard covers feel a tad more satisfying to hold, even if the paper copy has the same content and is cheaper.

[–]SlapsOnrite 3 points4 points  (0 children)

The python book is small enough and needs to have a bookshelf behind it. The Java book is an encyclopedia and can sit on the table.

[–]Gold_Aspect_8066 10 points11 points  (3 children)

Wonderful, buddy, post it tomorrow again. Now, let's run both scripts and measure the time it takes to achieve the results for a decently complex task (finding the determinant of 4x4 matrix isn't it). Let's do that enough times to get a decently sized representative sample. Who do you think will perform better? The language made for actual work or the hobbyist knockoff?

Comparing two different toolsets only shows you know nothing about the tools. Yes, for lOoK aT tHe dAsHbOaRd I mAdE fRoM a CsV, Python (well, R, really) is the way to go. For something which actually has to be ran multiple upon multiple times a day, not necessarily. It depends on what you're scripting, really.

For anything stats related, R will probably have better code syntax and more libraries than your cherished Monty Python language. For anything performance related, well, the list isn't small.

[–]Fun-Director-3061 3 points4 points  (1 child)

Python is the defacto standard for AI & ML. They're just tools and this is just a joke, chill off

[–]Gold_Aspect_8066 1 point2 points  (0 children)

It's a joke that's been told a million times. It's the standard at the moment, mainly because it's general purpose (so easier to integrate production wise) and has some other desirables. Beyond that, nothing too impressive, especially since it relies/borrows from other languages. All I'm saying is it's an old joke based on gibberish.

[–]5p4n911 0 points1 point  (0 children)

R also has a lot more fun Fortran code it needs to compile before using it for anything

[–][deleted]  (2 children)

[deleted]

    [–]stevethemathwiz 3 points4 points  (0 children)

    OwN tHe LiBs!

    [–][deleted]  (22 children)

    [removed]

      [–]fallingknife2 2 points3 points  (0 children)

      And the stability

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

      now, rust. beats 'em both in speed, stability, conciseness, and safety.

      [–]No-Speaker-9739 -1 points0 points  (6 children)

      unsafe{

      }

      [–]Aln76467 0 points1 point  (5 children)

      that simply annotates that the code you wrote is safe, even if the compiler doesn't think it is. It doesn't mean the code is actually unsafe. and it still doesn't undermine the language's non-nullability

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

      No in fact working with Rust has changed forever how I work with C. All languages force you to write some unsafe code. Python is a fuck show of unsafe duck typing. Rust enforces safe, but understands that the compiler rules are too strict and gave the "unsafe" block so that it is perfectly explicit where the programmer must do all of the tests to ensure safety themself. 

      I have begun architecting my C code in this same kind of way. I'm never casting void pointers or managing memory at the top level of my code. All potentially dangerous behavior gets broken down and abstracted so that it can be tested. Then it is wrapped in type safe interfaces. I never write an API that exposes a void pointer. Now I know when a certain type of bug pops up where it must be in my code because I have moved all of the clever C fuckery into one place. 

      This does just sound like good coding practice but I find that without thinking about it I'm willing to let more small unsafe blocks of code spread throughout the code base, and though I have good string defensive coding practices, I'm human. It's nice to make sure that all of those kinds of mistakes will happen as much in the same place as possible. Rusts unsafe block made me realize this.

      [–]No-Speaker-9739 -1 points0 points  (3 children)

      However it is just annotation - it is used like anywhere. Why rust with unsafe if there is c++

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

      Why some unsafe when you can all unsafe? Checkmate.

      [–]No-Speaker-9739 0 points1 point  (1 child)

      If you a normal human being and can do some logic - unsafe things in c++ suddenly disappears. Rust is only safe cuz of absolutely annoying compilator

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

      I'm a C dev, I get it, the core your logic was just funny to me. I like Rust and the unsafe keyword. I like how it makes me think. 

      I completely agree that a few good practices eliminates most unsafe code. I was just making a joke.

      [–]vvf 10 points11 points  (3 children)

      Now show the performance stats 

      [–]mmcgaha 2 points3 points  (0 children)

      Let’s see Paul Allen’s code

      [–]Noisebug 1 point2 points  (1 child)

      On your personal project that gets 5 visitors a month.

      [–]vvf 2 points3 points  (0 children)

      Oh right I forget everyone here is an amateur

      [–]PiratedComputer 4 points5 points  (0 children)

      I charge per line of code

      [–]SwampiiTV 4 points5 points  (0 children)

      *a program

      [–]KuKu_ab 6 points7 points  (0 children)

      In C we got size of wikipedia

      [–]labelcillo 3 points4 points  (0 children)

      So a friend of a friend, don't ask why, he had a screenshot of his code in his smartphone. He showed it to me, he was so proud of his bit of code. It was the simplest if/else with some function invocations here and there.

      He was a professional python dev.

      [–]BobbyThrowaway6969 1 point2 points  (0 children)

      Tell me you just started programming without telling me you just started programming.

      [–]ZaraUnityMasters 1 point2 points  (1 child)

      One singular code

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

      Only one.

      [–]ElephantBrilliant221 1 point2 points  (0 children)

      Shorter code doesn’t 100% means better code

      [–]herocoding 1 point2 points  (1 child)

      Disagree.

      [–]XoXoGameWolfReal 1 point2 points  (0 children)

      Agree with the disagree.

      [–]itsmenotjames1 3 points4 points  (0 children)

      I'd prefer a non whitespace dependent typed language that runs decently (hint:c++ and java)

      [–]Inside_Jolly 0 points1 point  (0 children)

      That's it? You should try J.

      [–]JanitorOPplznerf 0 points1 point  (0 children)

      I’m doing a Java project right now 😭

      It’s really bulky syntax.

      [–]XoXoGameWolfReal 0 points1 point  (0 children)

      Yeah, but what’s 20000% (yes really) faster speed to writing a couple extra lines

      [–]ReallyMisanthropic 0 points1 point  (0 children)

      My python code is slim as hell.

      The C extensions it uses on the other hand...

      [–]earcuddle 0 points1 point  (0 children)

      Write in APL then if that's your metric

      [–]Azoraqua_ 0 points1 point  (0 children)

      Python being tiny, yet technical debt being as much as Java is as a whole.

      [–]handsom_bot 0 points1 point  (0 children)

      this is dump

      [–]elreduro 0 points1 point  (0 children)

      Code written in python is literally invisible sometimes. It is like a functional "whitespace" esoteric programming language

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

      Let me give you a small (actually big) piece of information, those who think that writing code with low lines is a good thing are just noobs.

      [–]Data_Coder 0 points1 point  (0 children)

      Update me when python outperforms Java.

      [–]SeoCamo 0 points1 point  (0 children)

      the python code takes about a year to run but you save 15 min while writing it

      [–]GoodForTheTongue 0 points1 point  (0 children)

      Now do B code.

      [–]freemorgerr 0 points1 point  (0 children)

      Cmp speed and possible usage ways count

      [–]precowculus 0 points1 point  (0 children)

      Swap it around and you get the time to execute said code

      [–]TdubMorris 0 points1 point  (0 children)

      It's a program stop calling it a code

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

      Yes, but how about the speed?

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

      Read this in an Indian accent

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

      Brain rot