ProgrammerHumor

addingNumbersIsNowPlantingMalware

addingNumbersIsNowPlantingMalware
https://i.redd.it/yvqp8iy4qgef1.png
Reddit

Discussion

ProgrammerHumor-ModTeam
:ath:

Your submission was removed for the following reason:

Rule 1: Posts must be humorous, and they must be humorous because they are programming related. There must be a joke or meme that requires programming knowledge, experience, or practice to be understood or relatable.

Here are some examples of frequent posts we get that don't satisfy this rule: * Memes about operating systems or shell commands (try /r/linuxmemes for Linux memes) * A ChatGPT screenshot that doesn't involve any programming * Google Chrome uses all my RAM

See here for more clarification on this rule.

If you disagree with this removal, you can appeal by sending us a modmail.

10 hours ago
JackReact

Not the add function with 3 parameters calling the one with 2 twice.

This is "paid by line of code" kinda shit.

14 hours ago
TheBrainStone
:cp::j::bash::msl::p:

// Add the numbers 1, 42 and 69 and return the result (112) add( // Call the function add with the following parameters 1, // The number 1 42, // The number 42 69 // The number 69 ); // End of function call

Am I doing this right?

12 hours ago
Sollder1_
:j:

I am sorry, but we have to let you go... to manage those suckers

12 hours ago
TheBrainStone
:cp::j::bash::msl::p:

Promotion? I'm in :D

12 hours ago
menzaskaja

thor is that u

12 hours ago
TheBrainStone
:cp::j::bash::msl::p:

Shhhhhhh. You're not supposed to tell anyone!

12 hours ago
TooSoonForThePelle

If I was paid strictly per line I'd move those comments on separate lines but ya you're on the right track! Keep up the good with buddy!

11 hours ago
Pritesh190801

Yes it's called merge add. Please re take your algorithms class. /s

12 hours ago
thegreenfarend

Same lines of code right?

13 hours ago
Nil4u

What no C++17 does to a mf

template<typename... Args>

auto add(Args... args) {

return (args + ...);

}

14 hours ago
Potterrrrrrrr

C++ my beloved

14 hours ago
nevemlaci2
:cp:

Fold expressions my beloved

10 hours ago
The-Dumb-Questions

Weapons of Math Destruction

14 hours ago
[deleted]

[removed]

14 hours ago
kryptobolt200528

This is an Indian Web series btw, but yeah literally majority of movie industries show bullshit in the name of hacking and stuff, ik that what they do look cool but this is just too much bullshit

13 hours ago
Sad_Juggernaut4812

So that's why there's some currying going on.

10 hours ago
WhereOwlsKnowMyName
:ts:

HR asked the IT team for a code snippet for their power point presentation video

14 hours ago
phil_davis

13 hours ago
Big-Cheesecake-806

Where is  double add(double x, double y, double z, double a) {     return add(add(add(x, y), z), a); }  ???? 

14 hours ago
1T-context-window

I would just write a recursive function because I'm a genius and have auto scaling stack in the cloud

14 hours ago
menzaskaja

```py def add(x: int, y: int): return x + y

def add_many(*args): final_sum = args[0] for num in args[1:]: final_sum = add(final_sum, num) return final_sum ```

12 hours ago
ClipboardCopyPaste
:js::cs:

Double Malware Overloading

14 hours ago
legaltrouble69

Dont watch bad series 4/10

14 hours ago
Pubgisbanned
:py::js::cp:

What's the series

12 hours ago
Same-Ad600

Special ops 2

12 hours ago
howreudoin

Where is this from?

13 hours ago
rover_G
:c::rust::ts::py::r::spring:

Hey at least it’s written in a real language and appears to compile

13 hours ago
LolaLulLol

I just watched this series and whole time I was like wtf man

13 hours ago
Pubgisbanned
:py::js::cp:

What's the series

12 hours ago
da2Pakaveli
:cp::cs::j::py:

Special Ops 2

11 hours ago
ovr9000storks

It's clearly just some support code /s

14 hours ago
Excellent_Tie_5604

Always has been

13 hours ago
Piotyras

Hey OP, you would enjoy r/itsaunixsystem - exactly for this type of thing

13 hours ago
Public-Eagle6992

That has to be on purpose. I love the thought that they went to some programmer and just asked "can you give us some really stupid code?"

13 hours ago
calculus_is_fun
:js::p::bash:

Don't let your computer do an excessive amount of additions! They aren't designed to do that.

13 hours ago
VecroLP

Did piratesoftware write this?

11 hours ago
faziten

it is malware just because she defined functions with type double parameters and then just cast them to integer.

Wasting compute power, memory, limiting range just to add 3 and 4.

13 hours ago
mrrobot01001000

The only show/film/tv-series with real working (hacking) code I know is Mr robot.

13 hours ago
cainhurstcat
:j:

"Become a certified hacker in our 3 month boot camp"

13 hours ago
DanSavagegamesYT
:py::j::ts:

Why do they look so focused 😭

12 hours ago
piberryboy
:p:

I mean, it makes sense to have math functions. Timed attacks. Decryption, maybe. File manipulation. Or maybe just to make the code seem more legit.

12 hours ago
Shadow9378
:py::cs::kt::js::j::gd:

This is maybe the worst stock code ive ever seen

12 hours ago
AnimateBow

Even movies know anything in C is malware

11 hours ago
ascii-16

Ofc Bollywood

11 hours ago
perringaiden

I always love how they have a progress bar, while writing code...

11 hours ago
LukeZNotFound
:ts:

Recursion with that and you have an infinite loop creating more and more numbers.

Everything can be malware, change my mind.

10 hours ago
adlbd
:cp:

The implicit conversion from double to int hurts

10 hours ago