One year at TJ is over - and what did I learn?
- Java sucks
- "Math" at TJ is no less pointless than "math" anywhere else
- The APCS exam is worse than a joke
- Friends by necessity are neither friends nor necessary
- No matter how selective your admissions process is, idiots still creep in
- It is possible to get an A in every class without really trying in any of them
- Doing a group project with slackers means you have more control
- But doing a group project with overachievers actually means more work
- I was more paranoid about Obama than I should have been, but the worst is likely yet to come
- I can't write anything without getting political
- I can't write anything without going meta
- Java sucks
I'll leave you with
something completely different:
def bad():
c='bnzedy gnrwx zqxv ughxm'
print ''.join([e.translate(''.join([chr(n) for n in range(97)]+[chr((n-(d-c[:d].rfind(' ')-int(' ' in c))-72)%26+97) for n in range(97,124)]+[chr(n) for n in range(124,256)])) for d,e in enumerate(c)])
def good():
ctext='bnzedy gnrwx zqxv ughxm'
output = ''
for i in range(len(ctext)):
table = ''
for n in range(97):
table += chr(n)
for n in range(97, 124):
table += chr((n-(i-ctext[:i].rfind(' ')-int(' ' in ctext))-72)%26+97)
for n in range(124, 256):
table += chr(n)
output += ctext[i].translate(table)
print output
These do the same thing, and compile to almost the same bytecode...which do you prefer? Elegance or readability?
You forgot the part about Castalia, but I assume you haven't read the Glass Bead Game like I've been telling you and pietra to
ReplyDeleteto your question: depends on where you're using it
as far as your comment on group work goes: I agree! At the same time, I hate working with slackers because when I work in a group I become very very J and want work done, so when people don't do their work... well, I usually figure out who does their work and who doesn't fairly early on. On the other hand, if someone else has control (and I'm in a group of slackers) then I tend to slack off a bit... bad habit
my challenge to you: post something without any hint of politics in it
i think your challenge to me would be the opposite
also, congrats on starting a blog
oh you probably want a meaningful comment here
ReplyDeletehow sad for you.
Hello 8)
this is my cue to comment incoherently
ReplyDelete"look three comments i wonder who commented oh."
sorry about that
woah where have i seen this code before.
ReplyDeleteactually meant to make that comment like a week ago.
ik kcpix
j ujrylna qawltt xcv oqw b dqptnrll mcqkzgnm xjdx ju ujlw
More control in projects... doesn't usually happen to me with slackers. Depends on the kind of slacker, really. When I have an idea/plan... the good kind of slacker doesn't care, has no objections, and just does what I tell them. the bad kind of slacker usually refuses to listen, and then goofs off when time is short. I had more than plenty of the bad kind over the year.
*cough* french project... not really but... sort of yeah.
Paranoia is good when it comes to politicians. It's the people who act like they would trust Obama with their lives that annoy me.
@jackie: the python interpreter "compiles" code to an internal representation called python bytecode at runtime. The bytecode is then executed by the Python Virtual Machine, making the entire process similar to Java - the difference being that Java is compiled to bytecode once, and python is compiled at runtime. This is due to the fact that not all python interpreter implementations use the same bytecode format, but the Java bytecode format is part of the language specification and is always the same. When compiling a file, python often generates a *.pyc file in the same folder. This is the bytecode, and it is stored in order to skip the compilation process next time the file is run on the same machine.
ReplyDelete