Silly Scala Tricks

One of the things I have in my Scala startup file is the following.

def show[T](implicit thetype:scala.reflect.Manifest[T]) {
  thetype.erasure.getMethods() foreach println
def help(x:AnyRef) {
  x.getClass().getMethods() foreach println

These silly little functions are useful – at least, to me. Now when I can’t remember the name of a method I can type something like the following at the Scala prompt. Continue reading “Silly Scala Tricks”

And Another Thing That Bugs Me About Java…

java_logo_2Just a short note on an item that bugs me about Java.  In C++, I tend to use exactly three kinds of method parameters.

  • A const reference.  I don’t want to copy it, but I promise not to modify it, either.
  • A reference.  I might modify it.
  • A copy.  I might modify my local copy, but not the original.  I’m getting a copy, after all.

Easy peasy in C++.  In Java?  Uh, I pass all objects by reference. Continue reading “And Another Thing That Bugs Me About Java…”

Obama May Speak To Your Children

President Barack Obama
President Barack Obama

Florida GOP Chairman Jim Greer says Obama’s school speech uses taxpayer dollars (i.e., your dollars) to indoctrinate your children.

As the father of four children, I am absolutely appalled that taxpayer dollars are being used to spread President Obama’s socialist ideology.

Source: CNN

Really. Do you support compulsory government-funded education? Okay, there’s no point in asking that. Continue reading “Obama May Speak To Your Children”

Exit Van Jones

Van Jones
Van Jones

Gone. Unsurprising, really. Was Van Jones a truther? Well, he signed the petition, and I don’t think he can point to any public statement where he repudiated the truthers until recently… and then very weakly. He says he was the victim of a “vicious smear campaign.” Sure, I’ll grant that. So? He’s a politician and a lawyer, after all. Continue reading “Exit Van Jones”

Stacy’s Dumb Idea of the Day: Baby Steps

Health Care
Health Care

How about passing simple legislation that is straightforward? We could do each of these – but not in one bill!

  1. Allow purchasing health insurance from out-of-state vendors. That is, “crossing state lines” to buy insurance. This is currently illegal.
  2. Allow and encourage the formation of health insurance alliances that pool many small businesses or even individuals.
  3. Require insurers to offer a basic “minimum coverage” policy. We could require everyone to purchase it… and make it (a) tax exempt or (b) refundable. We could even do a “prebate” as with the Fair Tax. Continue reading “Stacy’s Dumb Idea of the Day: Baby Steps”