News for hackers. Stuff that matters.
Re:Nimforum: Lightweight alternative to Discourse written in... by epilys on Friday August 27, 2021 @05:22PM (#28333094)
I recently wrote one: https://github.com/epilys/sic
Re:Nimforum: Lightweight alternative to Discourse written in... by goodpoint on Saturday August 28, 2021 @06:42PM (#28342185)
Python, AGPL and without JS? Excellent!
Re:Nimforum: Lightweight alternative to Discourse written in... by e12e on Saturday August 28, 2021 @04:20AM (#28336496)
Thanks for sharing, I missed your earlier "show hn": https://news.ycombinator.com/item?id=28086637

As someone not too familiar with Django, this looks like a nice codebase :)

But am I right that there are no tests?

Re:Nimforum: Lightweight alternative to Discourse written in... by epilys on Saturday August 28, 2021 @04:55AM (#28336624)
Thank you! Indeed there are no tests. I'm not familiar with testing in Django or web apps in general but I want to add some once I figure out what and how I should be testing.
Re:Nimforum: Lightweight alternative to Discourse written in... by e12e on Saturday August 28, 2021 @06:24AM (#28336974)
Well, in my limited experience, the best way to do testing is to start with tests first (TDD/BDD) - and the second best, when you've started, and have no tests - is to start from a bug: someone reports a real bug, in your real system - and you try and write a test that's failing in such a way, that when you alter the system to fix the bug, the test will pass.

Typically the first test will be quite painful - you might have to install a testing dependency, possibly re-work some code to allow for testing etc. But then, the next test should be a little easier. And after a few bugs and tests, you might find that for your next feature, you can somewhat easily start with a failing test.

/unsolicted_advice

Re:Nimforum: Lightweight alternative to Discourse written in... by emptysongglass on Friday August 27, 2021 @06:03PM (#28333452)
I am loving this, thanks for sharing. My only request would be for a publicly hosted image so I can easily selfhost for my own little campfire community.
Re:Nimforum: Lightweight alternative to Discourse written in... by epilys on Saturday August 28, 2021 @04:58AM (#28336639)
Hmm I might add one thanks for the suggestion. I don't use containers for this since it's just python WSGI on apache2 (no database image required since it's sqlite3)