It is currently 08 Sep 2025, 21:11
   
Text Size

Do you want CardPrinted renamed into PaperCard?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

What do you consider best class names for out-of-game entities?

Poll ended at 02 Mar 2013, 07:33

PaperCard, PaperToken
2
50%
CardPrinted, TokenPrinted
1
25%
Card, Token (and have ingame-card class renamed)
1
25%
 
Total votes : 4

Do you want CardPrinted renamed into PaperCard?

Postby Max mtg » 25 Feb 2013, 07:33

Recently I made IPaperCard interface, and like the idea so much that would love to rename all out-of-game cards and tokens to Paper*.

Would you call this a good idea?
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: Do you want CardPrinted renamed into PaperCard?

Postby moomarc » 25 Feb 2013, 17:46

Max mtg wrote:Recently I made IPaperCard interface, and like the idea so much that would love to rename all out-of-game cards and tokens to Paper*.

Would you call this a good idea?
What is the purpose of renaming them all? Is it just because you find it would be easier to interperet the usage in the code, or is there another reason? If it's for easier code reading, I don't mind either way.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Do you want CardPrinted renamed into PaperCard?

Postby Max mtg » 25 Feb 2013, 19:19

I think new names reflect closer the essence of the class.
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: Do you want CardPrinted renamed into PaperCard?

Postby friarsol » 25 Feb 2013, 19:21

Max mtg wrote:I think new names reflect closer the essence of the class.
I'd say OracleCard and OracleToken would reflect it even better, since the card on paper for older cards isn't necessarily the state of the Card officially.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Do you want CardPrinted renamed into PaperCard?

Postby Max mtg » 25 Feb 2013, 19:31

friarsol wrote:
Max mtg wrote:I think new names reflect closer the essence of the class.
I'd say OracleCard and OracleToken would reflect it even better, since the card on paper for older cards isn't necessarily the state of the Card officially.
No, they are not Oracle cards. ArtIndex, foil - aren't properties of oracle card. It is CardRules that might be named OracleCard, though it's current name seems good enough for now.
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: Do you want CardPrinted renamed into PaperCard?

Postby friarsol » 25 Feb 2013, 20:48

Max mtg wrote:No, they are not Oracle cards. ArtIndex, foil - aren't properties of oracle card. It is CardRules that might be named OracleCard, though it's current name seems good enough for now.
Ahh right, I always confuse those in my head for some reason. I'm pretty ambivalent here.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 50 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 50 users online :: 0 registered, 0 hidden and 50 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 50 guests

Login Form