At 7:49, the "if" and "else" blocks duplicate the same thing, and the "contains" check is kinda redundant. So you could have written a 1-liner: String name = beer.getName().replace(" ", "");
I don't know why people start advocating for immutability over mutability. All these speakers should educate the people about the concepts of mutability & immutability rather suggesting immutability over mutability. Do these people themselves understand that good coding is not possible by neglecting the other, so all the coders must understand the balanced usage of these two important concepts. And rather suggesting the coders about what they should do or shouldn't, these people educate about the strengths of both the sides & then let the coders decide which fits well in what situation. Who can do the sensible coding using either pure immutability or pure mutability?
At 7:49, the "if" and "else" blocks duplicate the same thing, and the "contains" check is kinda redundant. So you could have written a 1-liner:
String name = beer.getName().replace(" ", "");
I guess I'm kinda randomly asking but does anyone know a good place to watch newly released tv shows online?
@Clayton Eden Flixportal =)
@Jax Ralph thanks, I went there and it seems to work :) Appreciate it!!
@Clayton Eden Happy to help xD
I don't know why people start advocating for immutability over mutability. All these speakers should educate the people about the concepts of mutability & immutability rather suggesting immutability over mutability. Do these people themselves understand that good coding is not possible by neglecting the other, so all the coders must understand the balanced usage of these two important concepts. And rather suggesting the coders about what they should do or shouldn't, these people educate about the strengths of both the sides & then let the coders decide which fits well in what situation. Who can do the sensible coding using either pure immutability or pure mutability?
I totally agree with you
Sorry but this mutator is not implemented correctly. Good idea bad implementation.