Wednesday, July 16, 2014

Book Review of Java Performance: The Definitive Guide

While tools and technologies change rapidly, and looking up information online is sometimes the best way to get the information you need, I can be useful to occasionally read a book to get oriented in a subject and discover what you didn't know that you didn't know. For me a good technical book sets the context for the problem and gives you enough information to apply what you learned to harder problems that the book covers, but which also gives you information you can apply immediately.  Java Performance: The Definitive Guide does a good job of both.

Not just about JVM params, the book covers application and algorithm issues, database connectivity, as well as JVM issues such as garbage collection algorithms. What is useful, and sadly rare,  is  that this book not only tells you things you can do,  it also tells you things that you can skip, since not every thing you do has a good cost/ benefit payoff.

With an emphasis  on standard tools, including open source and those that come with the JDK,  you can apply what you learned immediately. The book does not cover every tool, and may not include your favorite, but the discussion has enough  tools to get you started.

This book will be useful for both those new to programming in Java (since performance and resource use area rarely emphasized who you are learning to program) and those who have been programming a while but have not spent as much time thinking about performance as one might like.

I got my copy of this book through the Amazon Vine program.


Saturday, March 22, 2014

Estimation as a requirements Exercise

I explored the role of estimation in a couple of articles on Techwell recently.

In the first article I discussed how teams balance the cost of estimation (in terms of time it takes) with the value it brings to the project. Some argue that estimation isn't very useful at all, where other's say that it can be useful, but that all stakeholders may not have the same vision of the value estimation brings.

In a follow up article I explore the debate about whether to estimate in hours, which reflects effort, and time, or  points, which reflect complexity. This is a common debate, since many articles on agile advocate points, to step away from the concepts of estimate, and focus on the complexity of a feature, and also to help teams move towards the model of the estimate being valid for the team and not just a particular person. And stakeholders are often concerned about schedule and deadlines, so tend to prefer hours initially.

Different teams will come to different decisions about what works best for them. To me the most important part of the estimation discussion is the part many teams don't have, namely asking (and answering) the question of why they are estimating, and what value the estimates bring to the project given that they are now working with an agile process.

As I think more about what value estimation has brought to teams that I have worked on, I realize that the biggest value is that of having a a discussion of scope. When you have an planning meeting, a few questions come up:


  • Why people have different estimates
  • Why the estimate is larger, or smaller, than the product owner expected
  • Whether the team really understands what the story means.
Give this I'm leaning towards thinking of estimation as being more about requirements definition rather velocity, effort, or even complexity.  To that end, maybe the approach to use is one where you spend all of your planning effort defining stories in terms of small, fixed size units, and your velocity is about how many stories you finish off of a prioritized backlog. I link to a description of what this means in the points and hours article.

I'm  interested in hearing about creative approaches your teams have used for estimation. Please comment on  the Techwell articles, or here if you want to share lessons you have learned.


Monday, February 17, 2014

Pattern-Oriented Software Architecture For Dummies (Book Review)

When I received a review copy of Pattern-Oriented Software Architecture For Dummies, by Bob Hanmer, one of the leaders in the Patterns community, I was intrigued. Patterns are more complicated to understand than they appear, and I wondered how a book like this could do justice to the topic. I was not disappointed.

This book is one of the few books that is a good tour through the fullness of the patterns universe. It's an easier read than many other books on Patterns, and it covers the basic concepts of what a pattern is, and gives examples of how to use patterns correctly.
The book focuses on the Patterns from the Pattern Oriented Software Architecture series and the classic Design Patterns: Elements of Reusable Object-Oriented Software book. The book wraps up with a tour through the larger pattern world, with examples from patterns in areas such as configuration management, software process, and user interaction.

Patterns are one of the most misunderstood concepts in software. Patterns are more than just what the English language definition of the word implies, and by their nature, Patterns are not novel ideas; you’ve seen them before because they work. Because of the superficial simplicity of Patterns, using software patterns effectively can be tricky. Patterns are more than just the structure of the software. Patterns also involve the context in you apply them, and the problem that you are trying to solve. Newcomers to the concept of patterns also sometimes mistake the number of patterns in a solution with a good solution. This book does a good job of addressing these essential aspect of working with and understanding patterns.

A better title of the book might have been “Using and Understanding Patterns (for Dummies)” since I feel that most readers will walk away from the book with a better understudying of what patterns are, than about how to build architectures, but it’s a good starting point never the less. The first section of the book spends a bit more time than needed on tools and approaches for describing architecture, but the rest of the book is worth a read if you feel that you don’t understand what patterns are.

There are few books that cover that such a broad sweep of the patterns landscape so concisely. When you’re done you’ll want to read more, guided by the resource section at the end of the book. This is a good resource for a software developer who wants to learn more about patterns. Those familiar with patterns, but not patterns beyond the building block Design Patterns will find this book a good reminder that there is more to the patterns universe. This is not as thorough as a guide to architecture patterns as books like Pattern-Oriented Software Architecture Volume 1: A System of Patterns are. And it's not meant to be. But if you are looking to understand why you might care about patterns that describe working at a system level, and have not found a good resource to do this yet, this book is worth a read.

Saturday, September 7, 2013

Zen of Listening (Book Review)

Listening is an often undervalued skill. Often you can do a better job of communicating what you want other to know by listening better to your audience. The Zen of Listening: Mindful Communication in the Age of Distraction is a very practical guide to understanding impediments to listening better, and improving your listening skills.

This is not a typical communications book full of techniques to help you convince others that you are listening. This book focuses on techniques to help you build a mindset to listen better. You'll learn how you think about interactions, and how that thinking affects how you respond.

This was a deceptively simple read. The book was easy to get through, but after you read each chapter you are left with a lot to think about. The book will leave you with insights that will help you to understand and improve your interactions with others. As you read, you'll understand both about how you listen, and why some interactions might bother you. With this information you can start figuring out how much you can change your approach to an interaction to get the most out of it.

In addition to stories, examples, and advice, each chapter ends with a few simple exercises to help you practice what the chapter discusses. In spite of the title, the explicit references to Zen philosophy and techniques are few. The importance of meditation as a way to help you learn to reduce distractions is a recurring theme. This is a very practical book with advice that you can start using immediately.

My one minor complaint about the book is that a brief discussion in the last chapter about the negative effects of online interactions seemed to be a missed opportunity. While it is good to keep challenges of various media in mind, it would have been a pleasant surprise to see a discussion of how the lessons in the book could be applied to make all interactions more effective. This  does not take away the value of the book, and perhaps applying the techniques to other forms of communication can be an exercise for the reader. This is worth a read if you are interested in learning more about how you can listen and communicate better.

Sunday, August 25, 2013

Lean UX for Startups (Book Review)


I recently received a review copy of another book in Eric Reis's Lean series, UX for Lean Startups: Faster, Smarter User Experience Research and Design. In this book, with a lively, if somewhat irreverent, tone, Laura Klein guides you through the process of using UX as a gateway into finding a market and eventually, success. This book has pragmatic advice on what to do and how to do it now, and more importantly, what not to spend time on. Not just a concept book, this book discusses tools and detailed approaches. Klein addresses many of the concerns people might have about "skipping steps" in order to be lean, and explains the both the challenges and benefits of a lean approach to UX design. The author discusses how UX fits into an agile startup environment.

This book shares some of the irreverant tone of another book geared to people starting a business: The Pumpkin Plan: A Simple Strategy to Grow a Remarkable Business in Any Field. The author's tone takes a bit of getting used to, but the advice is good, and actionable, and the style of the writing emphasizes the "just do it" theme of the book.

UX For Lean Startups has a slightly different audience than the earlier, similarly titled book Lean UX: Applying Lean Principles to Improve User Experience. Looking at the books, it's a bit unclear which one to read. As it happens, Lean UX: Applying Lean Principles to Improve User Experience is more about how to apply Lean Principles to UX design, with an eye toward migrating from a non-iterative UX process to a more iterative, lean, agile process. That book seemed to be geared more towards UX professionals, though anyone who touches UX could benefit from it. Lean UX for Startups addresses the needs of entrepreneurs and members of a startup who want to have a good UX, but can't waste a lot of time and effors on it. I'd reccommend that either individual get both books. But if you are building a startup, this one will give you the most actionable advice quickly.

You can benefit from reading both books. If you want to read one on UX, you might get more out of the Lean UX book. And Maybe read Lean Startup or perhaps the Pumpkin Plan. This book will add information so it is worth a read. The 4 books I mentioned would be a good addition to the library of anyone who is starting a business and wants to deliver value quickly.

Saturday, May 25, 2013

Lean User Experience: Using UX on an Agile Project

User Experience is a discipline that has a strange relationship with Agile. On the one hand, traditional UX work involves research, testing, and other steps that seem inconsistent with working in the context of an agile project. It also seems to be a discipline where practitioner often seem to be committed to a Big Design Up Front approach, which is inconsistent with Agile. On the other hand, getting the user experience right seems like an essential part of delivering value. The book Lean UX: Applying Lean Principles to Improve User Experience explains how UX work integrates with agile.

The book combines the themes of The Lean Startup: How Today's Entrepreneurs Use Continuous Innovation to Create Radically Successful Businesses (including MVP: Minimum Viable Product) with those of user experience and agile methods like Scrum, in a concise, book that can serve both as a quick overview of the concepts which you can read in one or two sittings, as well as a reference for how to apply the process on your team.

This book has stories, templates, guidelines to help you both use User Experience Design in an agile team as well as to use User Experience to help your agile team do a better job of building the right thing. Much of what you'll read will strike you as "common sense," which, sadly, does not translate to common practice in many organizations.

This is a rare book that is information dense, yet which does not allow that information density to compromise readability. The viability of the book as a reference compensates for the one flaw I see in it's presentation of the principles of Lean UX: there are too many principles.

The book starts with a list of 15 (related) principles of Lean UX, which is far more than most people can keep in their head, making it harder to both sell and internalize the ideas. I understand that there is a lot to do to implement Lean UX, but I can't help think there must be a way to distill the 15 principles into 5-7 key ones which incorporate the spirit of the whole set. This may sound like a petty detail, but I suspect that it would be hard for someone not as versed in the concepts as the authors to sell the concept based on those 15. If you can't sell an idea, it is that much harder to break down opposition to it.
The concrete, concise way the authors describe how to implement Lean UX in various environments compensates for this, but since the book started out with an overview of principles, I was initially concerned about how the rest of the book would go. It is worth pushing past the principles section to learn the value of Lean UX, and techniques to use it effectively.

The book will be useful to managers, UX designers and developers and anyone wondering how UX can work in an agile environment. Since user experience is such a central part of the product definition it will also be useful to anyone who simply wants a better understanding of agile product development.

(Note: This review was based on a review copy of the book.)

 

Sunday, March 31, 2013

The Human Side of (Agile) Software Development

In  the Sept/Oct 2012 issue of IEEE Software Linda Rising writes on the role of sterotype and collaboration in teams and explains that i t was only late in here career that she came to the realization that the "people side" of software development is both really important and really hard.

This is an important point, as it is quite easy to think that it's easy to ignore people in a project while you have more important things to work on, such as code, and tools. There is an intersection between people and tools; tools like Software Configuration Management systems, Wikis, issue tracking systems (be they software based or index cards on a wall) can improve or detract from the effectiveness of collaboration on your team. But it's easy to get hung up on the tools and not think about the effect of the tools on the really important thing: How the tools help (or hinder) the people on your team from collaborating to deliver business value.

I was fortunate to have had the importantance of the people side of software brought to my attention early in my career when one of my first managers suggested that I read The Psychology of Computer Programming. Over  time I  discovered more of  Jerry Weinberg's books, and all have had a had a great influence on me. A particular favorite of mine is Becoming a Technical Leader: An Organic Problem-Solving Approach.

It seems like, with resources like this around, and a focus on agile software development, it should be easier for developers to understand that people and teams are as important as they are. But acknowledgement of the humans side of software is not universal, even as we're starting to acknowledge parallels between software development and other endeavors such as artistic performance.

Fortunately there is a excellent recent book by Gil Broza, apltly named The Human Side of Agile, that explores the relationship between people, tools, and processes in software development. I posted a review on Techwell.com, but in brief,  this book is a great agile-focused addition to my list of recommended books on how help teams be effective. Reading this book early in your career will give you a good start on understanding an often neglected aspect of software development. Those who understand it already can benefit the guidance the book offers about how to help others understand.

Reading any (or all) of these books will help you understand how to be more effective, and how to help your team be more effective in turn.


Books mentioned in this post


Lessons in Change from the Classroom

This is adapted from a story I shared at the Fearless Change Campfire on 22 Sep 2023 I’ve always been someone to ask questions about id...