February 2024

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728 29  

Style Credit

Expand Cut Tags

No cut tags
yvi: Kaylee half-smiling, looking very pretty (Default)
[personal profile] yvi
Tuesday, June 22nd, 2010 09:32 am (UTC)
I don't even remember that episode, but I think I can answer

My own knowledge of computer code is, believe it or not, limited to BASIC (you just be quiet, all you young whippersnappers!) so I'm curious to know what those who actually understand programming think about what Sam is writing on the white board here:


It's Java she is writing (which is interesting in itself, since I would have guessed they'd be using C++...), but it looks okay for me. What I can read is just opening a file for writing (outfile, which she sets to length 0, I suppose for the case that it already exists) and declaring a few variables (a byte array and two long number variables). Below that she is initializing some objects, I suppose. Nothing fancy, but the code looks correct to me.

Reply

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting