It does no harm but good Generics are invariant so when the type is unknown ? denote to it when ? is expected u can't assign any value other than null which. It is helpful for the libraries designer not in the business context.
he shouldve been a lil more specific using wildcards. there is something called the put and get principle when using generics. when the generic is represented by a wildcard you cant add elements to it. the only way to add add elements is using the super keyword Lisr actually means
In java 8, you create a helper class in the interface with private static methods and private ctor. You leak out there is a helper class, but with no methods visible and no instatiation possible. Not ideal, private methods on interface are nice, but "there is nothing you can do" is too strong of a statement.
You are talking about clean coffee and readability and using jshell doing even no indentation to demo? You pretty much violated all about clean coffee in first 6 minutes
Covering these topics
1. Private interface methods.
2. Try with resources
3. Switch expression
4. Local variable expression.
Its more like new and cool features of Java rather than Clean codes.
Great talk, explanation is very clear.
This helped me to decide...
to avoid using type inference
Like with other tools, it depends what is the problem you are trying to fix with that
Very helpful session...simple & informative
Learned quite a lot with this presentation
it's a great talk very simple and it's attractive topics
This jshell thing is by an outstanding amount the worst development environment i have ever seen. Why would someone would want to write code in that?
@Dennis Griese Thanks for the info
It's rather about "new Java features" than clean code...
wonderful presentation. Planning to upgrade to Java 10
why would things like List be in a talk about "clean code"? It's seems more like a trap for bad coding habits
It does no harm but good
Generics are invariant so when the type is unknown ? denote to it
when ? is expected u can't assign any value other than null which.
It is helpful for the libraries designer not in the business context.
nice
I want to be accurate as you are
Never had to use interface default interface method.
he shouldve been a lil more specific using wildcards. there is something called the put and get principle when using generics. when the generic is represented by a wildcard you cant add elements to it. the only way to add add elements is using the super keyword Lisr actually means
Well yes but he did say 'a list of something that's potentially more specific than an object' at 36:16
good talk but WHY using jshell urrg
nice talk
In java 8, you create a helper class in the interface with private static methods and private ctor. You leak out there is a helper class, but with no methods visible and no instatiation possible. Not ideal, private methods on interface are nice, but "there is nothing you can do" is too strong of a statement.
To be honest I don't like the idea of any implementation in an interface.
I always try to avoid it...
22:07
creepy ide
You are talking about clean coffee and readability and using jshell doing even no indentation to demo? You pretty much violated all about clean coffee in first 6 minutes
Not worth watching IMO.