Logo
On the internet, nobody knows you're a dog.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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

Mutable-vs-immutable Memes

Posts tagged with Mutable-vs-immutable

Python Is More Confusing Than Low Level Languages

Python Programming Debugging C++
1 month ago 371.2K views 0 shares
Python Is More Confusing Than Low Level Languages
You know how C++ devs love to flex about pointers and memory management? Well, Python just casually said "hold my dynamically-typed beer" and made everything a reference to an object. Variables? Pointers. Function arguments? Pointers. That innocent list you passed to a function? Congrats, you just mutated it everywhere because surprise—it's a pointer! The irony is delicious: low-level languages explicitly tell you "hey, this is a pointer, handle with care" with their asterisks and ampersands. Python just smugly hides it all behind syntactic sugar while your integers are immutable but your lists are mutable and suddenly you're debugging why changing my_list in one function broke everything else. At least in C you know you're playing with fire. The "beginner-friendly" language strikes again with its reference semantics that trip up even experienced devs. Nothing quite like explaining to a junior why a = b doesn't copy the list.

Today's picks

I Are Programmer Cat T-Shirt

I Are Programmer Cat T-Shirt

Affiliate
$19.99
It Does Affect

It Does Affect

Linux
77.9K views 2 years ago
Zig Is The New Rust

Zig Is The New Rust

Programming
72.2K views 2 years ago