News for hackers. Stuff that matters.
Re:Show HN: I built a self-hosted status page and monitoring... by piterrro on Thursday April 25, 2024 @03:30PM (#40161968)
I was about to ask the same question, would you mind sharing more context why did you decided to go with a single 14k main.go file?
Re:Show HN: I built a self-hosted status page and monitoring... by wegwerfaccount on Thursday April 25, 2024 @03:38PM (#40162041)
Perhaps because we’re on hacker news and not software architect news?
Re:Show HN: I built a self-hosted status page and monitoring... by fuzztester on Friday April 26, 2024 @01:53AM (#40166298)
I would hire you in a flash, if I was a hirer and had a job to hire you for ;)
Re:Show HN: I built a self-hosted status page and monitoring... by superq on Thursday April 25, 2024 @04:08PM (#40162360)
For a single dev, a single file is often far more efficient than jumping between files.
Re:Show HN: I built a self-hosted status page and monitoring... by goksan on Thursday April 25, 2024 @05:07PM (#40163017)
I’ve had a good experience with it. I’ve been jumping around by function.
Re:Show HN: I built a self-hosted status page and monitoring... by datascienced on Sunday April 28, 2024 @07:01AM (#40187649)
In Elm in particular it is idiomatic
Re:Show HN: I built a self-hosted status page and monitoring... by goksan on Thursday April 25, 2024 @05:02PM (#40162981)
I initially thought the project was going to be much smaller.

I was happy with how things were going in that file and didn’t feel a need to add more files. I’d probably do it again on a solo project.

Re:Show HN: I built a self-hosted status page and monitoring... by piterrro on Friday April 26, 2024 @05:04AM (#40167273)
Thanks that's what I thought. Do you have any specific way of navigating that file or use a functions outline for that?
Re:Show HN: I built a self-hosted status page and monitoring... by goksan on Friday April 26, 2024 @05:38AM (#40167426)