Getting Started with MongoDB and Java

We’ve been missing an introduction to using MongoDB from Java for a little while now - there’s plenty of information in the documentation, but we were lacking a step-by-step guide to getting started as a Java developer.

I sought to rectify this with a couple of blog posts for the MongoDB official blog: the first, an introduction to using MongoDB from Java, including a non-comprehensive list of some of the libraries you can use; the second, an introductory guide to simple CRUD operations using the Java driver:

This is very much aimed at Java/JVM developers who are new to MongoDB, and want to get a feel for how you use it.

These guides are for the current (2.x) driver. When we release 3.x, we’ll release updated guides as well.

What could possibly go wrong? (GOTO Chicago)

At GOTO Chicago, I was given the chance to chat a bit about the presentation I was giving, which happens to be the same one I’m giving at a number of conferences this year (although of course I’m evolving it as I go along).

The presentation leaves very little time for anything other than coding, as it’s quite challenging to create a full app in 50 minutes, so it was great to have the chance to talk about the motivations for the demo

The video of the actual talk is also available now:

At the beginning it doesn’t clearly show the screen, but it does improve. You can see an earlier version from the Joy of Coding as well, so if something’s not clear on one of the videos, hopefully it’s better in the other.

The code for the Chicago version is on Github, and if you look through the history you can see how it builds up, the same as it does in the demo.

…but most of all, it's fun

I loved this analogy: Cycling is awfully similar to being a woman. It nicely describes how it feels to be marginalised and not quite “normal”. But there are some things that I’d like to add:

  • Being a cyclist is an enormous advantage, especially in gridlocked cities like London and New York, because your maneuverability makes up for your lack of speed, and means you can skip queues and get to the front, if you are assertive enough.
  • If the bike lanes are badly designed, I share the main roads with other users. I’m a road user, I play by the rules, and in most cities I’m travelling only marginally slower than the cars. Just because the road wasn’t built for you doesn’t mean you don’t have every right to use it. And just because they made a crappy effort to include you doesn’t mean you have to go their route if it’s going to slow you down.

"Who

  • There’s a thrill from being a bit outside of Their rules and not conforming to Their expectations
  • Yes it’s fraught with danger, but it’s a game. And it’s fun!

I was fascinated to read there have been [zero fatalities in New York’s Citi Bike scheme](http://www.slate .com/blogs/future_tense/2014/05/30/nyc_citi_bike_zero_fatalities_in_new_york_city_bike_share_program_s_first.html). Contrary to expectations, opening up the city to masses of (often novice) cyclists has made road users more aware of them, and forced the city to create infrastructure for them. Can we port this back across our analogy to being a woman? What if we opened up the advantages of being a woman to people who aren’t hardcore pioneers going it alone? How would we do that?

Sevilla Java User Group Java 8 Launch Party

Last night at the Sevilla JUG we officially celebrated the launch of Java 8 - yay!

"Partay"

Don’t be fooled by the picture, people had more fun than it looks. Honest.

For anyone who missed the session, or who was there and wants access to the materials, here they are:

Note that the last link is to a video from vJUG, the Virtual Java User Group, which is a great source of presentations from international speakers.