3 ms·
I'm enjoying these "in a single file" projects. They aren't often the paragon of best-practices but they make it easy for newbies to peep in on the syntax and s
by erikig 7y ago
I'm enjoying these "in a single file" projects. They aren't often the paragon of best-practices but they make it easy for newbies to peep in on the syntax and see how complex problems can be solved. They are also usually a lot easier to try out, compile and deploy.
Here are a few others:
- Twitter Clone in Haskell in a single file - https://news.ycombinator.com/item?id=21616661 https://news.ycombinator.com/item?id=21616661
- MPEG1 in a single C file - https://news.ycombinator.com/item?id=20643336 https://news.ycombinator.com/item?id=20643336
- SingleFile CMS - https://news.ycombinator.com/item?id=18336986 https://news.ycombinator.com/item?id=18336986
- everdev 7y agoIt is an interesting idea, but it can be overkill. Just because it can be done doesn't mean it should be. For example, there are ~130 lines of CSS in the Go file. Most editors have auto-formatting and suggestions for CSS for files ending in .css, which you won't get with this setup. Also, with 885 lines of code, you have to wonder if reading the code is easier via scrolling / searching a single file or via tabs with multiple files.
- rcarmo 7y agoHave a look at http://github.com/piku/piku http://github.com/piku/piku as well :)