Is Java Getting Any
Better?
Егор Бугаенко
CEO @ Zerocracy
/13
@yegor256
Zerocracy
2
@yb190421
/25@yegor256
Zerocracy
3
2.1K
yegor256 Zerocracy
Zold
Elegant Objects
/25@yegor256
Zerocracy
4
NULL
/25@yegor256
Zerocracy
5
def userByName(name)
return nil if not_found
end
def charge(user)
if user.nil?
# do something
else
# do something else
end
end
/25@yegor256
Zerocracy
6
static
/25@yegor256
Zerocracy
7
class FileUtils
public static String read(File f) {
// read the content
}
}
/25@yegor256
Zerocracy
8
final
/25@yegor256
Zerocracy
9
class Book {
private int id;
public void setId(id) {
this.id = id;
}
}
/25@yegor256
Zerocracy
10
extends
/25@yegor256
Zerocracy
11
@
5
/25@yegor256
Zerocracy
12
default
8
/25@yegor256
Zerocracy
13
->
8
/25@yegor256
Zerocracy
14
interface .. private
9
/25@yegor256
Zerocracy
15
List<Integer> list =
List.of(1, 2, 3);
9
/25@yegor256
Zerocracy
16
var
10
/25@yegor256
Zerocracy
17
String.repeat()
11
String.strip()
/25@yegor256
Zerocracy
18
switch ->
12
/25@yegor256
Zerocracy
19
13
/25@yegor256
Zerocracy
20
global
13
/25@yegor256
Zerocracy
21
namespace
13
/25@yegor256
Zerocracy
22
NULL by default
13
/25@yegor256
Zerocracy
23
getters and setters
13
/25@yegor256
Zerocracy
24
@yegor256
Егор Бугаенко
yegor256@gmail.com
+1 408 6924742