Some notes on recent commits
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
2 posts
• Page 1 of 1
Some notes on recent commits
by Max mtg » 26 Dec 2012, 23:33
1.
Consider renaming to "isConrolledByAnyOf"* - that is we're looking for cards controlled by any player on list passed as parameter.
__
* or something else meaningful that would help to read code invoking this method as a natural language sentence
2.
I am very upset with checkstyle applied to gametype.java file. It has ruined the table-like declaration of the game formats. I shall rollback that.
2a.
same about magiccolor.java.
- Code: Select all
public static final Predicate<Card> hasListController(final List<Player> pList) {
Consider renaming to "isConrolledByAnyOf"* - that is we're looking for cards controlled by any player on list passed as parameter.
__
* or something else meaningful that would help to read code invoking this method as a natural language sentence
2.
I am very upset with checkstyle applied to gametype.java file. It has ruined the table-like declaration of the game formats. I shall rollback that.
2a.
same about magiccolor.java.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Some notes on recent commits
by moomarc » 27 Dec 2012, 05:32
Thanks for the idea. I knew my name sounded wrong but at the time I couldn't think of anything better. Will change later today.Max mtg wrote:1.This method has bad name, so that one cannot get what it does right from its name.
- Code: Select all
public static final Predicate<Card> hasListController(final List<Player> pList) {
Consider renaming to "isControlledByAnyOf"* - that is we're looking for cards controlled by any player on list passed as parameter.
__
* or something else meaningful that would help to read code invoking this method as a natural language sentence
-Marc
-

moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: LetMeThrough and 15 guests