ProgrammerHumor

elephantIsMostAbusedAnimalInIT

elephantIsMostAbusedAnimalInIT
https://i.redd.it/m3fguds9jacf1.jpeg
Reddit

Discussion

abscando

More like tildeMostAbusedSymbol, sometimes it's an operator, an alias or a syntactic element. You know this little squiggle has caused a lot of people a lot of grief.

11 hours ago
Widmo206
:gd::py:

And sometimes it's the home directory

10 hours ago
TOMZ_EXTRA
:j::lua::js:

And it's almost impossible to type on a Czech keyboard!

10 hours ago
rosuav

I should build a language where you do database queries with ~/SELECT .... /~ and call it the elephant operator. The language would come with PostgreSQL bindings and nothing else, because elephants.

7 hours ago
TacticalFaux

It's similar to the symbol for approximation which also is accurate for what it's doing cause the integer division approximates the actual value. So that's how I would remember.

But sure I guess you can also throw elephant trunk in there lol.

7 hours ago
Ronin-s_Spirit
:js:

Don't mind me with my parseInt(22/7). The operator seems neat but I don't know if adding more and more operators to a flexible language is a good idea, this might not be clear to read.

4 hours ago
Eva-Rosalene
:ts::c::bash::powershell:

Why not just Math.trunc(22/7), why convert to string and then parse it, risking getting scientific notation instead of normally formatted number?

parseInt(1000000000000000000000000 / 3) // => 3
1 hour ago
Ronin-s_Spirit
:js:

Where did you see me convert it to a string? Also I just said the first working thing that came to mind.

50 minutes ago
MattiDragon

In JS parseInt implicitly converts its argument to a string before parsing

25 minutes ago
Eva-Rosalene
:ts::c::bash::powershell:

Where did you see me convert it to a string?

Implicitly, when passing as argument to parseInt

21 minutes ago