[Python-Dev] for Python + Java devs - real-world importance of the security model
Sean Felipe Wolfe
ether.joe at gmail.com
Sat Mar 8 11:27:25 CET 2014
Hello everybody,
I'm getting back into some Java game programming using the (excellent)
libgdx library. It's been a couple years since I've written Java
classes from scratch and it's got me thinking.
The Java code I'm going through has lots 'final' and 'static' variable
declarations, along with public vs private vs protected.
For those of you who are Java devs in the real world ... is this
security model really important? Is it protection against other
developers somehow modifying state in your program via another package
somewhere in the system?
I've been doing Ruby code for a couple years now, and Python for a bit
longer, and while I'm not a senior level dev by any means, I have yet
to see where this security model is actually useful. Why not just keep
it simple?
For now I am writing my classes with very little protection keywords
... with as little keywords as possible actually. But I'm just getting
started and I need to read up more.
Any Java devs out there care to chime in? I'm not trying to troll,
just interested in a response from those who appreciate KISS as a
general principle.
Thanks!
--
A musician must make music, an artist must paint, a poet must write,
if he is to be ultimately at peace with himself.
- Abraham Maslow
More information about the Python-Dev
mailing list