please delete
Printable View
please delete
If all the methods are static, why is this an Action?
Just return dayOfWeek()Code:public static int getDay() {
switch (dayOfWeek()) {
case 1:
return 1;
case 2:
return 2;
case 3:
return 3;
case 4:
return 4;
case 5:
return 5;
case 6:
return 6;
case 7:
return 7;
}
return 0;
}
This. And the Player variables being added are a bit strangely named.Quote:
Originally Posted by Cody_ [Only registered and activated users can see links. Click Here To Register...]
i mean, i like the idea, but the execution is a bit......
sick code lad
nice
will use
Tried this, but with the return of the dayofWeek, it wouldnt parse to an int for the system to understand. I tried a few different ways to parse it as an integer to set, but everytime it threw it as 0 as it wasnt converted to a variable for some strange reason.Quote:
Originally Posted by Cody_ [Only registered and activated users can see links. Click Here To Register...]
Player variables are done weirdly because there are already variables in my system that are in use for more common names.Quote:
Originally Posted by Makar [Only registered and activated users can see links. Click Here To Register...]
do you have any suggestions? i am orginally a php developer, so i been leaning towards that structure and havent learned quite everything with java, in terms of shortening code or other helpful ways. if you have something that would help, i would appreciate help to improve!Quote:
Originally Posted by Luke132 [Only registered and activated users can see links. Click Here To Register...]
The variable names should at least be camelCased/snake_cased. And having invest, investt, and investtt regardless of whether they are used for something else is very non-descriptive and confusing.Quote:
Originally Posted by TheQuantum [Only registered and activated users can see links. Click Here To Register...]
to be honest, the only thing not named accordingly is investtt, the rest are named accordingly to their reason. savings, lastreturn, dailyinvest and streak all labelled to what they are doing, it wouldnt take more than 5 seconds to swap that investtt to something casual. i guess i probably should've camel cased lastReturn and dailyInvest, i can change those small additions. to be fair, this is one of 3 investment systems i have built and/or building, and I'm used to php syntax naming.Quote:
Originally Posted by Makar [Only registered and activated users can see links. Click Here To Register...]
I really like the idea, stealing this and converting it, going to improve on this but thank you for the contribution!