Logo
BASIC: Where GOTOs roam free.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp 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

Mutable-vs-immutable Memes

Posts tagged with Mutable-vs-immutable

Python Is More Confusing Than Low Level Languages

Python Programming Debugging C++
3 hours ago 50.8K 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.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

L-Shaped Ergonomic Keyboard Wrist Rest, Wrist R...

L-Shaped Ergonomic Keyboard Wrist Rest, Wrist R...
Ad Your support helps us pay for the extra RAM our Electron apps desperately need. 💾