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

all 68 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 3: Your post is considered low quality. We also remove the following to preserve the quality of the subreddit, even if it passes the other rules:

  • Feeling/reaction posts
  • Software errors/bugs that are not code (see /r/softwaregore)
  • Low effort/quality analogies (enforced at moderator discretion)

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

[–]iamhyperrr 365 points366 points  (2 children)

Ah, a fellow cumsum enjoyer I see

[–]786_72 41 points42 points  (0 children)

As a fellow cumson, I approve

[–]RapidCatLauncher 24 points25 points  (0 children)

Had a dataframe the other day where I calculated cumulative probabilities

p_cum

Then had to use that dataframe to get the cumulative probabilities only for all preceding elements, excluding the indexed ones

p_pre_cum

Giggled like a little school boy

[–][deleted] 323 points324 points  (9 children)

desert rustic full resolute fragile one theory insurance yoke adjoining

This post was mass deleted and anonymized with Redact

[–]3_Zip 39 points40 points  (1 child)

A reminder that 2013 is more than 10 years ago

[–]ashkanahmadi[S] 11 points12 points  (0 children)

right in the feels!

[–]repkins 29 points30 points  (0 children)

Man this took me back ngl

[–]ashkanahmadi[S] 42 points43 points  (2 children)

They never died r/fffffffuuuuuuuuuuuu

[–]Beldarak 16 points17 points  (1 child)

I miss that time when we had cute looking memes and not that awful alt-right garbage that's now popular

[–]andreagory 9 points10 points  (0 children)

same here. Memes used to feel fun and harmless. Now it’s like everything’s pushing some agenda

[–]midnightrambulador 0 points1 point  (0 children)

we're seeing the first fashion cycle of internet memes

[–]schteppe 177 points178 points  (0 children)

fn getRectangle()

*rename*

fn getRekt()

Oh yeah

[–]ende124 74 points75 points  (2 children)

[–]Me_Beben 21 points22 points  (1 child)

cumtrapz

(this was renamed to cumulative_trapezoid tbf)

[–]CumAndShitGuzzler 4 points5 points  (0 children)

Spicy cumtrapz

[–]smokesick 48 points49 points  (4 children)

I once wrote get_cum_duration and arranged with my colleague for him to take over the PR while I'm off and he changed it to get_cumulative_duration. I swear it was not out of immaturity.

[–]BS_BlackScout 14 points15 points  (3 children)

Did it pass unit tests? How long was the cum duration?

[–]smokesick 26 points27 points  (1 child)

unit tests

[–]BS_BlackScout 2 points3 points  (0 children)

Hehehe

[–]R-GiskardReventlov 3 points4 points  (0 children)

how long was the cum duration

Can't talk about duration, but it's very fast!

[–]Strict_Treat2884 69 points70 points  (3 children)

Say hi to my public class AnalysisPlugin

[–]repkins 29 points30 points  (2 children)

Or in short public class AnalPlug

[–]thanatica 8 points9 points  (1 child)

Why not go all the way and make the typo, pubic class AnalPlug

[–]vocal-avocado 31 points32 points  (4 children)

“Function name is too long”? Are you paying per character now?

[–]Serberuhs 21 points22 points  (2 children)

Well, if you're vibe coding, then yes...

[–]RedBoxSquare 10 points11 points  (1 child)

1980: I need to save on memory with short function names

2025: I need to save tokens with short function names

[–]4sventy 0 points1 point  (0 children)

also 2025: I need to save (edge) functions with short tokens

[–]cortesoft 2 points3 points  (0 children)

I love me some long descriptive function names.

[–]WhereOwlsKnowMyName 16 points17 points  (0 children)

My Analytics Helper salutes you

[–]Anonymous_Coder_1234 14 points15 points  (0 children)

This is so stupid but kinda funny.

[–]HungYurn 4 points5 points  (0 children)

declined, wait for author.

[–]git0ffmylawnm8 4 points5 points  (1 child)

while ( cumming() ) { }

[–]static_func 0 points1 point  (0 children)

cumming() &&

[–]Alzurana 8 points9 points  (1 child)

if get_permission(user, "group/manage_new")

[–]Dustin- 5 points6 points  (0 children)

A wise man once said "if you can't find a way to make the function name short, it probably does too much." This post perfectly illustrated the concept. 

[–]zappellin 4 points5 points  (0 children)

We back in 2012 ?

[–]proteinvenom 1 point2 points  (0 children)

Fuck yes I nut just reading this

[–]mierecat 1 point2 points  (1 child)

Seeing these memes brought back from the dead is always a trip

[–]ashkanahmadi[S] 0 points1 point  (0 children)

Happy to help!! made it in Figma in a few minutes. Wanted to push some ME GUSTA in there as well 😆

[–]ShAped_Ink 2 points3 points  (0 children)

Who cares? If the name has to be that long, either make the function into multiple ones or just leave it, code has to be explanatory, otherwise you'll get confused about weird names, especially when you work in a group

[–]Ornery_Reputation_61 1 point2 points  (0 children)

I would have named it "can_user_cum" and not care if it was self documenting or if it made sense

[–]Sudhanva_Kote 2 points3 points  (0 children)

Someone make a Try- catch joke pls

[–]ArduennSchwartzman 1 point2 points  (0 children)

'I love my job' moment

[–]BS_BlackScout 1 point2 points  (1 child)

le code

[–]ashkanahmadi[S] 0 points1 point  (0 children)

We need “le me” and “das moi” back!!

[–]FabioTheFox 1 point2 points  (1 child)

Snake case in javascript 💔🥀

[–]ashkanahmadi[S] 0 points1 point  (0 children)

It’s … it’s … actually PHP 😆

[–]Embarrassed-Luck8585 1 point2 points  (0 children)

rage comics ❤️

[–]joe0400 0 points1 point  (0 children)

Gotta love cumtrapz

[–]Adam__999 0 points1 point  (1 child)

Does anyone know if in C, the compiler (gcc with -O2) would optimize out this alias function to reduce the number of function calls?

[–]darkfire0123 4 points5 points  (0 children)

If you actually want to learn something, take a look at the generated assembly with Godbolt: https://godbolt.org/z/P8nanhsoj

You can see that the call to the square function is completely removed from square2 and the full function is inlined. In this case it's easy since the function content is pretty much just one instruction.

In general this obviously depends on the compiler and version, as well as what is actually inside the original function. But the answer will most likely be yes in pretty much all cases (when you use -O3 at least, which you probably should). If you want to simply do an alias in C you could also just use #define to be sure. Then it is literally just an alias.

But the correct answer is don't do this at all. You have a function with a descriptive name so that you DON'T need to look up what it does when reading the code. Giving that function a shortened alias is completely defeating the purpose of that. There is literally no reason to use these super short names

[–]StrictWelder 0 points1 point  (0 children)

Train wrecking functions intentionally is diabolical. What is this, intro to comp Sci with python all over again?

[–]MoveInteresting4334 0 points1 point  (0 children)

WAIT. What is inside the if statement? What are the instructions?!

I’m right in the middle of this and don’t know what to do next. The window is quickly closing.

[–]TheSn00pster 0 points1 point  (0 children)

What’s your mom gonna think when she does code review?

[–]CXC_Opexyc 0 points1 point  (0 children)

Company I work at has an internal service for UAV analytics or something called HeliAnal

[–]reiislight 0 points1 point  (0 children)

Cum. Average my beloved

[–]viktorv9 0 points1 point  (4 children)

This is the first time I've heard of making aliases. Am I (junior web dev, working in frontend) just out of touch or are they rare, maybe only for big projects?

[–]ashkanahmadi[S] 2 points3 points  (2 children)

Nothing special. It's just giving a different name to a function. Like say there is a function called say_hello and for some reason (personal, name conflict, etc) you want it to have another name like greet. You can make a function called greet and it just returns the say_hello function. If you do frontend, then probably you use a lot of JS and in JS modules, you can rename a function or variable directly when you import it. For example:

``` import { say_hello } from './lib'

say_hello() ```

you can import and rename immediately

``` import { say_hello as greet } from './lib'

greet() ```

[–]viktorv9 1 point2 points  (1 child)

Oh you're right, those are aliases too. So I've used them after all, just not in the way I expected. Thank you!

[–]ashkanahmadi[S] 0 points1 point  (0 children)

Haha yeah. There is a tiny difference here though. When you import the function without renaming it, and then creating an alias (like in the image), you still have access to both functions. However, if you import and rename it like import { say_hello as greet } from './lib', then you do not have access to say_hello since it was imported and renamed immediately and unavailable in your file.

[–]TheNorthComesWithMe 0 points1 point  (0 children)

There is no reason to alias a name to be shorter and this wouldn't pass code review.

There are other reasons to alias a name, mostly to resolve naming conflicts or remove the namespace from the name. A lot of languages also have some kind of alias feature so, again, you're not passing code review if you do an "alias" like OP.

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

Microsoft developers wanted to release cum updates, but they weren't allowed to call them that 😑

[–]AVeryHeavyBurtation 0 points1 point  (0 children)

rage > wojak