Apr. 8th, 2008

l33tminion: Enter the l33tness (Matrix Largo)
The following is only relevant to the programmers on my friends list, probably...

So, did you know that Java has syntactic sugar for iterating over a collection? So you can write this:
for (SomeType item: stuff) {
    // code here
}
Instead of:
for (Iterator<SomeType> iter = stuff.iterator(); iterator.hasNext();) {
    SomeType item = iter.next()
    // code here
}
I didn't until recently. When did that happen? Was that not around when I was first learning Java?

Despite that, I'm feeling more competent Java-wise lately. I feel that I finally understand the JNI (how to use it, anyways). I even got a C++ API for the multitouch hardware I'm using to play nicely with some Java code.
l33tminion: (Default)
Some links from the past few months, saved to share:
  • Why I Let My 9-Year-Old Ride the Subway Alone: On parenting, security, and the dangers of paranoia.
  • What the World Eats: Pictures of the weekly diet of families from around the world.
  • Still Alive?: A look at the imagery of the character of GLaDOS from the game Portal (read this if you've played the game, play the game if you haven't; it's only about 3 hours long so I highly recommend it even to non-gamers).
  • The UI That Cares: An example of the intersection of web design and customer service.
  • The Right Choice?: An argument why Barack Obama should be the candidate of choice for conservatives.
  • World War Z Movie Details: Apparently, they're making a movie based on the book, which was really good. I'm excited.
  • Please Talk to Kids About AIDS: An article about the documentary (which can be viewed here, it's 30 minutes long). Both the documentary and how it was made raise interesting ethical questions, I'd especially like to hear your thoughts on this one.
Page generated May. 28th, 2025 09:17 am
Powered by Dreamwidth Studios