Feeds:
Posts
Comments

Archive for November, 2007

You know how sometimes when you’re out at a bar with your hot friends and even though you’re drunk and it’s really late you can still tell that the person who’s checking you out is not your type? No? Me neither… I’d much more likely be the unlucky one doing the checking out. Well, at least Eclipse gives us [...]

Read Full Post »

Content assist and templates

Let’s face it, we’d all like to do a little less typing and a little more sailing, wouldn’t we? Ctrl-space is the jack-of-all-trades keystroke that will have you typing less and hitting the water in no time. It goes by the intriguing name of “Content Assist” and I must admit that it’s a little hard to [...]

Read Full Post »

Taming large methods

Next to using a chair and a whip, one of the most effective ways to tame large, complicated, methods that do many things is to refactor them into smaller more manageable methods that each do a single thing. Eclipse offers an “Extract Method” refactoring for this case. You can select a block of code that you want [...]

Read Full Post »

Sometimes I wish that my IDE were smart enough to write my code for me by having a keystroke for “fix bug” or “imagine what customer wants and implement it… elegantly”. Eclipse can’t quite do that but it does have a wicked-cool keystroke in Ctrl-1, which depending on the context can suggest some pretty intelligent things.
For example, if [...]

Read Full Post »

Check your references

Got a misbehaving class? Need to find out who’s using it? Ctrl-Shift-G and Ctrl-Alt-G are on your side. Ctrl-Shift-G is used to find all references to a particular symbol in the workspace and it’s also activated by right-clicking in the editor and selecting References > Workspace. Ctrl-Alt-G is textual search for the highlighted word in [...]

Read Full Post »

Can anyone comment on this?

I’ve thought about this for some time and have come to the conclusion that commented out code is evil. Sometimes it’s left there because someone’s hinting at alternative solutions in an attempt to be helpful or as a piece of historical antiquity for future generations to puzzle over but most of the time it serves as [...]

Read Full Post »

Run, Forrest, run!

The first time I saw Forrest Gump I thought it was a great movie. I was particularly impressed with Tom Hanks’ portrayal of the mentally retarded Gump. Years later, I had the misfortune of watching The Terminal in which Hanks revises his Gump role, this time as a mentally retarded traveller/interior decorator who gets stuck in an airport [...]

Read Full Post »

Did you know that Sting used to be named Gordon Sumner, that John Denver was Henry John Deutschendorf or that Michael J. Fox was Michael A. Fox? Name changes are uncommon when we’re talking about people (except in the entertainment industry, apparently) but they’re very common when we’re talking about code.
Renaming is one of the [...]

Read Full Post »

List all shortcuts

At the risk of rendering this blog superfluous, Ctrl-Shift-L is the shortcut that lists all shortcuts – a meta-shortcut if you will. Type it and it opens a scrollable table in the bottom right hand corner of the workbench. Shortcuts are listed in alphabetical order according to the rather intuitive names given them by the [...]

Read Full Post »

Kills lines… dead

I’ve become so accustomed to using this keystroke that I now constantly type it in applications that do not support it, then I become angry that they don’t. Anger leads to hate, hate leads to suffering and the next thing I know, I imagine reaching for a lightsaber (you know, the one that says “Bad Mother F***er”) to slice my [...]

Read Full Post »

Older Posts »