Echo JS 0.11.0

<~>

jklu comments

jklu 1964 days ago. link 1 point
Nice tutorial!
One bug though because of setting the id of new todo's to the length of the array.

Try adding todo's A and B , then remove A and add C
now try to remove C watch how B is removed ;-)
jklu 2202 days ago. link 2 points
clickbait title as the article does not proclaim a winner.
The article is missing one important point: using node.js both front-end and back-end can use the same language and tools which takes away the mental shift when working on both.
jklu 2205 days ago. link 1 point
off topic (and not really a comparison)
jklu 2489 days ago. link 1 point
NodeJS support...

const crypto = require("crypto");
function createUUID() {
  const fmt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
  const rnd = Array.from(crypto.randomBytes(32)).map(n => n & 0xf);
  const rk = (c, r) => (c == "x" ? r : (r & 0x3) | 0x8).toString(16);
  return fmt.replace(/[xy]/g, c => rk(c, rnd.pop()));
}
jklu 2588 days ago. link 1 point
Cool, now how many people will trust their credentials to this newcomer ?
jklu 2609 days ago. link 1 point
For some projects GCP Functions are just as good and don't require all the kubernetes mechanics.
jklu 2684 days ago. link 2 points
Not sure what the aim of these posts is.

Looking at your last few posts you seem to be focused on showing that python is better than JS.

If you want to convince people of your skills then I'm not really impressed as you don't show the correct way of doing it in JS.

If you need bignumber support in JavaScript one can use something like https://www.npmjs.com/package/big-number

Apparently it's not too much of an issue in JS or else somebody would have fixed the specs.
jklu 2686 days ago. link 1 point
just out of curiosity: why do you retain the even values and sum them up later while you are only interested in the sum ?

//
let c = 0;
let a = 1;
let b = 2;
let sum = 0;
while (c < 4000000) {
  c = a + b;
  a = b;
  b = c;
  if (c % 2 == 0) {
    sum += c;
  }
}
console.log(sum);
//
[more]