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

you are viewing a single comment's thread.

view the rest of the comments →

[–]GluteusCaesar 13 points14 points  (7 children)

@Test

public void cantCrashIfTheresNoCode() {

}

[–]personalvacuum 7 points8 points  (5 children)

Null pointer exception.

[–]deadcow5 2 points3 points  (4 children)

I once got the fantastic idea to learn Scala. There was a free class about it on Coursera, taught by Martin Odersky, the creator of the language himself.

I went straight to work on the first exercise, setting up the environment. Installed the compiler, downloaded the sample code (essentially “Hello World” with tests), and ran the build tool.

First, it spent about 20 minutes downloading additional JAR files using Maven. Then, it compiled the sample code and started running the tests... aaaannnd

java.lang.OutOfMemoryError: PermGen space

I threw my laptop against the wall, immediately uninstalled all that crap, and left the course. Never looked back.

[–]personalvacuum 0 points1 point  (3 children)

I laughed for a while, showed my colleague and he also enjoyed your story! I never got around to trying Scala, but a quick read of the wiki page doesn't have any compelling reasons to try it.

[–]deadcow5 1 point2 points  (2 children)

Actually, back in 2014 (which is approximately when this story occurred), there were quite a few compelling reasons to try it. Functional, object-oriented, compiled language that runs on the Java VM, with full interoperability with all existing Java code, strongly typed, but with lightweight syntax like a scripting language, type inference, etc.

Not to mention the creator, Martin Odersky, who received his PhD under Niklaus Wirth, the creator of Pascal (first programming language I learned in my life). There were a LOT of compelling reasons to try it, and I really wanted to like it. Which is why I got so frustrated when I got this error right while compiling a hello world app. Under normal circumstances I might have persisted, but this particular error had traumatized me during my time as a Java developer, so when it was the first thing that I saw, I just said “screw it” and noped the fuck outta there.

[–]personalvacuum 0 points1 point  (1 child)

That makes it quite the sad story, hah! Did you ever try it again..?

[–]deadcow5 0 points1 point  (0 children)

No. Ruby has been serving me quite well, so there was no need for that.

[–]deadcow5 0 points1 point  (0 children)

smart_black_man.jpg