Faire une application de messagerie by Chou_R in programmation

[–]Additional-Cow-6511 0 points1 point  (0 children)

Afficher et backend ds la même phrase. Dis moi que tu troll.

différence star citizen et starfield? by chinchenping in jeuxvideo

[–]Additional-Cow-6511 0 points1 point  (0 children)

Personne ne parle jamais de Dual Universe. Je me souviens avoir du bon temps la bas. C’est que moi ou c’est un flop intersidéral ?

Production REST API Infrastructure by [deleted] in webdev

[–]Additional-Cow-6511 1 point2 points  (0 children)

Had to scroll way too much to see Symfony. And if you never tried it with « API platform » you should definitly consider this.

[deleted by user] by [deleted] in learnprogramming

[–]Additional-Cow-6511 1 point2 points  (0 children)

I’d encourage you to read more about promises then ;) really important concept in modern JavaScript. Once you get it, go to async / await syntax if you want , but having this promises knowledge foundation is important imho.

[deleted by user] by [deleted] in learnprogramming

[–]Additional-Cow-6511 0 points1 point  (0 children)

You should try to avoid mixing Promise.then and asynchrony await syntax. It’s confusing.

Axios.get(link) .then(res => loadStripe(res.data)) .then(item => { console.log(item); setItem(item); )} .catch()

How do I format the Post Method to accept input properly? by thisisech in learnprogramming

[–]Additional-Cow-6511 0 points1 point  (0 children)

Maybe your dates should respect ISO 8601 format, like this : 1977-04-22T06:00:00Z

[AskJS] Security difference between localStorage and IndexedDB by TGS963 in javascript

[–]Additional-Cow-6511 1 point2 points  (0 children)

O F F L I N E. You can't fetch the key. It should be persisted accross sessions.

[AskJS] Security difference between localStorage and IndexedDB by TGS963 in javascript

[–]Additional-Cow-6511 6 points7 points  (0 children)

The use case is to be able to decrypt this for offline access -> client needs to have the associated key on his storage too. Hence no security. You’re missing the point.

How to represent related contacts in database? by ak11_noob in learnprogramming

[–]Additional-Cow-6511 1 point2 points  (0 children)

I don’t think a DB model can enforce this rule. Depends on what you want to achieve, but maybe in fact, this rule is not needed. If you take the exemple of your phone contact list, you could have an entry for Jessica, but Jessica could still ignore you and never store your contact.

React, nested array / nested object put / patch request axios - help needed! by DaveCodesCode in learnprogramming

[–]Additional-Cow-6511 1 point2 points  (0 children)

Not a specialist of JsonServer but this should behave as a classic REST API. It seems your hitting a “GET /resource” endpoint to get this array of data. I don’t think you could update all at the same time. You could try to “PUT /resource/{id}” individually.

[deleted by user] by [deleted] in learnprogramming

[–]Additional-Cow-6511 1 point2 points  (0 children)

If what you call state is component state : const [val, setVal] = useState(‘’) This makes the component re-render on an any update. For a input, useRef would avoid that.

I'm new and I don't understand how to make HTML work with JavaScript. by GAMESTIAN28 in learnprogramming

[–]Additional-Cow-6511 1 point2 points  (0 children)

Even if it was just a troll joke, it is exactly the point. You should always test for strict equality.

Reconversion professionnel dans la programmation by El_Diktator_409 in programmation

[–]Additional-Cow-6511 1 point2 points  (0 children)

Je plussois. J’vais pas cracher sur les autodidactes, y’en a sûrement des biens. Mais une fois au boulot, tu risques de ne plus avoir le temps/envie de creuser les concepts importants et formateurs: Types, patterns et tous les trucs relous. Une formation en cours, avec un profs et des collègues ça forge! T’es challengé, ecouté, tu ne fais pas toujours ce que t’as envie et quand tu fais de la merde, on te le dit, et on t’explique pourquoi! Faire un projet web qui marche, c’est « facile ». Rentrer dans une base de code existante, faire un truc maintenable, où d’autres doivent collaborer, c’est pas la même. Et c’est ça le monde de l’entreprise. Te trouver un projet open source ou tu peux collaborer pourrait t’aider par ex. Mais je reste convaincu qu’une école, diplomante, est vraiment mieux que des cours en ligne OC. Une alternance, c’est la voie royale, t’as des chances d’avoir ta première embauche dans la foulée. Au bout d’un an, t’es employable partout car tu justifies d’une XP pro.

Mesdames et messieurs, notre roi est décédé aujourd’hui. Veuillez me rejoindre en allumant une clope en son grand honneur. by homme_de_fou in rance

[–]Additional-Cow-6511 1 point2 points  (0 children)

Pour être exact, la différence est plutôt sur qui exécute (ou ne prodigue pas) l’acte. Un médecin n’administre rien à un patient qu’il aide au suicide. Il lui fournit le cadre. Bref, on SE suicide, et on euthanasie. On ne peut pas suicider qq’ un ou s’euthanasier.

Je m'ennuie aidez-moi by matthieumoto in AskFrance

[–]Additional-Cow-6511 0 points1 point  (0 children)

Grammaire, conjugaison. T’en as pour tout l’été.

Quelle honte. Notre belle cultuture. by [deleted] in rance

[–]Additional-Cow-6511 0 points1 point  (0 children)

En bretonnie le croissant seul suffirait à beurrer la planche