mcoder995's profile picture. Developer full Stack js

Mcoder

@mcoder995

Developer full Stack js

Mcoder reposted

Implementing basic HTML streaming with node


Mcoder reposted

today i learned you can run python scripts from your nodejs backend 🤯

fekdaoui's tweet image. today i learned you can run python scripts from your nodejs backend 🤯

Mcoder reposted

📜 Do not pass DTOs to UI components - @dario_djuric Greatly explains why you'd rather design props independently of what the backend sends you returns darios.blog/posts/do-not-p…

sebastienlorber's tweet image. 📜 Do not pass DTOs to UI components - @dario_djuric 

Greatly explains why you'd rather design props independently of what the backend sends you returns

darios.blog/posts/do-not-p…

Mcoder reposted

Introducing `claude-sonnet-to-gpt-4o-mini` ✍️ Get the quality of Claude 3.5 Sonnet, at a fraction of the cost and latency. Give one example of your task, and Sonnet will teach 4o-mini (20x cheaper!!) how to do the task perfectly. And it's open-source: shorturl.at/Cjjwt


Mcoder reposted

📜 Simplify Component Imports with TypeScript Namespaces Last week's newsletter's top link is @sergiodxa article, with around 1200 clicks. Readers usually like pragmatic articles like this sergiodxa.com/tutorials/simp…

sebastienlorber's tweet image. 📜 Simplify Component Imports with TypeScript Namespaces

Last week's newsletter's top link is @sergiodxa article, with around 1200 clicks. 
Readers usually like pragmatic articles like this

sergiodxa.com/tutorials/simp…

Mcoder reposted

PSA - if you're running lots of npm scripts on CI, replace them with node --run: ❌ npm run test && npm run lint ✅ node --run test && node --run lint You'll gain around 200ms for each one replaced.


Mcoder reposted

Chrome Dev Tools 💡 You may not know that we can override response headers in Chrome Dev Tools 🤩 This can be very handy for handling CORS errors locally until they get fixed from the API server ✅👇


Mcoder reposted

— HTML Vous voulez soumettre un formulaire avec un bouton en dehors de la balise <form> ? Et bien c'est possible nativement. Vous pouvez ajouter l'attribut "form" à votre bouton d'envoi pour associer l'action à un formulaire spécifique n'importe où sur la page ! 🙌 📚…

romainlanz's tweet image. — HTML

Vous voulez soumettre un formulaire avec un bouton en dehors de la balise &amp;lt;form&amp;gt; ?

Et bien c&apos;est possible nativement.

Vous pouvez ajouter l&apos;attribut &quot;form&quot; à votre bouton d&apos;envoi pour associer l&apos;action à un formulaire spécifique n&apos;importe où sur la page ! 🙌

📚…

Mcoder reposted

"What is the point of server components if all my pages need client features like hooks or event handlers?" You don't need to turn the entire page into a client component


Mcoder reposted

You know you don't need to copy the inferred type to an interface to have a named type, right ?

ecyrbedev's tweet image. You know you don&apos;t need to copy the inferred type to an interface to have a named type, right ?

Mcoder reposted

The anatomy of a good error message from the Wix UX/Eng team. So. Good. 🤌 wix-ux.com/when-life-give…

dillon_mulroy's tweet image. The anatomy of a good error message from the Wix UX/Eng team. So. Good. 🤌

wix-ux.com/when-life-give…

Mcoder reposted

accidentally rolled my own auth again

dillon_mulroy's tweet image. accidentally rolled my own auth again

Mcoder reposted

Mcoder reposted

Upload a file with server action in Next.js


Mcoder reposted

Welcome FlyDrive to the AdonisJS package family! It is a file storage framework-agnostic library for Node.js. It provides a unified API to interact with the local file system and cloud storage solutions like S3, R2, and GCS. 🔗 flydrive.dev

adonisframework's tweet image. Welcome FlyDrive to the AdonisJS package family!

It is a file storage framework-agnostic library for Node.js. It provides a unified API to interact with the local file system and cloud storage solutions like S3, R2, and GCS.

🔗 flydrive.dev

Mcoder reposted

Would you reject a decent-paying job offer if the company didn't use TypeScript, and wasn't interested in adopting it?


Mcoder reposted

TypeScript problem: You need to support any string value, but you’d like autocomplete support for common values. Solution: Create a union with "string & {}" on the end. Now you get autocomplete support for all values listed in the union, but can still enter any value.

housecor's tweet image. TypeScript problem: You need to support any string value, but you’d like autocomplete support for common values. 

Solution: Create a union with &quot;string &amp;amp; {}&quot; on the end.

Now you get autocomplete support for all values listed in the union, but can still enter any value.

Mcoder reposted

Vercel à sortie l’AI SDK et celui-ci te permet d'interagir avec toutes les API AI en utilisant LA MÊME API ! Je ne crois pas que vous vous rendez-compte à quel point c'est pratique 👇

melvynxdev's tweet image. Vercel à sortie l’AI SDK et celui-ci te permet d&apos;interagir avec toutes les API AI en utilisant LA MÊME API !

Je ne crois pas que vous vous rendez-compte à quel point c&apos;est pratique 👇

Mcoder reposted

Si vous êtes dans l'IT, vous avez certainement entendu parler du backdoor xz (CVE-2024-3094). Si ce n'est pas le cas, voici un petit fil pour vous résumer tout ce qu'il faut savoir. 🚨

dzamsgaglo's tweet image. Si vous êtes dans l&apos;IT, vous avez certainement entendu parler du backdoor xz (CVE-2024-3094). Si ce n&apos;est pas le cas, voici un petit fil pour vous résumer tout ce qu&apos;il faut savoir. 🚨

Mcoder reposted

Here's a Next.js endpoint rate limited by requesting IP address. Insane how easy this is.

theo's tweet image. Here&apos;s a Next.js endpoint rate limited by requesting IP address. Insane how easy this is.

Upstash's rate limiter package is still criminally underutilized



Loading...

Something went wrong.


Something went wrong.