Ask HN: How does your development loop look like?

2 points by break_the_bank ↗ HN
1. Do you run the binary/service locally at all?

2. If you do; how do you run it and where do you run it from?

3. How do you pass configuration to the binary/service?

4. How do you setup services that your binary/service depends on?

5. How do you run debugging loops? Print statements? Debuggers?

I have a pretty simple setup where I use an IDE to run tests but to run the binary I use my terminal. For debugging I usually use the debugger built into the IDE. Back when I wrote CPP I used gdb but I do prefer the visual debuggers that Jetbrains ships their IDEs with.

5 comments

[ 3.0 ms ] story [ 14.6 ms ] thread
What stack do you use? It sounds like you don't use a debugger, which is like hearing that someone is searching a dark cave without a flashlight.
I do use a debugger and normally use the one built into the IDE (Goland). Currently on Golang + Typescript.
Then you're already using your IDE to run your binary.

If you want to build a local or cloud-based test server, you can create a Docker image on your machine and automate it to build and then run tests.

1. Yes

2. Sometimes the run button of the IDE, sometimes the command line

3. Database connection parameters, API keys and such go in a .dotfile; parameters that might change from run to run usually go in command line argument; special flags for debugging go in environment variables

4. Usually I've got a database (pgsql, arangodb) running as a "service" in the operating system on the local machine. In one case I start up an antivirus server that one application needs.

Interesting, that you use a mixture of env vars, flags and files for running the binaries :-).