Fireship · @fireship

Java for the Haters in 100 Seconds

Uploaded April 1, 2022 · Length 2:22

Java for the Haters in 100 Seconds

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.

  1. 0:00

    java a boilerplate driven language

  2. 0:02

    designed for writing verbose

  3. 0:03

    object-oriented instant legacy code it

  4. 0:06

    came into being thanks to a relentless

  5. 0:08

    hype campaign by sun microsystems in the

  6. 0:10

    middle of the dot-com bubble it's kind

  7. 0:11

    of like the macaulay culkin of

  8. 0:13

    programming languages it was originally

  9. 0:14

    invented to create a better tv remote

  10. 0:16

    than it officially launched for public

  11. 0:18

    use in 1996 and nobody's bothered to

  12. 0:20

    update the website ever since regardless

  13. 0:22

    java has been running on 3 billion

  14. 0:24

    devices for the last 25 years most of

  15. 0:26

    which are blu-ray players its motto is

  16. 0:28

    right once run everywhere which

  17. 0:30

    developers know actually means write

  18. 0:31

    once debug everywhere remember the log4j

  19. 0:34

    fiasco you can blame java for that one

  20. 0:36

    still java has a great mascot a little

  21. 0:38

    one-eyed monster named duke and people

  22. 0:40

    love to hate it so much that it's

  23. 0:41

    inspired an entire class of programming

  24. 0:43

    languages designed to make java better

  25. 0:45

    like groovy closure scala and kotlin

  26. 0:47

    just to name a few unfortunately though

  27. 0:49

    there is no cure java also inspired

  28. 0:51

    javascript a language that has taken

  29. 0:53

    developers 25 years to make halfway

  30. 0:55

    decent and one time java even tried to

  31. 0:57

    steal javascript's job with applets on

  32. 0:59

    the web luckily applet sucks so bad they

  33. 1:01

    made html css and javascript look like a

  34. 1:03

    good abstraction for building uis now

  35. 1:06

    when your company adopts java you'll

  36. 1:07

    also want to adopt oracle database so

  37. 1:09

    you can spend the next 20 years talking

  38. 1:10

    about migrating to postgres while paying

  39. 1:12

    an ungodly amount of money that will be

  40. 1:14

    directly reinvested into these awesome

  41. 1:16

    sailing yachts to get started set aside

  42. 1:18

    a few days to install the jdk jre and

  43. 1:20

    jvm on your machine it's also

  44. 1:22

    recommended that you have a vertical

  45. 1:23

    monitor to read the error logs that are

  46. 1:24

    coming now before writing any code say

  47. 1:26

    this with me public static void main

  48. 1:29

    string args public static void main

  49. 1:31

    string args now to say hello world

  50. 1:33

    create a class java forces you into

  51. 1:35

    object oriented programming which means

  52. 1:37

    you'll want to read design patterns

  53. 1:38

    cover to cover before you go any further

  54. 1:40

    now it's time for your public static

  55. 1:42

    void main string args and then finally

  56. 1:45

    system.out.printline with hello world as

  57. 1:47

    you can see we get a lot more

  58. 1:48

    boilerplate than something like python

  59. 1:50

    which is a feature and definitely not a

  60. 1:52

    fundamental design flaw or anything

  61. 1:53

    you'll want to start by writing one

  62. 1:55

    giant bloated class then when your boss

  63. 1:57

    complains break it into a hierarchy of

  64. 1:59

    deeply nested subclasses that will make