Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 14 Apr 2012
Offline Last Active Jul 22 2012 03:07 PM

#4960219 Static is evil, supposedly

Posted by on 17 July 2012 - 04:47 PM


So i'm a student in information systems, or to put it more simply java based website for corporation.
Recently I've taken quite some interest in making a minecraft clone, because I like learning new stuff and I want a better minecraft.

I'm working on the graphical engine and I noticed that using a static class containing
  • view distance
  • Sector size
  • installation paths
  • an array of Texture (slick object)
Could be really usefull, instead of having to pass down and down those data.

Now, what do you think? is this a good idea to do this? in my line of work static attributes or classes are considered as evil.
It messes up with our unit testing and mocking.

As my teacher say, if you want to do static classes go back to procedural languages, you are doing objects now.

But this is not a information system, so does these rules still apply?


#4931582 Going to Learn Java - What should I expect?

Posted by on 15 April 2012 - 05:32 PM

Do you know any other languages?

because learning an object oriented language first is pretty hard.
first would learn a procedural language such as C;