15 karma · joined Apr 16, 2018 (8y ago) · 12 submissions
comment 8mo ago · link · parent
First, I could not find usage examples on the edgejs.org page and the docs link points to the node docs, why?
If I head to github, there are some usage examples, but they confuse me more.
The first example: $ edge server.js led me to think that this is a node replacement that runs in a webassembly sandbox, so completely isolated. But why the need of --safe then? What's the difference between using it and not using it?
But the next examples creates more confusion to me: $ edge node myfile.js $ edge npm install $ edge pnpm run dev
What is this doing? I thought that edge was a node replacement, interpreting and running javascript files, but it's now running executables (node, npm)... what is that? What happens when I run npm install... where does it install files? What's the difference between running edge node myfile.js and edge myfile.js?
Hope this helps.
comment 2y ago · link · parent
Or function getFriends(user: User): Friend[] { return fetchUser(); } The body of the function is wrong.
comment 2y ago · link · parent
I could do some of the changes in place, but to optimize Vue reactivity I work on copies.
I use prototypes so only lodash works for me.
comment 3y ago · link · parent
Doesn't give a single hint on how to do it...