Idk why but i get the feeling that the scripter rank isn't as important or isn't taken that seriously as staff ranks etc. I think the scripter rank should have a shadow like the moderator, sponsor text.
Looks good but make use of naming conventions. It helps make understanding it easier for the person reading it.
For example your method name is using correct naming conventions. Use mixed casing for parameter values with a prefix such as a or an. variables use mix casing as well and constants should utilize capitalizing each word with a underscore.
for example:
public int getBankItemByName(aItemName){
int itemID = 0;
for (Item singleItem : client.getBank().getItems()) {
if (single_item.getName().equals(aItemName)) {
itemID = singleItem.getId();
return itemID;
}
}
return null;
}
an int cant return null change that to -1
and use #equalsIgnoreCase(); instead of #equals();
Opps my bad. Thanks for catching that :P
Looks good but make use of naming conventions. It helps make understanding it easier for the person reading it.
For example your method name is using correct naming conventions. Use mixed casing for parameter values with a prefix such as a or an. variables use mix casing as well and constants should utilize capitalizing each word with a underscore.
for example:
public int getBankItemByName(aItemName){
int itemID = 0;
for (Item singleItem : client.getBank().getItems()) {
if (single_item.getName().equals(aItemName)) {
itemID = singleItem.getId();
return itemID;
}
}
return -1;
}
I'm happy to see you took the initiative and posted this thread. There was a lot of confusion going around regarding the integrity of the owner(s). I'm glad now that you have addressed the problems and are working on them.
I wish you and the administration the best of luck with your future endeavors. I will be looking forward to where this site goes. The future looks bright.
Not everyone can be a good coder. Sometimes you got to accept that and do something else which is better fit for you.
The mentality that anything is possible with hard work doesn't apply in programming.
(2x-3)(2x-1)
adding explanation -
take factors of the a and c term you get:
4 = 2 x 2 or 1 x 4
3 = 1 x 3
because the equation follows this form ax2 - bx + c then
the numbers are arranged in this fashion (x - h)(x - k)
we try the various options
(2x-1)(2x-3)
(1x-1)(4x-3)
the one that gives us the right answer is (2x-3)(2x-1)