
Čtvrtek březen 31, 2005
Make your IDE beep!
While going through the list of
Netbeans' keybindings I was trying to figure out what's the use case for each of them. Then I stopped at this one:
beep. Users can define a shortcut and the IDE beeps for them. Hmmmm. What's the usage of this one...? After a while of thinking I started to laugh. Truly amazing! You define a shortcut and the IDE beeps for you! And you can define as many shortcuts as you want and it beeps on all of them! :-) Beep, beep, beep.
What a pity we don't support several different sounds, we could use the IDE as a piano :-) I bet this is also possible in Creator and Java Sun Studio, unless they redefined it, Sun's development tools can beep on request. Wow, how powerfull!
P.S. Enjoy your beeps now, unfortunately they will be removed in next release with several other obscure actions (to make settings simplier). Unless people will consider this as regressions and file bugs for their favourite beep action :-)
Regexp Search in NetBeans
We've recently added regular expression support into the Find dialog in
NetBeans (the Ctrl-F one). Works like charm for both find and replace.
But not for all users. Several days after commit we've got user feedback: "But you don't support back-references". "Sure we do". "They don't work for me".
So the problem is that there are two types of back-references. One type which is denoted as $1 and one as \1. NetBeans uses the $1 one which is used normally in Java. However some other parts of the world are using \1.
So how do we tell users which one they have to use? Nobody really reads documentation so perhaps we need to tell users in the dialog. If they try to use \1, we should politely ask them if they didn't want to use $1. Sigh, why can't there be just one standard for everything? :-)
For those who do not know what back-references are, here is my explanation:
Back-references are a very useful when replacing some text. You have the following text: "Hello, world". Now, you can do following:
If you replace the text like this in NetBeans, the result is: "Farewell, world". One replace is not much useful, but imagine if you have a long file where you need to do many replaces and a the file's more complicated. You can use $2, $3, etc. for next elements in parentesis if you want to replace more of them at once. $0 is used for the whole searched string.
This feature can certainly save you a lot of time you would spend by manual editing. And you can impress other people with it as well :-)

Středa březen 30, 2005
What is this Software Usability, anyway?
Don't be scared, I'm not going to give you yet another software usability definition (TM). Actually even if I wanted to, I could not. I've read recently many papers on software usability. And everybody seems to have his own a bit different definition (and the right one, of course ;-). There are things which are common, but still this topic is somehow not exact.
I'll make my life simplier by focusing on usability of an IDE (Integrated Development Enviroment). My target group is a java developer using this IDE and I want to make it as usable for him as possible. So here's how I imagine good usability of an IDE, written with developer's words:
"Give me an IDE which doesn't annoy me [stable, responsive, error prone, fast]. Remove all those weird things [features he doesn't understand or are useless]. Give me all those cool features [those which enhance productivity]. Make me feel that I have full control over the IDE [understandable, manageble, memorable features]. And btw make it look slick [good UI design]."
So this is what I focus on when working on usability of our IDE. Agree or disagree? Looking forward to your comments!
P.S. I recommend to read this piece:
Usability and Open Source Software. I agree that usability of many opensource projects sucks - not those sponsored by Sun, of course :-)
Lots of NetBeans Editor Improvements
Lately I got quite excited by the amount of small improvements in the
NetBeans editor. It's nice to see that things are moving forward, especially if it's the way you want it to go :-) And there is still a loong way to go, but that's another story.
So what's new in NetBeans 4.1 editor? My favourite pick is hyperlinking. It's this nice thingie you can use for navigation. You can just press CTRL and hover mouse over your source code. It gets underlined and you can jump to the declaration of the elements. Simple and functional.
Now what rules on this is that you can very easily go through your source codes, like if it was a web browser. And if you feel hard core enough, you can walk through JDK sources (works out of box from src.zip). It's interesting to see all those classes like String, there's a lot of history inside.
Another new thing are the back and forward arrows in editor toolbar. The actions were there for years but finally everybody can use it without searching for the shortcut. Works perfectly with hyperlinking.
What else? This is very small improvement but I've missed it... try to click on the line number in status bar of recent NetBeans. You get the go to line dialog. Some people smashed their heads here and asked: Why don't we have it already?
We also have now the error stripe feature. That's this right side stripe which shows you all errors in source code. Not only shows, but you can click on it and it jumps to the error, bookmark, breakpoint, todo, etc. A pity it won't be a part of the release, but it will be available through autoupdate for everybody. So I think I'll have to write many e-mails to people who will ask where is it after release.
There's also a lot of bugfixes for 4.1, the bookmarks are saved over sessions now. So they are actually finally usable. Why to use bookmarks in source codes if after IDE restart they're gone? This was a tough one, but they made it and it works now.
There are many other things going on, I'll post later some info about the new code completion. One colleague is also working on suggestions - a small light bulb which helps you with the code. The other plans look promising, too.
|
|
| Hyperlinking screenshot |
Error stripe screenshot |
Greetings from Prague!
So you think... another new blogger, is there not enough bloggers already?
Sure there is, way too many, I would say :-) Yeah, I also don't want to miss
the momentum and become popular with my blog!
Jonathan, you have serious
competition now!
To introduce, I'm a member of the
Prague NetBeans team, so far I haven't seen
anyone else from NetBeans blogging. Maybe I'm just the early adopter.
Btw, have you already been to Prague? You can't miss it, we have the best beer in the world,
the city has wonderful historical atmosphere... and did I say that our beer is just great?
My other interests which I intend to write about are software development and it's failures.
I am also busy with software usability. And fun, lot's of fun.
I will be glad for your feedback, also negative if you have enough courage.
Anyway, even if you are just a lurker, enjoy your reading.