Leonel Hernandez retweeted
8
528
3
2,505
Leonel Hernandez retweeted
Your current struggle is just one chapter, not the whole story. Keep showing up!
53
2,064
40
14,520
Leonel Hernandez retweeted
𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻 𝘁𝗵𝗮𝘁 𝗲𝘃𝗲𝗻 𝘀𝗲𝗻𝗶𝗼𝗿 𝗱𝗲𝘃𝘀 𝗼𝗳𝘁𝗲𝗻 𝗳𝗮𝗶𝗹 “What is the most important SOLID principle?” Here is how I rank them by importance: 1️⃣ Single Responsibility Principle (SRP) 2️⃣ Dependency Inversion Principle (DIP) 3️⃣ Open-Closed Principle (OCP) 4️⃣ Interface Segregation Principle (ISP) 5️⃣ Liskov Substitution Principle (LSP) Single Responsibility and Dependency Inversion principles are what you start your codebase with. They give you benefits from the very beginning. Open-Closed and Interface Segregation are something you come up with eventually as the project grows. They help you scale without breaking existing logic. ❌ But here's the most imortant part: You should stop blindly following Liskov. Liskov is all about Inheritance: - Subclasses should behave the same as their base classes. And Inheritance is something developers avoid nowadays. Inheritance often creates more problems than it solves: ❌ Tight coupling ❌ Complex hierarchies ❌ And broken abstractions ✅ Favor composition over inheritance and don't bother with Liskov Principle in most of cases. SOLID is powerful, but not all principles are equal in practice. 👉 My advice: don't follow SOLID blindly. Use it when it solves your problems, not makes your codebase more complex. Sometimes it's better to have one class that does 2-3 things but is easy to change and maintain. Than having 5 classes and complex abstractions. Which SOLID principle do you personally struggle with the most? — ♻️ Repost to help others learn about SOLID importance ➕ Follow me to improve your .NET Skills
7
53
383
Leonel Hernandez retweeted
¡Se acerca un nuevo componente en React! Con <Activity> podrás ocultar el contenido de la UI pero mantener todo el estado interno. Llega en la próxima versión y lo veo super útil.
Leonel Hernandez retweeted
"ByteByteGo vs DesignGurus? Which is best for System Design Interview Preparation?" dev.to/somadevtoo/bytebytego…
6
1
30
Leonel Hernandez retweeted
Types of Database
5
219
7
1,134
Leonel Hernandez retweeted
REST API Vs. GraphQL
Leonel Hernandez retweeted
Tap, hold and load in 4K
34
815
7
15,524
Leonel Hernandez retweeted
Programadores y sus Pull Requests:
23
128
13
1,827
Leonel Hernandez retweeted
¡Todos mis Cursos de Programación gratis HOY! Celebra el Día de la Programación y aprende sin pagar: JavaScript → midu.link/js Python → midu.link/python React → midu.link/react Astro → midu.link/astro Node → midu.link/node MCP → midu.link/mcp git → midu.link/git SQL → midu.link/sql CSS → midu.link/css PHP → midu.link/php AWS → midu.link/aws TDD → midu.link/tdd HTML → midu.link/html Next.js → midu.link/next Svelte → midu.link/svelte TypeScript → midu.link/ts CSS Grid → midu.link/grid Angular → midu.link/angular CSS Flexbox → midu.link/flexbox GitHub Actions → midu.link/gh-actions Bootcamp completo → midu.link/bootcamp
22
225
2
1,441
Leonel Hernandez retweeted
𝗥𝗘𝗦𝗧 𝗔𝗣𝗜 𝗕𝗲𝘀𝘁 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀 𝗶𝗻 𝟮𝟬𝟮𝟱 I've built 100+ APIs, here's what I learned 👇 Most developers struggle with REST API design. 𝟭. 𝗥𝗘𝗦𝗧 𝗠𝗮𝘁𝘂𝗿𝗶𝘁𝘆 𝗟𝗲𝘃𝗲𝗹𝘀 Level 0: Single endpoint (❌ avoid) Level 1: Multiple resources Level 2: ✅ Proper HTTP methods Level 3: HATEOAS (when needed) 𝟮. 𝗥𝗲𝘀𝗼𝘂𝗿𝗰𝗲 𝗡𝗮𝗺𝗶𝗻𝗴 ✅ Use nouns: /users, /orders ❌ Avoid verbs: /getUsers, /createOrder ✅ Be consistent: user-profiles or product-carts ❌ Avoid: UserProfiles, userProfiles 𝟯. 𝗛𝗧𝗧𝗣 𝗠𝗲𝘁𝗵𝗼𝗱𝘀 & 𝗦𝘁𝗮𝘁𝘂𝘀 𝗖𝗼𝗱𝗲𝘀 Methods: • GET → Read • POST → Create • PUT/PATCH → Update • DELETE → Remove Success Codes: • 200: Success • 201: Created • 202: Accepted (async) • 204: No Content Error Codes (client): • 400: Bad Request • 401: Unauthorized • 403: Forbidden • 404: Not Found • 422: Validation Failed Error Codes (server): • 500: Internal Error on Server • 503: Service Unavailable 𝟰. 𝗔𝗣𝗜 𝗩𝗲𝗿𝘀𝗶𝗼𝗻𝗶𝗻𝗴 Choose one: • URI: /api/v1/users ✅ • Header: X-Api-Version • Media Type: application/vnd.api.v1+json • Query String: ?version=1 (avoid) 𝟱. 𝗥𝗲𝗾𝘂𝗲𝘀𝘁/𝗥𝗲𝘀𝗽𝗼𝗻𝘀𝗲 𝗕𝗲𝘀𝘁 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀 • Always use JSON • Standardize error responses • Support filtering & pagination • Document with OpenAPI/Swagger 𝟲. 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆 𝗖𝗵𝗲𝗰𝗸𝗹𝗶𝘀𝘁 ✅ HTTPS everywhere ✅ OAuth2/JWT auth ✅ Rate limiting ✅ Input validation ✅ Response caching The key? Keep it simple and consistent. Want a high-quality image with API design tips? Follow me and drop a DM. — ♻️ Repost to help other developers build better APIs ➕ Follow me for more 📌 Save this post for future reference!
5
116
680
Leonel Hernandez retweeted
4 machine learning training paradigms, explained visually: - Transfer Learning - Fine-tuning - Multi-task Learning - Federated Learning
Leonel Hernandez retweeted
Si estás aprendiendo a diseñar APIs, hay ciertas prácticas que te van a ahorrar muchísimos problemas. Aplicarlas hará tus APIs: ✅ más predecibles ✅ más seguras ✅ más fáciles de mantener Aquí te explico las 7 mejores prácticas de diseño de APIs 🧵👇
8
154
1
1,038
Leonel Hernandez retweeted
El 1 de octubre empiezo un BootCamp FullStack desde cero y abierto para todo el mundo. Será gratuito pero se podrá conseguir una certificación de pago opcional (número muy limitado). Puedes apuntarte ya aquí → jscamp.dev Se llamará JSCamp InfoJobs, ya que gracias a ellos podremos hacer todo el contenido gratuito y accesible. Las clases serán todos los miércoles en mi Twitch. Quiero crear algo que sirva de referencia para cualquier persona que quiera aprender programación en Español sin necesidad de pedir un crédito.
36
204
1
1,576
Leonel Hernandez retweeted
5 Best OOP Concepts 1. Abstraction - buff.ly/3SCXReU 2. Polymorphism - buff.ly/4cjSPuC 3. Inheritance - buff.ly/3Am9qk6 4. Composition - buff.ly/4cdXKgK 5. Overloading - buff.ly/4ch9QWz 6. Encapsulation - buff.ly/4ce6m75
9
34
Leonel Hernandez retweeted
MCP Versus A2A Protocol
4
90
384
Leonel Hernandez retweeted
SQL Interview Cheatsheet 📘 #sql
8
238
3
1,586
Leonel Hernandez retweeted
¡Google acaba de lanzar su agente de IA para terminal! ✓ CLI para Gemini 2.5 Pro ✓ Contexto de 1 millón de tokens ✓ 60 peticiones/min y 1000 al día sin coste ✓ Genera código, imágenes y vídeos desde la terminal → npx github.com/google-gemini/gem…