Menu
If debugging removes bugs, programming adds them.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Pass-by-value Memes
Posts tagged with Pass-by-value
Pass Me The Salt... But How?
Programming
C++
Javascript
Java
Python
9 months ago
347.1K views
1 shares
That moment when even dinner conversations turn into technical debates. Normal people ask for salt, but programmers immediately need to know the implementation details. Pass-by-value makes a copy (enjoy your own salt shaker), while pass-by-reference just hands you the original (here, use mine). Ten years into coding and I still overthink simple interactions like this. The real question is whether the salt has immutable properties...
Pass The Salt... But How?
Programming
C++
Java
Javascript
11 months ago
391.6K views
1 shares
Dinner conversation takes a nerdy turn when someone asks for salt and the programmer at the table immediately needs to know the parameter passing method. Just another day of being unable to turn off the code brain. The rest of the family has learned to specify their variable scoping before requesting condiments.
Today's picks
Samsung 49" Odyssey G93SC Series Curved Gaming Monitor, QD-OLED, 240Hz, 0.03ms, DQHD, G-Sync Compatible, FreeSync Premium Pro, Adjustable Stand
Affiliate
$899.99
It's Not Wrong, It's Tragically Accurate
Programming
314.1K views
8 months ago
GearScouts.com
Sponsored
Power stations