Re:You Don't Need to Rebuild Your Development Docker Image o...
by roofwellhams on Monday May 31, 2021 @12:44PM
(#27345894)
Did you try typescript? Now I can write for hours without trying out the app. And when I try... It just works
[ Parent
| on HN ]
Re:You Don't Need to Rebuild Your Development Docker Image o...
by redleather on Monday May 31, 2021 @12:58PM
(#27346008)
This is such a weird comment.. nothing about the OC suggests they were talking about front end dev; not to mention that writing for hours before actually running it is a pretty terrible way to code. Typescript is also not a workaround for volume binding, which can accommodate any stack.
Re:You Don't Need to Rebuild Your Development Docker Image o...
by dehrmann on Monday May 31, 2021 @01:14PM
(#27346185)
> nothing about the OC suggests they were talking about front end dev
>> I'm never confident in the changes I make, but my style is to write a few lines at a time, save, re-run or refresh.
This is a pretty typical frontend development pattern, especially seeing "refresh."
Re:You Don't Need to Rebuild Your Development Docker Image o...
by dividedbyzero on Monday May 31, 2021 @01:55PM
(#27346586)
I read that as "re-run or refresh, as applicable", i.e. re-run a Go app or refresh a Node.js webapp. Besides, it absolutely can be a big issue with non-frontend development, so the point still stands.
Re:You Don't Need to Rebuild Your Development Docker Image o...
by snapetom on Monday May 31, 2021 @02:51PM
(#27347051)
Yes, that is why I specifically mentioned "re-run." About 75% of my work is actually API and backend data engineering work (Python Go, Node in that order). I do "save and re-run" less in that type of work, but definitely not enough to make frequent docker builds a hassle.
Re:You Don't Need to Rebuild Your Development Docker Image o...
by pgwhalen on Monday May 31, 2021 @01:31PM
(#27346354)
As another commenter mentioned, "refresh" tipped them off as a front end dev.
As a backend dev working in statically typed languages, I will sometimes code for hours without running, and I wouldn't say anything about it is terrible. I haven't worked with Typescript, but it wouldn't surprise me if it enabled a similar development process.
I wouldn't necessarily infrequent running as a technique worth emulating, but in certain situations it works pretty well.
Re:You Don't Need to Rebuild Your Development Docker Image o...
by snapetom on Monday May 31, 2021 @02:58PM
(#27347119)
The majority of my work is actually in Python and Go on the backend. I do save/re-run less than when I'm doing front end, but docker builds are still a hassle. Flask will automatically reload on file changes, taking advantage of a docker volume. With Go, I'm doing go runs in development anyway up until deployment with go build.
Maybe I'm doing things wrong, but docker volumes are essential in how I like to dev.
Re:You Don't Need to Rebuild Your Development Docker Image o...
by lanstin on Monday May 31, 2021 @06:44PM
(#27348901)
Even there it is beneficial to run sooner. E.g, for servers as soon as the listen is up and dispatching, run it and see that the handler runs. Often times the only times my error handling code runs is during this initial code writing time. (For certain annoying to test for types of error). Fast iterations around a known good baseline.
Re:You Don't Need to Rebuild Your Development Docker Image o...
by archsurface on Monday May 31, 2021 @01:04PM
(#27346082)
A star fruit is also known as a carambola.