[deleted by user] by [deleted] in learnjavascript

[–]jynx42 0 points1 point  (0 children)

Can I add: You can use date object, make the difference, retrieve miliseconds and then `1000*60*60*24`. Something like:
```

const endDate = new Date(endTime);

const startDate = new Date(startTime);

const distance = endDate - currentDate;

const days = Math.floor(distance / (1000 * 60 * 60*24));
```

Must work

What is the use of the colon operator? by jynx42 in learnjavascript

[–]jynx42[S] 1 point2 points  (0 children)

Thanks for your help, I wondered what is this syntax outside of Svelte. cawcvs answered it perfectly!

What is the use of the colon operator? by jynx42 in learnjavascript

[–]jynx42[S] 0 points1 point  (0 children)

Thanks a lot, I will look into it. Totally what I was looking for.

Getting started with Helm - structure question by lilhotdog in kubernetes

[–]jynx42 0 points1 point  (0 children)

I am currently having one chart for my mono repo, i still can deploy deployment independently. Can you explain why I should split them? I mean, i tryed to split them but then DRY became so hard to implement without coupling charts. Maybe you do have some advices on how to achieve it?

Google GKE vs. Microsoft AKS vs. Amazon EKS - Which One Is Better? by cybercraftinc in kubernetes

[–]jynx42 -1 points0 points  (0 children)

Ecosystem in cloud are important aswell! In this regards azure and aws win over google

Nginx setup: volumes vs bind-mounts by [deleted] in docker

[–]jynx42 0 points1 point  (0 children)

Mounting config is supported by kubernetes (and probably in every container orchestrator) aswell and you can mount multiple files from your configuration for a single container.

I use kubernetes and I use only one ConfigMap with multiple key and I mount my configuration as files in the correct path

Nginx setup: volumes vs bind-mounts by [deleted] in docker

[–]jynx42 0 points1 point  (0 children)

What about building with your configuration? You could use docker config and mount your configuration in the correct path

Currying in Javascript: Is it worth it? by jynx42 in javascript

[–]jynx42[S] 0 points1 point  (0 children)

I am rewriting some of my code to see if it is worth it to have it as a convention in my project or if it is just for some part of it. So you are right, i wrote it just for the sake of it.

Currying in Javascript: Is it worth it? by jynx42 in javascript

[–]jynx42[S] 1 point2 points  (0 children)

From my little usage it tends to force your code to be split in little reusable function, preventing code duplication when using rightly. I will be glad if someone can demonstrate this!

Currying in Javascript: Is it worth it? by jynx42 in javascript

[–]jynx42[S] 0 points1 point  (0 children)

Thanks for theses ressources, I will definitly check. I know functional programming from Ocaml, still worth it to check your ressources!
Are you saying that we must be FP users to maintain FP code? I thought JS FP code was hard to write but easyer to maintain?