5 ms·
Wow, maybe it's because he's done it a million times before, but it looks like he's super efficient, mainly because he's using the IDE's features to the max. He
by makmanalp 15y ago
Wow, maybe it's because he's done it a million times before, but it looks like he's super efficient, mainly because he's using the IDE's features to the max. He's also rapidly iterating at about 3-4 builds per minute.
- xuki 15y agoI think the code compiles as he types so he does not waste a single second waiting for it to compile. Pretty impressive.
- danieldk 15y agoEclipse has a built-in incremental compiler (ecj), that is used to continuously give feedback.
- fleitz 15y agoI use livereload for this when coding webapps, it's a massive productivity boost.
- edwinnathaniel 15y agoPlay Framework in the past embed Eclipse build-in Java compiler to avoid compilation step.
- frou_dh 15y agoLast time I watched his stream, he had a cool setup where he could edit the Java methods on the fly without restarting the game.
- JeanPierre 15y agoYeah, that's hotswap in practical use. When using debug mode in Eclipse, you're able hotswap - which basically means that you can change the content of a method while the program is running. When the method is called again, the new content will be executed.
- yellowbkpk 15y agoJust a point of information: he can't do that here because the Java/OpenGL interface is all static Java methods (which only get loaded when the class loads the first time).
- julian37 15y agoI might be missing something, but how is that relevant? Surely there's no need to hot-swap any OpenGL API methods, right? EDIT: Also, I googled a bit and I can find no indication that HotSwap doesn't work for static methods. Are you sure you're not spreading misinformation here? See for instance http://stackoverflow.com/a/9466778 http://stackoverflow.com/a/9466778
- TazeTSchnitzel 15y agoHe was doing it here though.
- bobobjorn 15y agoyou can also do it with jrebel, which can reload alot more then debug mode.
- yellowbkpk 15y agoHe'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.
- jcrites 15y agoWhat are some examples of shortcuts you recommend?
- edwinnathaniel 15y agoFind 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.
- cageface 15y agoI 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.
- edwinnathaniel 15y agoAlso check out Maven. Java, IDE (eclipse/intelliJ), and maven will give your productivity a turbo boost.
- dm3 15y ago