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.

IDEA vs. Eclipse

I've been switching back and forth between IDEA and Eclipse for the past couple nights. I DO like IDEA, but as I only have 3 days left on my evaluation, I'll sadly have to let it go. My favorite feature is it's ability to recognize that you haven't imported a class, and then allows you to hit Alt+Enter to add the import. Also, it grays out imports that aren't being used, both very slick features. As for generating getters and setters, it does a poor job in my opinion. It puts them above your variable declaration and doesn't add any javadoc comments. Eclipse puts them at the bottom of your class and adds javadoc comments - so Eclipse wins here. Also, Eclipse does a much better job of adding and recognizing javadoc comments. IDEA wins on indentation, it always seems to know where you want to be. If I get a full time gig here soon, I might have to buy IDEA. I think it's best when you can use multiple tools to make your development life easier. I say screw these debates on Eclipse vs. IDEA or Struts vs. Webwork - use them all! (I need to examine Webwork as it gets lots of good comments from it's developers.) Of course, it's easier to use both when you have a dual-monitor setup! I highly recommend this... it's awesome!

Later: The other thing that IDEA wins on is that it can actually run my Ant script without puking. Eclipse doesn't let me run it - maybe it's cause it has Ant 1.4.1. Hmmm, wonder if I can upgrade it to 1.5.1. IDEA has better XML editing, and even seems to detect errors in build.xml.

As I'm editing this post with the Later paragraph, I received the following from Cédric (who seems to work for BEA from his e-mail address).

You didn't say if you already knew this about Eclipse, so I thought I would tell you anyway:

- To fix a missing import, just press Ctrl-1 (Quick Fix) on the class with squiggly lines. Ctrl-1 does a lot of incredible things, like it sometimes reads your mind. I much prefer this approach to having specific actions and shortcuts to remember. Another interesting one is Ctrl-Shift-O (Organize Imports), when you have a lot of imports to fix. Eclipse will analyze your whole source and add them all for you (and possibly prompt your when there are ambiguities).

- The latest builds underline the unused imports with yellow squiggly lines.

-- Cédric http://beust.com/weblog

Sweet! Must be time to download a nightly build!

Posted in General at Dec 10 2002, 10:35:41 AM MST 4 Comments
Comments:

Regarding the location of where getter/setters get generated in IDEA... my experience is it generates them where your cursor is. So move your cursor before generating to the location where you want them and see if that helps.

Posted by Erik Hatcher on December 10, 2002 at 12:28 PM MST #

I'm all sold on Quick Fixes in Eclipse! What about unhandled exceptions? "Would you like a try-catch, sir, or just plain old throws?"

Still, I haven't tried IDEA, so I'm not comparing the two anyway. Where IDEA beats Eclipse for sure is JSP support (which is close to none in E.).

Posted by Greg Klebus on December 10, 2002 at 06:09 PM MST #

ditto that on putting new getter/setters at the current cursor location. Don't know about the javadoc, but am surprised if it isn't in there...

Posted by deeje on December 10, 2002 at 06:20 PM MST #

The code folder of IDEA is so cool! I know this feature first from VS.Net, it is very convenient when you walh throught the code. There are some plan mentioned in Eclipse milestone build note about code folder too.

Posted by dxiang on December 12, 2002 at 02:25 PM MST #

Post a Comment:
  • HTML Syntax: Allowed