3 ms·
>Play's refresh-recompile trigger means it is not meaningfully less productive than PHP Except with PHP you hit refresh and it is done. With play you wait 10
by copergi 13y ago
>Play's refresh-recompile trigger means it is not meaningfully less productive than PHP
Except with PHP you hit refresh and it is done. With play you wait 10 seconds and it is done. There is a huge difference.
- Aqueous 13y agoBut after you've waited 10 seconds (in my experience, with a single code change it is usually more like 2 - 3 seconds) what you've done has a greater likelihood of working the way you intended, since it wouldn't have compiled at all if your intentions were less well-defined.
- copergi 13y agoPerhaps, but I've already gone back to surfing the web in those 10 seconds. And scala provides pretty poor type safety compared to how bad the compile time is. I don't actually use PHP, I was just pointing out how the claim that play's workflow is just as productive is inaccurate.
- virtualwhys 13y ago> Except with PHP you hit refresh and it is done. With play you wait 10 seconds and it is done. There is a huge difference. eh? With incremental builds you should be seeing far more 1 second recompilations than 10 second recompilations. If you're getting 10 second recompiles, the following help: 1) sub projects, it's an absolute must for non-trivial apps 2) use a 3rd party build system (say, GruntJS) for assets Also, be sure to ;clean;compile prior to starting an incremental build with ~run (and of course, do this from a play> prompt and not bash, you want a warm JVM)
- saryant 13y agoI do wonder how many compile time complaints are due to restarting SBT every time.
- virtualwhys 13y agoGood point, there's a lot to learn in Scala land as well as many ways to shoot oneself in the foot, cold JVM is a good place to start, ouch, glacial development ;-)
- copergi 13y agoI was testing with a trivial app, so 1 doesn't apply. There were no assets, so 2 doesn't apply. Ghc is notoriously slow at compiling, and it managed to recompile/reload the equivalence haskell test app in the time it takes to alt+tab and hit refresh.
- virtualwhys 13y agoGot a link to this trivial Play app that takes forever to compile (and the equivalent lightning fast Haskell app), or shall we just take you on your word?
- copergi 13y agoYes, I keep every test app I've ever written on hand just in case an infamous language_X troll demands proof anytime I mention that I saw the sky once and it looked blue.