ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Ja-WAT?!
Reversim Summit 2016
Allon Mureinik
Associate Manager, RHV Storage R&D
https://www.linkedin.com/in/mureinik
20/09/2016
2
Remember WAT?
Great talk by
Gary Bernhardt
about how
broken some
languages are
https://www.destroyallsoftware.com/talks/wat
3
Remember WAT?
But we don’t
have such
problems in
Java.
Or do we?
4
We can put strings in lists
5
… and run it
$ java FunWithLists_Strings
[Reversim, Summit, 2016]
$ java FunWithLists_Strings
[Reversim, Summit, 2016]
6
We can remove strings from lists
7
… and run it
$ java FunWithLists_Strings
[Reversim, 2016]
$ java FunWithLists_Strings
[Reversim, 2016]
8
We can put chars in lists
9
… and run it
$ java FunWithLists_Chars
[R, S, 2]
$ java FunWithLists_Chars
[R, S, 2]
10
We can remove chars from lists
11
… and run it
$ java FunWithLists_Chars
Exception in thread "main"
java.lang.IndexOutOfBoundsException: Index: 83, Size: 3
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.remove(ArrayList.java:492)
at FunWithLists_Chars.main(FunWithLists_Chars.java:11)
$ java FunWithLists_Chars
Exception in thread "main"
java.lang.IndexOutOfBoundsException: Index: 83, Size: 3
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.remove(ArrayList.java:492)
at FunWithLists_Chars.main(FunWithLists_Chars.java:11)
12
WAT
13
We can concat strings
14
… and run it
$ java FunWithString
Reversim16
$ java FunWithString
Reversim16
15
We can concat strings with chars
16
… and run it
$ java FunWithString
Reversim16
$ java FunWithString
Reversim16
17
We can concat chars with strings
18
… and run it
$ java FunWithString
103Reversim
$ java FunWithString
103Reversim
19
WAT
THANK YOU
https://github.com/mureinik/ja-wat

More Related Content

Reversim Summit 2016 - Ja-WAT