Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Has anyone here used gun extensively? https://github.com/amark/gun it seems to position itself as a competitor to firebase, and wouldn't have many of the issues mentioned in the OP


Wow, this is the exact thing I've been thinking of writing, but so much better. I'm so glad this exists, brb trying it out right now


Just noticed this today, sorry for the delay. I'm the author, anything I can do to help out? Let me know!


Hey -- nice job! I have a question: is there a way to use MongoDB in the backend?


Yes! Somebody in the community just recently built this:

https://github.com/sjones6/gun-mongo

https://github.com/sjones6/gun-mongo-key

Anything else?


Looks interesting, anyone has experience with it?


Well the code itself doesn't look interesting at all, it is ugly as hell. Lacks comments, poorly organized, full of ugly names.

e.g.: from chain.js:

// TODO: BUG! Handle plural chains by iterating over them.

(obj_has(next, 'put')){ // potentially incorrect?

if(u !== next.put){ // potentially incorrect? Maybe?

A lot of comments like: // ugly hack for now.


Lol. I opened a random src-file and started to wonder wtf this is.

Source: https://github.com/amark/gun/blob/master/src/state.js


I can't believe so many js devs have regressed to single-letter variable names. This has been a code smell for generations :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: