Fireship · @fireship
Java for the Haters in 100 Seconds
Uploaded April 1, 2022 · Length 2:22
Summary
java is a verbose, object-oriented language with a long history, used on 3 billion devices, despite its flaws and criticism.
- java
- programming language
- object-oriented
- verbose code
- java history
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
java a boilerplate driven language
- 0:02
designed for writing verbose
- 0:03
object-oriented instant legacy code it
- 0:06
came into being thanks to a relentless
- 0:08
hype campaign by sun microsystems in the
- 0:10
middle of the dot-com bubble it's kind
- 0:11
of like the macaulay culkin of
- 0:13
programming languages it was originally
- 0:14
invented to create a better tv remote
- 0:16
than it officially launched for public
- 0:18
use in 1996 and nobody's bothered to
- 0:20
update the website ever since regardless
- 0:22
java has been running on 3 billion
- 0:24
devices for the last 25 years most of
- 0:26
which are blu-ray players its motto is
- 0:28
right once run everywhere which
- 0:30
developers know actually means write
- 0:31
once debug everywhere remember the log4j
- 0:34
fiasco you can blame java for that one
- 0:36
still java has a great mascot a little
- 0:38
one-eyed monster named duke and people
- 0:40
love to hate it so much that it's
- 0:41
inspired an entire class of programming
- 0:43
languages designed to make java better
- 0:45
like groovy closure scala and kotlin
- 0:47
just to name a few unfortunately though
- 0:49
there is no cure java also inspired
- 0:51
javascript a language that has taken
- 0:53
developers 25 years to make halfway
- 0:55
decent and one time java even tried to
- 0:57
steal javascript's job with applets on
- 0:59
the web luckily applet sucks so bad they
- 1:01
made html css and javascript look like a
- 1:03
good abstraction for building uis now
- 1:06
when your company adopts java you'll
- 1:07
also want to adopt oracle database so
- 1:09
you can spend the next 20 years talking
- 1:10
about migrating to postgres while paying
- 1:12
an ungodly amount of money that will be
- 1:14
directly reinvested into these awesome
- 1:16
sailing yachts to get started set aside
- 1:18
a few days to install the jdk jre and
- 1:20
jvm on your machine it's also
- 1:22
recommended that you have a vertical
- 1:23
monitor to read the error logs that are
- 1:24
coming now before writing any code say
- 1:26
this with me public static void main
- 1:29
string args public static void main
- 1:31
string args now to say hello world
- 1:33
create a class java forces you into
- 1:35
object oriented programming which means
- 1:37
you'll want to read design patterns
- 1:38
cover to cover before you go any further
- 1:40
now it's time for your public static
- 1:42
void main string args and then finally
- 1:45
system.out.printline with hello world as
- 1:47
you can see we get a lot more
- 1:48
boilerplate than something like python
- 1:50
which is a feature and definitely not a
- 1:52
fundamental design flaw or anything
- 1:53
you'll want to start by writing one
- 1:55
giant bloated class then when your boss
- 1:57
complains break it into a hierarchy of
- 1:59
deeply nested subclasses that will make


