by Keyframe · 17y ago · 0 comments
edit: I am watching screencasts now from http://cappuccinocasts.com (I'm not Ruby guy though - PHP, but doesn't matter) - and I am wondering how the hell are you
1) how to debug/profile this? What, a hunch or traces and alerts?
2) .j files are in plain sight to anyone, not obfuscated
3) Why .j at all in production, why not compile down to javascript?
4) It seems nice from a perspective of a desktop guys viewpoint (here is one!)
5) holy spaghetti code
2/3) There is no need to ship .j's in production. We ship a compiler/obfuscator/compressor that will spit out the same illegible code that you would get if you were just using JavaScript with a compressor. It will also concat all the files together to dramatically improve load times.
A big issue that I have with it is that developers end up putting way too much business logic inside the gwt portion of an app, simply because its just java anyway, right? You can't really blame gwt for bad programming, however, because of the notion of its just java it easily allows developers to not think and just put business logic in the ui. If this was javascript developers would much rather do the more complicated business-y things on the server side (typically where it should belong), rather than in javascript because most people really dislike working in JS. I personally feel that its very difficult to build a gwt app while maintaining a clean well refactored codebase and doing TDD is also very difficult with the framework. I say difficult and not impossible, because I have done it in the past, but its not easy and really takes time and care. Again because its not easy to do these things developers tend to not do them, thus leading to messy, hard to change apps.
I thought those issues are now thing of the past. At least that's what I saw in google i/o presentations.
For the other part it seems more like an issue with development approach and not GWT per se. I have only dabbled a bit with it and like it more than writing JS for full blown web apps.
Cappuccino intrigued me because of my background in desktop apps - albeit not Cocoa. There are many idioms I am used to, so I'll give it a spin.