Thursday, September 13, 2012

Tidbit: Hibernate bashing deluxe

This short speech from JavaZone 2011 is just ingenious! It really made me laugh out lout again and again.
I can fully recommend to watch the video (it's only 9 min), you will be amused, even if you don't know much about hibernate...


Hibernate should be to programmers what cake mixes are to bakers: beneath their dignity. from JavaZone on Vimeo.

Favorite quotes:

Frameworks like Hibernate leave you with pretty much exactly the same amount of work you had to do anyway, only now you are not enjoying it at all.
I present to you: Hibernate - the naked emperor's hairy butt-cheeks!
If Hibernate was a part of your team, you wouldn't even let him anywhere near your database.
We used to write algorithms, now we are writing annotations. Are we meant to be happy about that?

Monday, September 10, 2012

QuickTip: Programmatic MBean access under JBoss

I have been struggeling a bit with the programmatic access of MBeans under JBoss. This is my current conclusion.
With JBoss 5 there are two methods for accessing MBeans:
  • By JNDI-lookup of the RMIAdaptor. With this method you need the JBoss client libraries (the jars in your $JBOSS_HOME/client) on the classpath since the RMIAdaptor is a type that is provided by JBoss.
  • By pure JMX. You don't need the JBoss client libraries your class path here. 

The following snipped shows both methods:

With JBoss 7 the way to access MBeans changed quite a bit: The tricky thing here is, that you need the JBoss client libraries (the jars in $JBOSS_HOME/bin/client) on your classpath even though you don't explicitly import types provided by JBoss.

If the client libraries are missing, you get the following exception: java.net.MalformedURLException: Unsupported protocol: remoting-jmx

As far as I could figure, this is the only way to access MBeans under JBoss 7.

Tuesday, September 4, 2012

/ch/open Workshop-Days 2012

image

Simon and I are holding a workshop about object relational mapping with JPA2 next Thursday at the /ch/open Workshop-Days 2012.

This year is the first time since we are doing this course that the workshop is not fully booked… probably JPA is getting an uninteresting legacy technology?

So if you don't know what to do next Thursday, you can still get a seat in our workshop … however if I am honest I would suggest to have a look at the parallel course "Java EE testing revised with Arquillian" … it looks very promising. I would definitely attend that course, if I had a choice. 

Tuesday, July 31, 2012

Tidbits: Lines of Code

According to the discussion in JavaScript Jabber episode 20:
  • the code base for the Cloud9 IDE fronted (correction by @javruben) consists of about 300'000 lines of JavaScript. 
  • The GMail frontend consist of about 400'000 lines of JavaScript. 


Update 2013-05-25: According to this Hanselminutes episode, the LucidChart frontend codebase contains about 200'000 lines of JavaScript (about 88% of that is "strongly typed" with the closure compiler)

Tuesday, July 10, 2012

Impressive speech about the future effects of social networks

[in German]

This impressive speech nails down what social networks are all about and how the internet has a revolutionizing effect on modern society:



This is what I call a very impressive talk: 3 min and every word fitting a very concise and scientific analysis.

Thursday, July 5, 2012

Bookreview: MVC4 in Action

Another quote made it on the cover of a manning title: ASP.NET MVC 4 in Action

MVC4

Palermo3 cover150I think this is a good book for developers that want to learn ASP.NET MVC. And I think today every .NET Web Developer should learn MVC. Learning MVC will help you understand basic web concepts and even when you are developing WebForms applications you can profit a lot from that.
I like the book, because it looks a bit further than just ASP.NET MVC as it comes out of the box. With chapters about  full system testing, AutoMapper, MvcContrib and NHibernate it deals with advanced topics that are neglected in most other books about MVC. The authors give a somewhat more opinionated overview how modern web applications should be created. This makes the book stand out among typical MVC books.
What I miss in the book is primarily the integration of MVC with the EntityFramework. The book only focuses on NHibernate. This was the right thing to do with the first version of MVC, however today the EntityFramework has made a lot of progress, and in my opinion it should be considered the default choice for ASP.NET MVC.
If you are already familiar with ASP.NET MVC or have even read a previous version of the book, don't expect to learn too much about the new features of MVC 4. Only the last two chapters of the book deal with specifics of the fourth release of the framework (probably the book was initially planned for MVC 3, but the fast release cycle of the MVC team made the authors skip directly to MVC 4).
Nevertheless, for developers that want to learn MVC, I think this book should be a must-read.

Monday, July 2, 2012

Quotes of the Week: Agile Backfire

quotes2.jpg
The single most important thing on a project is picking the right people. If you have good people then it doesn't matter if you are using Scrum or not, it will turn out well anyway.

We were used to getting shit done … then they told us about Agile.

There are no agile projects. Nor were there ever any waterfall projects. What we had were just a bunch of guys trying to get a bunch of stuff done.

We must destroy these methodologies that get in the way of programming.

These statements make even less sense. They are just babble, and they’re not about your trade in any conceivable way.

I don't read agile books. They are a waste of time!

Agile books out there are just people telling stories about stuff. Stories are great -- love to hear them. But I can't trust the authors of most of these books to tell honest stories and learn honest lessons from them. Instead they have a theme.

The problem is, real life doesn't have a theme.

I used to be an agile consultant, but I am alright now.

Related Posts Plugin for WordPress, Blogger...