News for hackers. Stuff that matters.
Re:PHP 8.1.0 by fourseventy on Thursday November 25, 2021 @03:58PM (#29344937)
What monsterous golang app are you running that takes 30 seconds to compile?
Re:PHP 8.1.0 by bch on Thursday November 25, 2021 @04:47PM (#29345286)
More interested in what meaningful fixes can be done in some fraction of the 1.2s RTT of this rapid-fire style PHP development.
Re:PHP 8.1.0 by fogihujy on Friday November 26, 2021 @01:11AM (#29347883)
Output to html, meta refresh page every second. Pretty much real-time results.
Re:PHP 8.1.0 by KronisLV on Friday November 26, 2021 @10:48AM (#29351219)
> Pretty much real-time results.

This to me feels really underrated nowadays - at best, you shouldn't always have to reason about your code inside of your head and try to figure out how it'll work in detail, or read API docs for all of the obscure frameworks that you're using.

Test things in real time at first and in the cases where they don't, continue doing so, but with a debugger and stepping through everything bit by bit, or read the docs, or whatever the non-trivial cases will demand.

In my eyes, that's the exact same thing as autocomplete in IDEs - instant feedback, to free you from having to think about yet another mundane level of abstraction or API details, instead letting you solve the actual problems that you're faced with.

Re:PHP 8.1.0 by globular-toast on Friday November 26, 2021 @05:07AM (#29348890)
I think the problem is they haven't set up tools to make it really quick. Even if the compilation only takes a few seconds, they are probably switching to a shell, firing of a make command, maybe restarting the server etc. All stuff that could (and should) be automated and available at the press of a keyboard button. In my emacs setup, any language that requires compilation I bind the key C-c C-c to "build the app now". So then compilation literally takes a few seconds not a few second plus ten seconds of overhead.