MarteEngine icon indicating copy to clipboard operation
MarteEngine copied to clipboard

propagate better coding style?

Open thaaks opened this issue 13 years ago • 3 comments

Not 100% sure about this one and sorry for bringing this issue back. But the last days I thought it would be better to remove the public instance variables and make them private or protected and provide standard getter and setter methods. Though I do see the advantage of simply saying "myEntity.x = 50;" it is still bad coding style. What is your opinion here?

thaaks avatar Mar 24 '11 10:03 thaaks

lack of automatic get or set in Java is a problem for me.. we can address it using something like project lombdok (http://projectlombok.org/), but we can force marteengine to use it?

I think is better to move this discussion to 0.4 or 0.5 version of MarteEngine, because we need to work a lot before have something stable

Gornova avatar Mar 24 '11 16:03 Gornova

Never heard about lombok but that's pretty cool!

With this project at hands I agree: let's move the issue (once more) to 0.4 or 0.5 and think about integrating lombok usage into Marte.

Nice find, Gornova!

thaaks avatar Mar 24 '11 18:03 thaaks

ok, moved to 0.4

Gornova avatar Mar 24 '11 20:03 Gornova