Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant Generation #13

Open
90301 opened this issue Jun 7, 2017 · 0 comments
Open

Constant Generation #13

90301 opened this issue Jun 7, 2017 · 0 comments

Comments

@90301
Copy link
Owner

90301 commented Jun 7, 2017

Option 1:

private const string NAME_CONST = "name";
public static ColVariable NameColVariable = new ColVariable(NAME_CONST, qmd);
...
jt1.addSameColJoin(NAME_CONST);

Option 2:

public static ColVariable NameColVariable = new ColVariable(NAME_CONST, qmd);
...
jt1.addSameColJoin(NAME_CONST);

Personally I'm leaning more towards constant generation as it might be easier to maintain the code if you don't have to change the text in multiple places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant