Naming is Hard -- But Not With Java
HTML-код
- Опубликовано: 31 мар 2023
- "There are only two hard things in Computer Science: cache invalidation and naming things."
-- Phil Karlton
martinfowler.com/bliki/TwoHar...
...not with Java.
See you at live, virtual workshops: airhacks.live
Checkout the: airhacks.fm podcast
Any questions left? See you at the airhacks.tv
Join the airhacks discord server: / discord
#airhacks - Наука
I prefer the saying "There are two hard things in computer science; cache invalidation, naming things, and off by one errors."
Yes, but it is not the original version: www.karlton.org/2017/12/naming-things-hard/ Thanks for watching!
@@bienadam It's not the original version. It's a joke. "Off by one errors" Geddit? No? /*sigh*/
But still, I love the var var!
@@GeraldOSullivan It was a semi joke coined by Phil Karlton. In the first version there was no mention of "Off by one errors." But I like the "extended" version better. Hopefully I got you :-)
@@bienadam class FunnierJoke extends KarltonJoke
OK, you got me :))
assertTrue(understood);
I loved this mock. Thanks, Adam, well done. I would actually negate this to "never use "var" for anything in Java".
Nice. Happy Aprils fools day to everyone 🎉
This beautiful pattern will also work perfectly in May! 🙂
i was this close to correct him not realizing it is an april fools joke
Correcting me? Then I would vote your comment down :-)
That's beautiful, very clean 👍
+1 Now I can start to ask: why you are still using Kotlin and not Java?
I forgot about Fools Day. But I have better example of interesting naming in Java. Try this:
int Integer = 7;
Integer Float = 9;
System.out.println(Integer);
System.out.println(Float);
System.out.println(Float.MAX_VALUE);
This is a horrible joke You got me 😂
It is a compilable joke! :-) Thanks for watching!
everything is very clear. How come I did not think of it before!😅😅
...because you didn't meditated long enough :-)
@@bienadam Sensei Adam, is the registration for the next meditation retreat already open?
Var var var var var😅
Happy April 1st 😂
nice one!!!
Thanks!
you got me :D
Thank God it's apr 1st
I crafted this code to work on all possible dates :-)
Hello Adam, I m new to java could you please suggest me any website or ebooks for enhancing my data structure and algorithm skills in Java. Anything you know which is important kindly share.. Thank you in advance.. 😊
Checkout e.g. javachallengers.com/category/data-structures/ I had a chat with the author at: airhacks.fm/#episode_248 Thanks for watching!
@@bienadam Thank so much Adam.. you rock !!
😂
Unfortunately I see this very often 😑
It's absolutely sufficient to watch this video only once :-) Thanks for watching this video multiple times! :-)
Cooking this code in the afternoon it should be a int with the value of 418 instead of a string being returned.
#rfc2324