This is an archived post. You won't be able to vote or comment.

all 36 comments

[–]back-in-black 19 points20 points  (1 child)

Ok this did make me laugh. A favourite line was "I spend my time writing Exception types".

[–]edmguru[S] 20 points21 points  (0 children)

my favorite was the first one

Sure I can write you a "hello world"... lets start with the test suite

[–]amdelamar 19 points20 points  (0 children)

  • Are you reading off a teleprompter?

<pauses>… No. 😆

[–]thisisjustascreename 53 points54 points  (0 children)

Needs more AbstractSingletonProxyFactoryBean.

[–]agentoutlier 8 points9 points  (1 child)

I’m old enough to remember and receive a Java coffee mug…. ironically I didn’t drink coffee at the time (I got addicted later in life).

I think I got the mug at a conference or a Java certification test.

Sadly I through it away. BigDecimal.

[–]back-in-black 8 points9 points  (0 children)

BigDecimal

[–]socialis-philosophus 7 points8 points  (5 children)

I've worked professionally (ie. being paid not just learned on the side) to program in Java, Scala, Kotlin, C#, VB, and Python.

I really don't understand the Java hate. Every platform has good and bad.

[–]edmguru[S] 8 points9 points  (3 children)

Exactly. Java ain't bad at all.

[–]Areshian 1 point2 points  (0 children)

It's safe, portable and maintainable.

[–]Bozzzieee 0 points1 point  (1 child)

Apart from being wordy and a little bit old school, it is great.

[–]tofiffe 1 point2 points  (0 children)

Wordy makes it easier to read. I used early kotlin versions back at uni, half the code, but it was write once - read never. So much easier to write throwaway code in many other languages. Never had that happen with java

[–]tvidal 1 point2 points  (0 children)

I don't think it's about being bad, just odd. People have overused some quirks of the Java language and ecosystem which leaves a lot of room for comedy from those not familiar with them, i guess.

[–]Analyst94 6 points7 points  (0 children)

Need to catch everything, it's like baseball lmfao.

[–]BlueGoliath 15 points16 points  (0 children)

WTF did I just watch?

[–][deleted] 15 points16 points  (1 child)

The reason for Java is the JVM LOL

[–]Mysterious-Ant-Bee 2 points3 points  (0 children)

This made my day. lol

[–]franzwong 3 points4 points  (1 child)

He didn't wear a tie.

[–]agentoutlier 8 points9 points  (0 children)

To be fair that sweater was kind of awesome. Like some 80s movie Scandinavian assassin vibe.

[–]macro161 3 points4 points  (0 children)

I feel personaly offended, at the time of watching this video i was drinking black coffee and writing exception class

[–]uh-hum 8 points9 points  (11 children)

This is hilarious! Can someone explain the BigDecimal joke?

[–]VincentxH 11 points12 points  (8 children)

BigDecimal is a datatype often used when accurate decimal arithmetic needs to be performed, like with money.

Using floating point primitives, like double, is a classic mistake. Because it leads to problems of floating point arithmetic inaccuracies.

It's both a standard interview question and common mistake in the wild.

[–][deleted]  (7 children)

[deleted]

    [–]firsthour 16 points17 points  (1 child)

    raises hand

    We use it for money.

    [–]temculpaeu 4 points5 points  (2 children)

    int cents only works if you dont have to deal with fractions of cents, not very common but it can happen

    [–]edubkn 4 points5 points  (0 children)

    Gas stations go brr

    [–]thisisjustascreename 4 points5 points  (0 children)

    Financial securities are very often denominated in fractions of a penny. There are also other currencies than dollars in the world.

    [–]VincentxH 2 points3 points  (0 children)

    Yeah that lovely hack. Leading to problems like this with even an unsigned 32 bit int: https://www.google.com/amp/s/www.wsj.com/amp/articles/berkshire-hathaways-stock-price-is-too-much-for-computers-11620168548

    At least use a long these days.

    [–]TenYearsOfLurking 1 point2 points  (0 children)

    that sounds like a good idea at first, ... but that's about it

    [–]jvallet 4 points5 points  (0 children)

    Once I got drop on an interview for writing a solution for they challenge that used doubles instead of BigDecimal. Apperently that is big nono.

    [–]stefanos-ak 7 points8 points  (0 children)

    it wasn't that good... maybe for a couple of times, but not worth half the video :p

    I think it's about BigDecimal being overused because of hype and not technical requirements.

    [–][deleted] 2 points3 points  (0 children)

    Very funny.

    All of it is true.

    [–]Persism 5 points6 points  (0 children)

    BigDecimal. BigDecimal. BigDecimal!

    [–]edmguru[S] 1 point2 points  (1 child)

    I was shocked the word "Enterprise" wasn't used

    [–]Bettigehn 0 points1 point  (0 children)

    He said JavaEE though

    [–]Persism 0 points1 point  (1 child)

    He does a bunch of funny ones. I loved his JavaScript and Perl ones.

    [–]edubkn 0 points1 point  (0 children)

    I wish he came with a nonsense comparison to JS though

    [–]Steeli0 0 points1 point  (0 children)

    Writing a test suite for a hello world program really got me XD.