News for hackers. Stuff that matters.
Re:Notch live coding 0x10c by yellowbkpk on Saturday April 07, 2012 @04:39PM (#3812057)
He's not even putting Eclipse's keyboard shortcuts to full use. If you have a passing knowledge of a few important key combinations you can move quite a bit faster than he is.
Re:Notch live coding 0x10c by jcrites on Saturday April 07, 2012 @04:47PM (#3812084)
What are some examples of shortcuts you recommend?
Re:Notch live coding 0x10c by edwinnathaniel on Saturday April 07, 2012 @05:26PM (#3812171)
Find your own workflow and memorize the shortcut keys.

Some of the keys I memorized:

F3 and F4 are must.

Ctrl + . = Go to (next) Error

Ctrl + 1 = Quick Fix (usually follow the above)

Ctrl + Shift + T = Open (T)ype (Java class/interface)

Ctrl + Shift + R = Open (R)esource (all files)

Ctrl + E = Show list of opened files in the IDE (if you type the file name it'll highlight/select it for you once this pop-up is active)

Format on Save - hook up your style with the Save action (right indentation, spaces, tabs, or whatnot).

Bind others that requires multiple steps (generate getters and setters).

If you're like me and use JUnit as a substitute for REPL:

Alt + Shift + X + T => run unit test.

Alt + Shift + D + T => run unit test in debug mode.

There are tons more if you know how to use Eclipse...

For Mac: swap the Ctrl key with Cmd.

Re:Notch live coding 0x10c by cageface on Saturday April 07, 2012 @08:46PM (#3812625)
I was doing some Java coding recently for the first time in a long time and I was really shocked at how good the synergy between Java and a good IDE can be. Java as a language is uninspiring but it's only half the story.
Re:Notch live coding 0x10c by edwinnathaniel on Sunday April 08, 2012 @12:05AM (#3813003)
Also check out Maven. Java, IDE (eclipse/intelliJ), and maven will give your productivity a turbo boost.
Re:Notch live coding 0x10c by dm3 on Sunday April 08, 2012 @06:17AM (#3813527)
A couple more not used by Notch:

Alt + Shift + i = inline variable/method

Ctrl + Shift + up/down = select the larger/smaller block of Java's AST

I also tend to create shorter keybindings for unit tests:

Ctrl + R = run unit test (from the test class file)

Ctrl + Alt + R = re-run last unit test