Re:Decentralized Naming and Certificate Authority
by RL_Quine on Wednesday February 12, 2020 @01:55PM
(#22311591)
I'm very aware of bcoin.
https://npm.anvaka.com/#/view/2d/bcoin
Many steps of indirection away we find things like this include.
https://github.com/juliangruber/isarray/blob/master/index.js
module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
Javascript is an absolute joke of a language.
Re:Decentralized Naming and Certificate Authority
by Ajedi32 on Wednesday February 12, 2020 @04:39PM
(#22313084)
I don't really see the problem. On any remotely modern version of Node that's just a noop. On ancient versions of Node its a very useful polyfill.
Re:Decentralized Naming and Certificate Authority
by chirss on Wednesday February 12, 2020 @02:16PM
(#22311783)
For real, it can't even work with regular expressions decently.
Re:Decentralized Naming and Certificate Authority
by heartbeats on Wednesday February 12, 2020 @01:32PM
(#22311358)
Better the cannot open shared object file: No such file or directory you know than the left-pad you don't.
Re: JavaScript, you should take a look at the code in repo, it's excellent. There is a such thing as great Javascript code and bcoin/hsd are prime examples.