Scala, DSLs, Behavior Driven Development?

I’ve started looking at Scala recently because it seems exactly the kind of language I would like to use as a complement to Java on the JVM: it’s similar to Java, but is a “pure” object oriented language and supports a shorter syntax, annotations, generics, closures, a functional programming style and mix-ins. Oh, and it’s fast, or at least seems to be from the little information that is available.

The fact that it’s statically typed is a huge plus in my eyes — I spent two and a half years as a PHP programmer before moving to Java, but think that dynamically typed languages are not for every task. Maybe I’m overgeneralizing, maybe.

Since Scala is rather new and doesn’t have many libraries yet, I’m sure there are plenty of exciting things that can and will be done in it, but I think there are a few areas where Scala should be especially useful. I’m talking about DSLs! Especially DSLs interacting with Java code (and preferably one way).

Continue reading

Advertisements

Is Blogger easily hackable?

I hadn’t checked my old blog at Blogger for a few weeks and when I tried to log in to Blogger yesterday I found I couldn’t access it. They now consider my blog a spam blog and it will have to be reviewed by a human before they can restore my access to it. WTF, I thought, and proceeded to check the site (I won’t link to it, you can guess if you really want to or maybe you remember for some reason). Indeed, it was filled with porn advertising and my content was gone. I’m not sure what will happen next, but for the moment I’m locked out of my blog while it’s displaying porn spam. All I can do is remove links to it from wherever possible.

I’m not sure what the moral of the story is, but it surely raises a question for me: is Blogger easily hackable? If whoever hacked it would have guessed/sniffed my password somehow, they would also have access to my Gmail account, which would be quite a bit more worrying, but that doesn’t seem to be the case. Of course, I changed my Google account’s password after this.

I do remember one time when logging into Blogger with my account, I actually gained access to someone else’s blog, who was probably coming from the same IP address as I. Might they be doing any security checks based on IP? At that time I did nothing about it, but in hindsight I probably should have notified Blogger about that incident.

In any case, I’m moving my blog to villane.wordpress.com for the moment, also considering moving it to my own server later.