As vipo said, proper inheritance has made my life easier when using the same kotlin screeps interface he mentioned. Shouldn't be a surprise to anyone that proper code structuring is a great help in many factors such as readability and reducing code duplication. However due to the nature of Javascript, as opposed to for for example kotlin since that's the example already used by Vipo, I understand it may not be as straightforward so I also understand knightshade's position. In short, I believe that if it is properly implemented it can be a great addition.
Posts made by AWRyder
-
RE: Make Creeps and PowerCreeps inherit from a "Movable" class
-
RE: Screeps Discord?
My vote is on discord. Slack may be more familiar to developers but the AWRyder that's playing screeps is the gamer one, not the programmer version.
-
RE: PTR Changelog 2017-07-30
Indeed Room.mode still exists in the version of the documentation as of the time of this comment.
It is incomplete, but it is there, therefore I have to back tedivm on the fact that removing a property like that without a grace period of deprecation can lead to a lot of code crashes. -
RE: New Crowdfunding Campaign?
The idea of having a custom badge appeals me and would make me more than willing to help in this crowdfunding.