by biston7 · 8y ago · 0 comments
Many times that doesn't matter, but to me it's important to have a supple and complete understanding of the underlying ideas. Java fails at that.
When I referred to memory I meant more than malloc and free. It's things like understanding how an array of ints is laid out in memory and what happens when you treat it as an array of chars instead. If you talk about this to a Java programmer, their eyes are likely to cross.
> It's things like understanding how an array of ints is laid out in memory and what happens when you treat it as an array of chars instead.
This is one of said landmines, as the size of both is architecture/compiler specific. The only thing you learn by stepping on this one is, "use fixed-width integers when you care about exactly how many bytes the value is."