Java is pretty spritely what the kinds of things you'd want to use it for, but this was supposed to be the front end to an extremely optimized high-load streaming media server. That's one of the cases where I wouldn't want to use Java. In all fairness, I wouldn't want to use C++ there either most likely. It seems like the sort of place where you'd want to be a little closer to the metal (or very much further away with something like Lisp or OCaml with scary optimizations).
This is also just extremely bad code. If they wanted to find out the request "method", the would could use several ways
But would that involve object creation (such as String objects with values "GET" and "HEAD")? IANA Java expert by any means. Is it smart enough to optimize that into a single initialization and keep reusing those objects?
As a side note, at least this this movie shows code, unlike the movie "Hackers". "Hackers" shows a virus that looks like pacman eating the contents on the screen.
I'm not complaining. I like the fact that it's realistic enough that it can be nitpicked, instead of just flat-out dismissing it as fictional.
Another favorite is Jurassic park, when the girl was trying to turn the power grid back on and exclaimed "This is a Unix system ... I know this!" even though it looked like a 3D flight simulator.
Java is slow
Java is pretty spritely what the kinds of things you'd want to use it for, but this was supposed to be the front end to an extremely optimized high-load streaming media server. That's one of the cases where I wouldn't want to use Java. In all fairness, I wouldn't want to use C++ there either most likely. It seems like the sort of place where you'd want to be a little closer to the metal (or very much further away with something like Lisp or OCaml with scary optimizations).
This is also just extremely bad code. If they wanted to find out the request "method", the would could use several ways
But would that involve object creation (such as String objects with values "GET" and "HEAD")? IANA Java expert by any means. Is it smart enough to optimize that into a single initialization and keep reusing those objects?
As a side note, at least this this movie shows code, unlike the movie "Hackers". "Hackers" shows a virus that looks like pacman eating the contents on the screen.
I'm not complaining. I like the fact that it's realistic enough that it can be nitpicked, instead of just flat-out dismissing it as fictional.
Another favorite is Jurassic park, when the girl was trying to turn the power grid back on and exclaimed "This is a Unix system ... I know this!" even though it looked like a 3D flight simulator.
You mean SGI's FSN 3D file manager? ;-)