7 ms·
Running a Bakery on Emacs and PostgreSQL (2019)
- wolfgang42 6y ago(2019); discussed at the time: https://news.ycombinator.com/item?id=19252952 https://news.ycombinator.com/item?id=19252952 (191 comments)
- submeta 6y agoI‘ve been using MS Access some twenty years ago to do all sorts of magic for small businesses. That was from the 90s to the early 2000s. - Later I‘d use Python to do magic for companies who didn‘t know anything better than MS Excel to handle large sets of data, and when they were lost in chaos, I‘d start to streamline, process, tidy their data and help them make sense. Just two examples that showed me: Use whatever helps you to get the job done, automate and streamline processes, select tools that might give you a competitive advantage. Edit: I love Emacs, for everything text and code and some more, but there are way better tools for the task the author describes.
- bitwize 6y agoEmacs (esp. with org-mode) sits close to the barycenter of the space of problems like this, where the vector sum of "effort to use the solution to solve the problem" and "engineering effort needed to build the solution" is quite low. Building a React web app, or a Visual Basic bespoke app, might yield a nicer to use program, but would require more effort than throwing something together with Emacs Lisp, SQLite, and org-mode. It's one reason why I won't give Emacs up, again despite half of Hackernews being convinced the VSCode will solve world hunger.
- submeta 6y agoI love Emacs and Orgmode, especially in combination with Sqlite. And I am convinced that VS Code - despite doing so many things right - does not have the versatility and the capability of Emacs, no matter how many packages are written for it because it is not intended to be configured by it‘s end users in a way where they read the code of the packages, learn from them, change them according to their needs and automate all kinds of processes / workflows with it. Emacs is an application framework for the user with a hacker mindset. And Emacs Lisp is the underlying scripting languages that invites you to play around with your tool. Having said that: Yes, you can run your business with Emacs alone. But I am not convinced it is the right tool for the job.
- machawinka 6y agoViscose is impressive, but emacs is a lisp machine.
- sjg007 6y agoOne problem is you have to learn emacs. Then for employees they have to learn the command line etc... so reduce friction I guess is why we have webapps.
- jsilence 6y agoOnly vaguely related: what would be the Access equivalent of today? Somethings with low learning curve and forms. Any suggestions?
- submeta 6y agoSimple CRUD apps with Python + Flask or Django I‘d say.
- couchpotatonews 6y agoEven easier would be to use a CMS, I prefer Processwire but many others also have great form builders and generic list/calendar/etc views.
- ako 6y agoOne of the low- or no-code tools.
- dyeje 6y agoAirtable
- jedimastert 6y agoAccess still exists, although I haven't used it in a long time Alternatively, you can access Google Sheets with SQL queries, although I guess it probably wouldn't be great, but Google Forms + Sheets?
- tosh 6y agoglide https://www.glideapps.com https://www.glideapps.com
- drran 6y agoGnuCobol? Text mode only.
- SEXY_DEVE_GOWDA 6y agoOracle Apex is probably the best
- jimmyed 6y agoOn almost all Emacs posts, I see folks go like, "<harsh criticism> PS: I love Emacs"
- Topgamer7 6y agoIn his follow up post he talks about union combining identical results. If the author ever reads this, you can prevent that by using `union all` instead of just `union`. That won't remove duplicates.
- radiowave 6y agoIndeed, though his work-around of adding a path column is something is worth having anyway, because it makes it much easier to see where the generated output has come from.
- Tostino 6y agoIt is forcing the engine to do more work though, because it demands a distinct result set, so it adds extra nodes to the plan to remove duplicates. If you know your query doesn't have duplicates, it's much smarter to not add an extra whole sort/distinct when totally unnecessary for correct results.
- adrianN 6y agoI'm fairly sure that a bakery doesn't produce the amounts of data where you need to worry about such things.
- Tostino 6y agoEh, it's all relative. You can make some queries perform pretty terrible even with tiny data. It's something that has had measurable performance impacts on queries I've had to tune and deal with with over the years.
- FroshKiller 6y agoI don't know, when a baker needs a dozen of something, they tend to bake 13. Maybe things get out of hand.
- ed25519FUUU 6y agoThis is super cool, but I’d worry a lot about passing on the domain knowledge to somebody else without a dead-simple TUI/GUI. Eventually somebody else will need to run things.
- spicybright 6y agoI'd also worry about bugs accidentally inserting bogus data into it. The author says he doesn't like spreadsheets because of all the copy and pasting, but I think that's a feature. You go over every calculation to make sure it's right, and once you have a template sheets to copy and paste for a monthly report or something, you're able to do a lot less of that. It can be hard to view a raw database to track issues down depending on how it's structured. Usually you need more than viewing tables as spread sheets at least.
- asguy 6y agoThis reminds me of supermarket clerks running IBM 3270 apps one handed. As long as the UI is straight forward, it doesn’t need to be pretty or slick. It just needs to be second nature.
- dm319 6y agoTraining I guess?
- codemonkey-zeta 6y agoWill this be software the author will ever have to pass on? I'd guess probably not, considering it's software for his small bakery. It's software directly tied to his identity - he's the sole consumers. That's exactly the kind of software emacs is great for, and precisely the kind of software "hacker" types use. He's not going to sell this as a "bakery management system" and become a software company, he's just going to bake bread. If he needs to share the _information_, then he can just print reports, that's ostensibly what the system is _for_.
- deleted 6y ago[deleted]
- 6y ago
- d_burfoot 6y agoI think PostgreSQL is great, but I also think SQLite would be much better for this use case.
- oblio 6y agoWhat would be even cooler would be a minimally updated FoxPro, just to make it run on modern OSes and such.
- lmz 6y agoxharbour?
- nimchimpsky 6y agowhy ?
- boomer918 6y agoWhy would ever you use anything else.
- deleted 6y ago[deleted]
- FpUser 6y agoLook ma, no cloud ;)
- eb0la 6y agoWell, looks like Emacs is really an operating system disguised as a text editor.
- slk500 6y agoSoon Emacs will replace bread oven.
- supernova87a 6y agoYeah, this is geeky and technically pleasing, but destined to live only as long as the guy has enthusiasm or the will to keep doing this as a small business. As soon as it comes time to have someone take ownership or manage the system, the model breaks. What retail bakery employee is he going to find to maintain the SELECT * FROM statements and look at the Github repo for release notes? There was a post a few years ago with the message "don't get too clever or special when designing a system if you want it to be maintainable for any reasonable cost by an average programmer". I think this is related... Edit: the bakery website is gone or down, 2 years after the story.
- monsieurbanana 6y agoMeh. It's a system deployed on production that works, and is being used weekly. If he ever gets to the point where he needs to employ someone to do it, the system will be mature, and building a web ui rather straightforward. Or it might not, but if he's successful to the point of getting employees, he can start worrying about it then. Isn't that like the number one advice for entrepreneurs? Don't worry prematurely about scaling out.
- mrmincent 6y agoI feel like this is a programmer’s equivalent of using Excel to record UAT results or Configuration decisions. Absolutely possible and is mostly fine, but really isn’t the best tool for the job.
- _huayra_ 6y agoI love me some Emacs and the aspect of not having one's data rolled up into some inscrutable proprietary binary is certainly appealing. However, are there viable open-source programs to specifically meet this need (i.e. the daily operations of a small business)? I've seen a lot of startups around this (e.g. ipads at a lot of checkouts now for small businesses), but is there anything that allows the business to not have their data beholden to some 3rd party?