2 ms·
> but I had very hard time to understand why I needed to write classes, instantiate them, make property private Well, its all very arbitrary. But the idea is
by NoahZuniga 1y ago
> but I had very hard time to understand why I needed to write classes, instantiate them, make property private
Well, its all very arbitrary. But the idea is that people expect these practices to lead to better code, so you should follow them. There isn't really anything deep to understand. You just do it like that.
That's not a very fulfilling answer, so it's tempting to want to know why people think these practices lead to better code, but I don't think that's really that important for "understanding" programming.