News for hackers. Stuff that matters.
Re:Show HN: Bless your JavaScript code by shawndellysse on Thursday March 23, 2017 @12:12PM (#13941090)
I've just skimmed through the docs but I can already tell, this is something I'm going to be using a lot in my next few projects. The cost/value ratio is incredible.
Re:Show HN: Bless your JavaScript code by sealord on Friday March 24, 2017 @12:03AM (#13946506)
> "The cost/value ratio is incredible."

Think that's the first time in years anyone's said that about my code. Thank you!

Re:Show HN: Bless your JavaScript code by netinstructions on Thursday March 23, 2017 @05:19PM (#13944408)
You know it's an excellent package just based on how straightforward and readable the source code is.

My only gripe-- do you think you could expose the blessing id more easily? My work around is to parse the returned string, but I feel like it's a bit of a hack.

Re:Show HN: Bless your JavaScript code by sealord on Friday March 24, 2017 @12:02AM (#13946504)
Thank you!

I suppose I could expose the blessing ID. I could either create a `Blessing` class, in which case you'd instantiate it and have easy access to the generated UUID. Or, I could simply return a dictionary containing the UUID and the blessing.

Re:Show HN: Bless your JavaScript code by danhardman on Thursday March 23, 2017 @05:35PM (#13944582)
Is the idea of this to replace adding `console.log("code checkpoint");` in your code for debugging? Sort of a, I know the code managed to get to this point, so the error must be happening here?
Re:Show HN: Bless your JavaScript code by sealord on Friday March 24, 2017 @12:01AM (#13946501)
That wasn't the intended function, but yes - by doing that, you'd end up blessing your code and putting all sorts of helpful checkpoints. At one point, with a bit of luck, such a checkpoint could even prevent your code from crashing - 'cause it's blessed..
Re:Show HN: Bless your JavaScript code by notduncansmith on Thursday March 23, 2017 @03:45PM (#13943481)
I like the use of var and template literals.
Re:Show HN: Bless your JavaScript code by sealord on Thursday March 23, 2017 @11:59PM (#13946490)
bows
Re:Show HN: Bless your JavaScript code by xchip on Thursday March 23, 2017 @04:52PM (#13944146)
what is the use of this?
Re:Show HN: Bless your JavaScript code by sealord on Friday March 24, 2017 @12:00AM (#13946492)
Because blessing your Javascript code is always a great idea. :)
Re:Show HN: Bless your JavaScript code by danjambur on Thursday March 23, 2017 @05:05PM (#13944275)
... Why.
Re:Show HN: Bless your JavaScript code by bbcbasic on Thursday March 23, 2017 @05:16PM (#13944376)
Using JS is never ending Hail Mary.
Re:Show HN: Bless your JavaScript code by sealord on Thursday March 23, 2017 @11:59PM (#13946488)
Amen to that.