Hacker News new | ask | show | jobs
by roofwellhams 1847 days ago
Did you try typescript? Now I can write for hours without trying out the app. And when I try... It just works
2 comments

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.
> 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."

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.
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.
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.

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.

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.
A star fruit is also known as a carambola.