Friday, April 13, 2012

Cradle Theft to the Rescue

I'm seeing this girl.  She is like five years younger than me and fairly immature.  It is the best thing ever.  She's not bitchy, and she laughs at my jokes, and we are basically on the same maturity level, and we've dated for weeks without the word "exclusive" coming up in conversation, and...well she shows up.  And I have evidence that I have not been locked in the friend zone.  Also she's hot.  No baggage.  Past experience has taught to never get too into something like this, because you never know when the rug will be pulled out from under your feet, but for now, it is pretty awesome.  I'm enjoying the sun while it lasts.

Also, her favorite movie is Casablanca, which is a timeless classic, and roughly the opposite of Twilight.

At work, someone sent some slides from a presentation by a guy I've never heard of, one Joshua Bloch.  He's some kind of big deal to some people.  What matters, though, is that after reading his slides and then subsequently watching the video and this buying the book, I have discovered:  this man preaches the truth.  Any time you are going to use a statically typed language like Java there are certain ...ways of doing things that are intuitively better than most other options, and these things are obvious.  At least to me.  After getting in lots of arguments with people and reading so many dumb opinions on the internet, it is vindicating to suddenly discover an expert out there who is telling people the exact same things that I have been.  Sometimes I will be reading a paragraph about the downsides of a particular approach (such as how the dumbass java-bean style of creating objects is lame) and I think of a mitigation (such as manually freezing the object), and I read about that strategy in the very next paragraph.  This is amazing!  This man is like a heavenly oracle because he agrees with me on everything!  And since this Josh dude is famous, I'm pretty sure this basically gives me free license to go around being a dick with my opinions on how code should be written, similarly to the way I use Strunk & White to start fights with grammar nerds (side note:  turns out Strunk & White is not the only widely accepted authority on professional English, so beware people who know what they're talking about).  This guy probably indents code with spaces, which makes him a tool (just like the other 99% of programmers), but not everyone can be like me.

Admittedly, I indent my code with  spaces, because the alternative is to get in a verbal argument with pretty much every other human being in the building, and also the only files in our code base that aren't indented by spaces are the few files that I wrote completely from scratch.  White space can be tolerable, or even enjoyable, actually, if you set the indent width to 2 spaces instead of 4 or 8.  This has the bonus benefit of letting you fit more code on one line, so you have to do fewer of those retarded multi-line statements that code style nazis get off on*.

In other news...if you couldn't tell I had nothing to write about.  I'm waiting for my code to compile.  Oh its done.  Gotta go.

Seriously though, there is key on our keyboards people and its just for indenting.  I'm pressing the indent key in order to indent.  You can't get anymore simple than that.  And the tab character is ASCII #9.  Its not like I'm putting some chinese dialect of unicode into these files.  The space bar is great for making spaces.  I'll give it that.  You press it; it makes a space.  But the indent, or tab key...well it just indents thing.


*this is correct grammar.  Don't believe me?  Read Strunk & White

No comments:

Post a Comment