Logo
There are 10 types of people in this world. Those who understand binary and those who don't.
  • 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 C++ Debugging
7 months ago 530.4K 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

WCV Portable Monitor 15.6 Inch 1080P USB-C HDMI Ultra-Slim Travel Monitor with Kickstand, Compatible with Xbox, Laptop, PC, Mac Phone, PS, Swich IPS Ultra-Thin Zero Frame Gaming Monitor

WCV Portable Monitor 15.6 Inch 1080P USB-C HDMI Ultra-Slim Travel Monitor with Kickstand, Compatible with Xbox, Laptop, PC, Mac Phone, PS, Swich IPS Ultra-Thin Zero Frame Gaming Monitor

Affiliate
$43.99
Understanding Client Requirement

Understanding Client Requirement

Programming
164.8K views 5 years ago
Help Plz

Help Plz

Programming
105.4K views 2 years ago