Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

In the market for a new bike

After enjoying a few cold ones after the Denver JUG last week, I walked outside to find that my bike was gone. It was a nice bike (a Gary Fisher Sugar 3+), so now I'm in the process of trying to find the same one on eBay. The loss should be covered under homeowners insurance, but it's a high deductible that'll likely only result in a few hundred bucks. Oh well, it's just a bike. With the bad luck I've had in the last couple months (lost phone, laptop dying in Norway), I'm hopeful some good luck is right around the corner.

Posted in General at Jun 13 2005, 10:19:33 AM MDT 6 Comments

RE: Why wait for Intel?

Norman Richards asks Why wait for Intel?. He argues that you might as well upgrade now if you want a faster Mac. I've had a very personal experience with a new Mac recently and I don't think it's worth the upgrade. My "normal" PowerBook is a 17" 1.33 GHz with 1 GB RAM. The new one I bought is a 17" with 1.67 GHz and 1.5 GB RAM. When I first got the new PowerBook, I did some brief tests against my current benchmarks. To my surprise, the new PowerBook is not faster than the old one. In fact, in some tests it was slower.

Yes, this does seem impossible. I will re-run these tests before I get rid of this new machine, but right now I don't see any reason to upgrade.

Posted in Mac OS X at Jun 10 2005, 11:54:25 AM MDT 4 Comments

Notes from DJUG: Rhythm and Open Source Strategies

Last night I had the pleasure of listening to two great speakers at Denver's JUG. Not only did Brian and Lajos know their stuff, but they were very comfortable on stage and interesting to listen to. Below are my notes from this event. When I did a print preview of this in Dreamweaver, it came out to be 5 pages - so just to warn you, this is a pretty long post.

Brian Boelsterli - Nudging your organization towards agility: Ingredients for an agile execution environment

Even if you have a dream team of developers, it doesn't mean the project will succeed. Process Matters. A lot of what Brian's Rhythm process was developed while working at Sprint - where they completed 169 iterations on their way to production. There are problems with agile methodologies: team has no rhythm (restart, pause, delay all the time), project plans are big and heavy and just about worthless, methodology teams get in the way, specifications are close to worthless, design review meetings are horrible. In order to combat these problems (regardless of your methodology), Brian has developed a Rhythm Process that helps agile methods succeed. This system contains a number of ingredients to solve problems with agile methodologies.

Heartbeat/Stacked Iterations "...no rhythm" Iteration Artifact Review Meeting (iARM) "...worthless review meetings."
Software Push "...software deliveries are atrocious" Issue Review Meeting (IRM) "...lack of pattern for managing our backlog of defects ..."
Iteration Advocate "...methodology team gets in our way" Software Iteration Plan "...worthless project plans"
Iteration Artifacts "...worthless artifacts" Iteration Transition Meeting (ITM) "...we are status-based, instead of delivery based!"

The Heartbeat is the logical representation to the physical thing called an "iteration". Starts Thursday morning, ends Wednesday night - based on psychology b/c it fosters sustainability. By giving 2 days to start a new iteration, they've found higher productivity because no one wants to work the weekend.

Rhythm advocates weekly iterations, regardless of deliverables. The primary reason for this is to maintain the heartbeat. Rather than doing XP-type iterations where you do everything in an iteration, you do Stacked Iterations. In an iteration, you still do full lifecycle (requirements, development, deploy), but the Business Analysts are 1 iteration ahead of the developers and the developers are 1 iteration ahead of the deployment team. In Rhythm, there's an Iteration Advocate who gathers and manages requirements, Developers do the development, and the QA team does automation and deployment. I've worked with this system in the past with Brian and this process works quite well.

Iteration Advocate: Traditional "Process Mentor", in disguise. They're responsible for making sure the spin happens and the work gets done. Responsible for one thing: Ensuring the successful delivery of each and every iteration. A big reason that Rhythm advocates this role is because they've found that Project Managers tend to spend 80% of their time doing PM work. By having this role, the PM can concentrate on managing the project and doesn't have to be concerned about managing people and their deliverables. As part of each iteration, artifacts are produced. This makes it possible to put the project in hibernation at any iteration transition point.

Software Iteration Plan (SIP): A simple artifact that includes features and tasks, as well as defects to fix for each iteration. As part of the weekly planning, this artifact is re-visited and updated. Depending on how formal your organization is, this document can be kept on a wiki site, in a word document, etc. Meetings are held every Wednesday afternoon - where PMs sit in a room and team members come in and report their status.

Iteration Transition Meeting (ITM): Backbone of the process - happens every Thursday morning and involves all parties involved in the project. Similar to SCRUM's Post-Sprint Meeting. It's an official buyer/seller marketplace for cross-functioning teams to buy/sell iteration artifacts.

  • Definers are selling their requirements, analysis and design specs
  • Developers are selling their functionality
  • Testing are selling their test plans and specs

Participation requires a minimum of one representative from each respective group. Project Manager conducts, Iteration Advocate facilitates. Brian says this meeting has virtually eliminated the need to do status meetings.

From working with Brian, I know that one of the key ingredients to this process is the Testing Team. The folks that typically fill the QA Developer role is on a whole new level from most testers I've seen. Rhythm Testers are automation experts and know how to setup CruiseControl, run Ant/Maven/Unit tests, as well and configure and deploy to production servers. These folks are the ones who handle the initial installation and configuration of the test, development and production servers.

As part of Rhythm, it's also important to plan for "Featureless iterations" - where nothing is done but run performance tests and regression tests. Done at both 40% and 60% project completion. This was a good presentation about an excellent process that I still try to use today. In my experience, the hardest part to implementing it is finding good QA Engineers that are automation experts as well. Nice job Brian!

 » Download Presentation (PPT)

Lajos Moczar: Creating A Successful Open Source Strategy

Lajos is a committer on OpenEJB and has written two books: one on Cocoon and one on Tomcat. Lajos has been working with open source since 1995 and has a company called Galatea Information Strategies in Colorado Springs. Lajos mentioned that he recently became well-known in the open-source world by writing a paper titled "Start developing and deploying J2EE apps on the first open source J2EE server". This title apparently pissed off the JBoss guys to no end, their PR Firm called JavaWorld and they renamed it to A first look at Apache Geronimo. Because of the JBoss controversy, Lajos became inspired to write The open source monopoly, which explains why he thinks doesn't think JBoss is open-source.

NOTE: The big reason Lajos doesn't like corporate-backed open-source is because he feels that quality app servers like JOnAS deserve lots of press too. However, they don't have the marketing dollars that JBoss has, and are therefore overshadowed. He also mentioned how dangerous it can be when a project's committers get so full of themselves that they start veering from a standard (i.e. J2EE) and developing their own add-ons. If companies and developers use these add-ons, it leads to Vendor Lock-in, which is the same as the lock-in you find in commercial products with proprietary APIs.

Bottom Line for open source adoption: Open Source is mature for the enterprise, as long as you're mature in your approach to it.

The state of OSS: Over the past past 4-5 years, OSS has gone from youth to adulthood. Now a viable choice for large-scale organizations, common talk in business and news. Recent report from CSC on enterprise usages of OSS:

  • 70% have Linux and/or Apache
  • 42% are using Tomcat
  • 14% are using PHP

OSS in young adulthood, where childhood was free software, not a thread to the mainstream. OSS was born of the hacker culture of the 70s (and earlier). Richard Stallman and GNU dominated open source in the 80s and early 90s.

In Adolescence, open source went a big crazy (late 90s). The Big Split was when open source was redefined as a methodology instead of a culture. Eric Raymond, Netscape and the launch of "commercial" open source. Open source != free software. Open source + the Internet = Linux, which leads to popular access to open source.

Now in Young Adulthood, where there is an explosion of choices (in Operation Systems, Containers, Technologies (i.e. PHP, Perl, Python, etc.), Web Frameworks). 34,000 open-source projects on freshmeat, 86,000 on sourceforge. There's also an explosion of licenses. Explosion of technological advances in web services, Java and development technologies. This has all resulted in an explosion of adoption in many large organizations.

Is OSS Mature? Open source faces a crisis of maturity:

  • Does it achieve the ideals of its origins and stay as a separate force in the technology world?
  • Does it get subsumed by the increasing trend of corporate open source?

With the "corporate open source" model, the project is essentially a product, except that it's free and and you can see the source. Are we losing the intrigue and excitement that the 2:00 a.m. developer experiences? The "corporate open source" model seems to discount the roots of open source - when developers stayed up until the wee hours of the morning to develop something they were passionate about. With the corporate model, it becomes their job and could lead to a loss of passion.

Some Challenges: As OSS matures, there are challenges that face OSS implementers, particularly those in advocacy/evangelization roles. Inherent problems - a lot of releases (difficult to keep up), is it really free, etc.

More Challenges: Overwhelming choices (choose a languages (Java, Perl, C#, Python, C++) , choose a direction w/in a language (i.e. Java 1.4 or 1.5) , choosing a technology direction (J2EE or just part of it - sans EJB).

After this overview, Lajos went into an example of how open source is typically adopted in an enterprise. It starts off with a web application pilot, where a developer downloads Apache + Tomcat, spends a day getting them talking to each other, and then configures everything using the default settings. From there, an application is developed w/o code or directory structure standards, without security and without failover solutions or backups. Nothing is documented as development ensues. This pilot becomes a production application and the IT organization has no idea how to support the application, and new developers have no idea how to maintain it, or start a new project based on the same architecture and tools. Bottom line: using a pilot like this is an irresponsible way to introduce OSS to your enterprise.

Typical OSS Introduction problems: The first step towards successful OS is organizing the problems or "challenges". Use of technology problems, process problems and choice problems. OSS has the strange effect of highlighting inherent problems in your enterprise or IT strategy. These problems can be fixed.

  • Technology problems: Technologies come and go, but the core business stays the same. What is important is that you know how to use and what you choose. Commons IT mistakes: The latest and greatest, bleeding edge software, technology for the sake of technology, instead of for the business. Sounds obvious, but you must always start with one question: what is the purpose of IT?
  • Process problems: OSS highlights already existing process problems b/c it's very accessible, tends towards permutations in options and versions and there's less work done in the way of best practices than we need. You need a solid infrastructure - processes and principles - to handle the problems with OSS and to insure complete success with it. More than ever, this is the time for process: no OSS implementation should be w/o them! Develop, test, upgrade, deploy, etc.
  • Choice problems: Factors influencing choices: technology direction, project viability and health, knowledge base, license type, corporate sponsorship, "spirit" of founders.

Principles of a Pilot: Your pilot is the most critical step in OSS implementation. The pilot must demonstrate: sound and viable technology choices, solid processes and principles, vertical slices.

Starting a web pilot right: Research the options: which version of Apache/Tomcat/MySQL is the most stable (use mailing list). What is the proven integration solution, security "best practices", licensing concerns? Are there documentation concerns? Do you have to pay for it? Is it any good?

When starting with open-source you need to plan, plan, plan.

  • Organize your directories for repeatability, ease of maintenance.
  • Separate program directories from development directories from deployment directories
  • Document all configurables, installation quirks, directory locations
  • Define a solid and repeatable build process
  • Never take all the defaults! Determine what to change.

Authentication and Security. Problem: multiple logins is the curse of the modern enterprise - don't reinvent! Use single sign-on if possible. Don't have an LDAP server, install one! Kerberos is a good option if you are starting out: a bit of work, but worth it. Problem: OSS is not inherently more secure than anything else. Solution: research for the most low-risk products. Keep currently with he project bug lists and security announcements. Subscribe to all relevant mailing lists.

Development processes. Problem: Need a development process for OSS-based applications. Solution: Use CVS with replication (CVSUP). Use Ant/Maven with a well-documented target/properties schema for builds. Implement a three-stage process, of development, QA and production. Create a simple process for tracking application releases and enabling rollbacks.

While listening to Lajos talk about all of this stuff, I couldn't help thinking to myself that AppFuse solves a lot of these problems for you. ;-)

Understand the Pitfalls of OSS:

Version mania and product instability: establish your own release criteria and testing plans. Always upgrade with a rollback plan. Once you find stability, keep it!

Lack of product infrastructure: Great products are useless w/o the proper infrastructure. If any of the following don't exist around an open source project, it's a warning sign that it might not be ready for prime-time.

  • premier documentation (i.e. books)
  • training services
  • tiered support services
  • integration services
  • security alerts
  • intuitive administration and operator interfaces
  • interoperability testing - does the release announcement provide upgrade paths?
  • load testing
  • release criteria (i.e. basic interoperability testing, tested functionality, etc.)

Free software is not really free - there will be costs:

  • Training
  • Consulting
  • Hardware
  • Support

Flavor-of-the-month technologies: ask the hard questions about any technology, jumping on the bandwagon for its own sake will be expensive, older proven technologies are often better. Ruby on Rails fits into this category.

Corporate open source and branded technologies: beware brand names backed by VC funding - they could end up being monopolies. Can lead to Vendor Lock-in. Beware of technologies dominated by a single entity. Standards are the best way to prevent this from happening. The best solution: community-driven standards - complete with best practices.

Open source or "free" software requires the same approach and dedication as does commercial software:

  • Software infrastructure
  • Training, documentation, support
  • Sound implementation, upgrade, support processes

At this point, Lajos gave his recommendations of good open-source projects that are ready for enterprise adoption. I wasn't fast enough to write down the ones he mentioned for Security, Integration and End-user applications. He did say he'd post his slides, so hopefully I can fill this list in later.

  • Operation System: RedHat/Fedora, SuSE, FreeBSD, OpenBSD, Mandrake
  • Data: MySQL (note the license), PostgreSQL, MaxDB, dbXML, Xindice, eXist, Castor, Hibernate
  • Security
  • Web Services: Apache SOAP/AXIS, Tomcat, Jetty, JBoss, JOnAS, OpenEJB, Resin, Geronimo, LUkAS, ebXML, Jabber, SIM, CryptIM, Magpie (PHP RSS), Jena, ircd, OpenCMS
  • Integration: JMS (OpenJMS, SwiftMQ)
  • End-user: Firefox, Open Office

Implement: Once you have organized your choices, divide and conquer. Determine what you will keep commercial: mainframe apps? High-end database platforms? Take one slice at a time: database, communications, server platforms, end-user platforms, web services, networking, etc. Be careful of tightly integrated components.

This marked the end of Lajos's (very enjoyable) presentation. I've known of Lajos through his Apache+Tomcat FlashGuides, so it was very cool to meet the man behind the knowledge. It's also pretty neat that we're both doing the same line of work. I hope to sit down and have a beer with Lajos in the near future. During the QA Session at the end, I picked up a couple of audience tips: Google has their open-source code at code.google.com and Revolution OS is a good movie to rent.

 » Download Presentation (PDF)

This is one of the best Denver JUG meetings I've been to in a long time, and this summer looks like it'll be packed full of good sessions. July's JUG Meeting is going to be awesome: Bruce Tate talking about Beyond Java followed by David Geary talking about Ruby on Rails.

Posted in Java at Jun 09 2005, 03:00:25 PM MDT 1 Comment

Avoiding too many classes in your HTML/CSS

Avoiding Classitis: A nice tutorial on reducing the amount of classes in your code for easier site maintenance. Hat tip to CSS Beauty.

Posted in The Web at Jun 09 2005, 01:16:44 PM MDT Add a Comment

JavaDoc Dashboard Widget

If you're using Tiger on your Mac, you might want to grab the JavaDoc Dashboard Widget. I was inspired to search for this widget by Dave's post on the RDoc Dashboard Widget for Ruby.

Posted in Java at Jun 09 2005, 01:12:16 PM MDT Add a Comment

Free Wireless, Good Beer

I stumbled upon an excellent "virtual office" this afternoon. While riding my bike downtown for JUG meeting tonight, I decided to stop at a local restaurant: The HandleBar & Grill. While driving by a few months ago, I noticed a "free wireless" sign, so I figured I'd stop in and check it out. Sure 'nuff - I'm on it right now! Not only is this a good burger joint, but they have some good microbrews too. Better yet, I just noticed it's happy hour. So here I am, sipping on a Fat Tire and working on open source. Life doesn't get much better than this!

Posted in General at Jun 08 2005, 04:18:32 PM MDT 4 Comments

[DJUG] Rhythm and Developing a Successful Open Source Strategy

Tonight looks like it's going to be a good Denver JUG meeting. The Basic Concepts speaker (Brian Boelsterli) is an old friend of mine and one of my mentors from way back in 2001. He taught me a lot about independent consulting, open-source and software development processes. I expect his talk on his Rhythm: an Agile Execution Framework to be excellent. Here's the summary:

Wouldn't it be nice if you could bring to the table a simplified list of practices that you can plug-into your 'Ecosystem' with tremendously successful results? Say, for example, 169 successfully completed iterations! When you think about spinning iterations, once you complete 10-12 of them, you reach your pace, your hearbeat, your Rhythm. This has been our experience!

Come see how you can plug-in 'Rhythm' into your organization and immediately impact your organization with achievements and successes you've never imagined your team could accomplish.

Following Brian is Lajos Moczar talking about Creating A Successful Open Source Strategy. With my new venture at Virtuas, this talk will definitely be interesting since it aligns with what we're doing for organizations.

In recent years, we have seen not only an explosion in the quality and quantity of open source software (OSS), but also a dramatic rise in its usage. These trends bring new challenges to adopters and evangelists of open source software as OSS is proving to be true alternative to traditional commercial software. As developers, many of us have the unique chance to demonstrate to our organizations that OSS is indeed mature enough to power an enterprise. What is important, however, is to have a solid foundation of principles to guide us through the maze of OSS choices. In this talk, I'll present my own set of guidelines that can help you make sense of the field, avoid common pitfalls, and create a successful OSS strategy.

Of course, the best part of these meetings is the networking afterwards at Rock Bottom. ;-)

Posted in Java at Jun 08 2005, 08:21:53 AM MDT 2 Comments

Using IP over FireWire

This afternoon, I received my 1.33 GHz PowerBook back from Apple (the one that blew up on the way to Norway). Everything is back in working order and no data loss. Good ol' Apple - their support is excellent, even if you do lose your laptop for a week. As part of the transition back to this machine, I've decided to format it and copy everything from my new one. Installing Tiger and doing the "copy settings from other PowerBook" works so well, I might as well do it again. Suspecting the worst, I spent a few hours today backing up everything.

I started by tarballing /Applications (5 GB), /Downloads (5 GB) and /Users/mraible (25.5 GB). I wasn't able to do them all b/c I ran out of disk space, so I had to do the first two and then the last one. As I started to copy this from my PowerBook to my Windows box, it began to look like a long day. Estimated time for 10 GB: 5 hours. So I did some research and figured out how to enable IP over FireWire. On Windows, it was pretty easy - I just had to create a "Network Bridge" by selecting both my 1394 Connection and the Local Area Connection. After bridging them, I added a new Network port on OS X utilizing the FireWire port, mapped an IP address manually, and connected to my Windows share the usually way (SMB). OS X took a while to connect, but then it did and I was able to copy 10 GB in 20 minutes, and 25 GB in an hour. Not bad.

Posted in Mac OS X at Jun 07 2005, 06:37:23 PM MDT 3 Comments

Updated Presentations: Spring, AppFuse and Comparing Web Frameworks

As part of my trip to Norway last month, I had an opportunity to update many of the presentations I've delivered at JUG meetings and conferences. Of course, there's not a whole lot to these slides because I believe the real value is seeing them delivered. ;-)

The presentation on Test-Driven Development with Spring and Hibernate (a.k.a. AppFuse) will serve as the basis for my AppFuse Tutorial at OSCON. If you're planning on attending that tutorial and would like to see any enhancements, please let me know. All of these are downloadable in PDF format.

Enjoy!

NOTE: I updated this site to the latest code from Roller's CVS this morning, so please let me know if you see any issues.

Posted in Java at Jun 07 2005, 12:36:43 PM MDT 4 Comments

What's in Apple's Transition Kit?

I wonder what's in the new Developer Transition Kit from Apple. The biggest thing is you get a 3.6 GHz P4 that runs OS X for $999. I wonder if this sucker is faster than a dual processor G5? I wonder how much RAM it comes with? Is it worth spending $1500 ($500 to join Apple as a developer + the cost of the package). It'll be interesting to see what these machines look like.

Posted in Mac OS X at Jun 06 2005, 10:27:27 PM MDT 6 Comments