Not the add function with 3 parameters calling the one with 2 twice.
This is "paid by line of code" kinda shit.
// 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?
I am sorry, but we have to let you go... to manage those suckers
Promotion? I'm in :D
thor is that u
Shhhhhhh. You're not supposed to tell anyone!
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!
Yes it's called merge add. Please re take your algorithms class. /s
Same lines of code right?
What no C++17 does to a mf
template<typename... Args>
auto add(Args... args) {
return (args + ...);
}
C++ my beloved
Fold expressions my beloved
Weapons of Math Destruction
[removed]
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
So that's why there's some currying going on.
HR asked the IT team for a code snippet for their power point presentation video
Where is double add(double x, double y, double z, double a) {   return add(add(add(x, y), z), a); } ????Â
I would just write a recursive function because I'm a genius and have auto scaling stack in the cloud
```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 ```
Double Malware Overloading
Dont watch bad series 4/10
What's the series
Special ops 2
Where is this from?
Hey at least it’s written in a real language and appears to compile
I just watched this series and whole time I was like wtf man
What's the series
Special Ops 2
It's clearly just some support code /s
Always has been
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?"
Don't let your computer do an excessive amount of additions! They aren't designed to do that.
Did piratesoftware write this?
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.
The only show/film/tv-series with real working (hacking) code I know is Mr robot.
"Become a certified hacker in our 3 month boot camp"
Why do they look so focused ðŸ˜
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.
This is maybe the worst stock code ive ever seen
Even movies know anything in C is malware
Ofc Bollywood
I always love how they have a progress bar, while writing code...
Recursion with that and you have an infinite loop creating more and more numbers.
Everything can be malware, change my mind.
The implicit conversion from double to int hurts
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.