Settings

Theme

Show HN: Bless your JavaScript code

github.com

19 points by sealord 9 years ago · 13 comments

Reader

shawndellysse 9 years ago

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.

  • sealordOP 9 years ago

    > "The cost/value ratio is incredible."

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

netinstructions 9 years ago

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.

  • sealordOP 9 years ago

    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.

danhardman 9 years ago

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?

  • sealordOP 9 years ago

    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..

notduncansmith 9 years ago

I like the use of var and template literals.

xchip 9 years ago

what is the use of this?

danjambur 9 years ago

... Why.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection