• ###### xehpukcommented on "Are You Playing Banjo?" java solution

Because converting more than 1 letter to upper case is more computationally expensive than converting 1 letter to upper case.

• ###### Matytoonistcommented on "Are You Playing Banjo?" java solution

how so? /genq

• ###### Matytoonistcommented on "Are You Playing Banjo?" java solution

according to my introduction to logic (or was it structired programming? cant remember) class, doing that is considered "defensive programming" and isn't a good practice.
to clarify, i think they mean doing checks like that when they arent needed. if the excercise says the input will always be a valid string, then you shouldnt do a check for that

Great

• ###### xehpukcommented on "Are You Playing Banjo?" java solution

Not sure what you're trying to say. But this solution is wasteful.

• ###### lcssathlercommented on "Are You Playing Banjo?" java solution

strings are immutable, there's no differece converting the whole name or fisrt char if youre not reassociating.

• ###### JManikizacommented on "Are You Playing Banjo?" java solution

Do we not need curly brackets for if statements?

Does this only work because the else statement is that final thing running?
looking at it (or the lack there of) is making my skin crawl!

• ###### Wavey1287commented on "Are You Playing Banjo?" java solution

LOL there's a .startsWith() function??

• ###### Chrono79commented on "Are You Playing Banjo?" java solution

Please use spoiler flag next time.

• ###### med2992commented on "Are You Playing Banjo?" java solution

This comment is hidden because it contains spoiler information about the solution

• ###### dark123ycommented on "Are You Playing Banjo?" java solution

Although I can understand the function but it is not my choice.
It confused me.

• ###### BAAMMMcommented on "Are You Playing Banjo?" java solution

Its allways better to check like
if(name == null) throw new IllegalArgumentException("name must not be null");
even if the description says that only valid strings appear

• ###### Matteo Zatteracommented on "Are You Playing Banjo?" java solution

Names given are always valid strings.

• ###### taao84commented on "Are You Playing Banjo?" java solution

name is an object, so I think checking for null should be done.

• ###### roya3000commented on "Remove Zeros" kata

awesome kata)))