4 ms·
C is a knife. You expect knives to cut you, so you handle them carefully. Except that C is sometimes a knife with another knife hidden in the grip and it you d
by csours 6y ago
C is a knife. You expect knives to cut you, so you handle them carefully.
Except that C is sometimes a knife with another knife hidden in the grip and it you don't handle it just right, the hidden knife will also cut you. (Thinking of libraries/other people's code)
- craftinator 6y agoLol I love this analogy. It's pretty much like Darth Maul's lightsaber. Yeah, it'll cut through anything; even stuff you aren't looking at
- virtue3 6y agoJust like with C code, you better be force(memory) sensitive to even think of wielding the space wizard laser sword.
- csours 6y agoAh, pointers, not as clumsy as objects; an elegant weapon for a more civilized age. (I know objects are actually just fancy pointers)
- saagarjha 6y agoNote that there are materials that resist lightsaber blades: https://starwars.fandom.com/wiki/Lightsaber/Legends#Lightsaber-resistant_materials https://starwars.fandom.com/wiki/Lightsaber/Legends#Lightsab...
- pjmlp 6y agoAnd if you make too much pressure on the handle, small spikes will be thrown in all directions.