OK, so I finally cracked and bought a real textbook on Hibernate, rather than trying to muddle my way through a mass of random online tutorials and Java debugger statements. And, even more excitingly, it came as a Kindle file. Marvellous.*
Harnessing Hibernate is the title, and so far it's been very useful. I wouldn't recommend it to anyone except a near-total Hibernate beginner: you'd want to know a bit of Java and roughly what Hibernate is trying to achieve, and preferably you'll have seen a bit of Hibernate code flying around, just to get your eye in, as it were.
It's a little out of date now: all the examples are built using Ant rather than Maven. But still, I can't really criticise that - I still have regular and ongoing battles with Maven, and the Ant stuff means that it's been dead easy for the authors to introduce small sections at a time, and slowly upgrade from feature to feature over the chapters.
Overall, I'm impressed so far - but we'll reserve the real judgement for when I try to bring Hibernate into my own projects!
* I don't own a Kindle (yet) but the Kindle app for Windows does what it says on the tin. Not too sure about trying to read books on an Android phone but sure, I'll give it a go some day. For now, screen reading is grand. And yet another reason why a second monitor is an essential development tool, not just a nice extra.
Blogging about programming and technical bits and pieces: problems, solutions, and other interesting stuff like that.
Sunday, 18 December 2011
Monday, 5 December 2011
Test Driven Development - Review 1
OK, so.
I have my first few classes down using the new test-driven method. It's been written about a thousand times before (at least), so I shan't bore you with the details, but a nice quick summary is here (linky!).
I like it, actually. It hasn't been getting in the way too much, and I've gotten a lot further with the project this time - when I've been writing tests about what to expect from the code before touching the code itself - than the first time I tried it, when I ended up bogged down in complexity and confusion.
Coverage of the code by the tests is still nice and high (thanks in no small part to EclEmma!) and motivation is also pretty good.
No real demonstrable product to show yet, though... that'll be a while before we've anything that even remotely resembles a game system, and I haven't even looked at an interface yet. Lots of fun to come.
Note to self: should also put together a website.
Progress so far: 1,172 instructions; 1090 instructions covered by tests.
I have my first few classes down using the new test-driven method. It's been written about a thousand times before (at least), so I shan't bore you with the details, but a nice quick summary is here (linky!).
I like it, actually. It hasn't been getting in the way too much, and I've gotten a lot further with the project this time - when I've been writing tests about what to expect from the code before touching the code itself - than the first time I tried it, when I ended up bogged down in complexity and confusion.
Coverage of the code by the tests is still nice and high (thanks in no small part to EclEmma!) and motivation is also pretty good.
No real demonstrable product to show yet, though... that'll be a while before we've anything that even remotely resembles a game system, and I haven't even looked at an interface yet. Lots of fun to come.
Note to self: should also put together a website.
Progress so far: 1,172 instructions; 1090 instructions covered by tests.
Subscribe to:
Posts (Atom)