a9e871eaacac4d84554dd19fdbffa92142980047
wiki/howto/onboarding-glossary.md
| ... | ... | @@ -24,5 +24,6 @@ A basic rundown of *what's what*, so you can dive into the other documentation m |
| 24 | 24 | - **Velocity made good** is speed towards or from the wind direction. |
| 25 | 25 | |
| 26 | 26 | |
| 27 | - |
|
| 28 | - |
|
| 27 | +## SuperDevMode vs DevMode (for GWT) |
|
| 28 | +Previously there was a browser called Netscape, they developed a technology called Netscape Plugin Application Programming Interface (NPAPI), which was an API, allowing plugin integration. When the browser couldn't handle content, it utilised plugins. IN GWT, DevMode we use this and have a plugin that acts as an in-between for the JavaScript and Java. However, all requests first make a call to the Java routine, which then does a roundtrip (usually) to set anything in the page, and finally returns. This is quite slow and the NPAPI stuff has been deprecated. Instead, we use SuperDevMode now. You still have a HTTP server which serves the content initially; this triggers a request for the nocache.js, to the SuperDev server, which transpiles the code into "draft" JavaScript (which is unoptimized), utilising source maps, and replaces Source Maps enable us to map the JavaScript back to readable Java code (as it is often optimised to the point of confusion). |
|
| 29 | +This new method allows debugging on more platforms and is fast; however, it does make debugging more difficult. |