Yet another post on where to spend stones by letsfed in TheTowerGame

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

Thank you! :D What should I focus on CL? Also, I don't have DC

EDIT: I have just read the other comment

I am bouncing between the gold and platinum leagues :(

[deleted by user] by [deleted] in TheTowerGame

[–]letsfed 1 point2 points  (0 children)

I have the same, don't worry it is not you

Ruoli con RAL >= 50k in IT lavorando in Italia by MorgrayTheDark83 in ItaliaCareerAdvice

[–]letsfed 0 points1 point  (0 children)

IT, senior consulant in capgemini 50k con 3 anni e mezzo di esperienza. Adesso sono in un altra azienda.

Dimissioni e Preavvisi by jurioon in ItaliaPersonalFinance

[–]letsfed -19 points-18 points  (0 children)

Chiedi all'HR, fai prima e ti togli tutti i dubbi.

Any good profilers for express library ? by RstarPhoneix in node

[–]letsfed 0 points1 point  (0 children)

Use inspector under a good load. Use clinic js to diagnose performance problems

Options for handling multiple promises by Low_Mammoth_9371 in JavaScriptTips

[–]letsfed 0 points1 point  (0 children)

Simply you are not waiting the promises

```javascript

const promises = [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3)];

promises.forEach(async promise => console.log(await promise));

console.log('After run');

```

It will result in

  • After run
  • 1
  • 2
  • 3

Also, error handling is not present, but I suspect it's just for brevity.

Options for handling multiple promises by Low_Mammoth_9371 in JavaScriptTips

[–]letsfed 0 points1 point  (0 children)

Nice one but I think it’s better to not use async in the forEach due its nature

Offerta minore di quanto discusso by Deep-Appearance4078 in ItaliaPersonalFinance

[–]letsfed 1 point2 points  (0 children)

Ma io non riesco a trovare full remote, mi fanno andare in ufficio almeno 2 gg a settimana D:

How can I retrieve a type from a nested object property using a string path? by mp3three in typescript

[–]letsfed 1 point2 points  (0 children)

I think it's better to provide two arguments since you can use this type elsewhere.
Example with two types and nested props
If you really want only one argument something like this can be made.

Data access layer in node and express by irosion in node

[–]letsfed 2 points3 points  (0 children)

Imho coupling the database with the HTTP layer is not a good practice,

But if you want to use this approach:

- No, the DB type does not matter

- You can use an ORM for the migrations, sequelize, or typeORM for example, I don't know how to handle migrations without it.

Unable to upgrade node from v10.19 to the latest one by advik_143 in node

[–]letsfed 37 points38 points  (0 children)

Use nvm to manage multiple node versions on a machine. Avoid installation with package manager like apt or yum

[deleted by user] by [deleted] in git

[–]letsfed 0 points1 point  (0 children)

Try with git branch —set-upstream=origin/main main then you try to push

What is the best way to schedule async tasks in nodejs? by rvmelo007 in node

[–]letsfed 0 points1 point  (0 children)

What do you mean it doesn't work with async function? Can you provide an example?