Live data from Hacker News

Show HN: Caffeine – Minimum viable back end for prototyping

github.com

21–30 of 83 posts

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#21
post #20

FYI, there is a name clash with Caffeine, a Mac OS menu bar app that keeps the screen awake: https://intelliscapesolutions.com/apps/caffeine . But I guess this is expected with a name like this, and the scopes of the projects are clearly different, so this should be relatively harmless.

And also a (very efficient) Java cache library https://github.com/ben-manes/caffeine

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#23
Cool project! Personally I've been using apiary or Snowboard for Backend prototyping since they allow for a design first approach and typically end up with quite good Dokumentation and Testing infrastructure. But having a real interactive back end like caffeine provides is also very intriguing!

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#24
post #9
post #6

Feature request: supply .json file via command line to pre-load data into the in-memory database. Taking it even further; how about persisting the data in the file? Sometimes your prototype will need some pre-added data so I think this might be useful.

currently there are two implementation for the database "behind": in memory or with postgres, both with zero config (except for starting an instance of postgres, in the second case!). it can be easily extended to use files as persistence, good idea :) regarding the pre-population, you can just make a quick script with curl that will add some data after you run the service. any thought?

Thats code folks would have to write instead of focusing on the MVP, it would be better if this loaded it by convention.

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#26

A few requests should randomly fail to force the developer to think about handling errors. :)

Hah! I'm not sure my MVP has ever had error handling beyond "Something went wrong.". That's something for a real production app, not the minimum possible product.

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#28
I realize this is just for prototyping but it looks like it just spits sprintf SQL strings into the database.

While not a security risk if done locally, why not just use a where string builder to generate the $ values and a variadic as the input? It's about the same amount of work.

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#29

Why do people overload common nouns so much when naming a project? A name should confer its essence.

You know, naming is one of the two really hard problems in CS. But there is apparently a hack which is to open dictionary on random page and point your finger on random word.

My next application is going to be called Toreutics which is going to break this word for every person that actually uses it.

Kinda like breaking the word Meta. Which I suppose is actually aimed at making things difficult to search for.

Post reply on HN