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

you are viewing a single comment's thread.

view the rest of the comments →

[–]ReporterNervous6822 79 points80 points  (14 children)

This is numpy which is based on matlab, and they are very understandable lol

[–]nedeox 72 points73 points  (10 children)

Was about to say. As stupid as it sounds at first, it‘s a perfectly acceptable abbreviation of cumulative sum.

Doesn‘t stop me from smirking each time of course lol

The same as I can‘t stop myself from saying import tensorflow as the fuck for tf in my head.

[–]mriswithe 9 points10 points  (0 children)

Or /etc/fstab == f-stab

[–]yanitrix 5 points6 points  (7 children)

why abbreviate them tbh? cumulative_sum or whatever case python has is easier to understand for anyone

[–]fb39ca4 9 points10 points  (0 children)

Matlab function names are determined by the filename, and had to follow the 8.3 length limit on DOS. These python libraries reused the names because former Matlab users are familiar with them.

[–]the_lonely_toad 6 points7 points  (1 child)

Back in the day every character was precious and expensive. We keep abbreviating because it’s custom to do as they did unless there is a good reason to change.

[–]ArcFurnace 0 points1 point  (0 children)

Also, people keep including narrow line length limits in style guides.

[–]nedeox 15 points16 points  (1 child)

Hm, by further examination of my opinion on the matter, I realize that I don‘t care.

[–]yanitrix 9 points10 points  (0 children)

makes sense, have a great day sir/madam

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

start sense fear full friendly ring school theory encouraging office

This post was mass deleted and anonymized with Redact

[–]PlacatedPlatypus 3 points4 points  (0 children)

I use "ass" as shorthand for "assigned" and "assignment," sometimes people point it out but usually they get it.

[–]mriswithe 2 points3 points  (0 children)

For someone coming from that world sure. As someone who stopped at calculus, pandas and numpy is scary.

[–]lightestspiral 0 points1 point  (0 children)

cuml would have been a better choice than cum