Eres programador junior y usas excepciones para todo? โ ๏ธ
Entonces estรกs usando los errores como control de flujo, y eso puede romper tu cรณdigo en los peores momentos.
Hoy te explico cuรกndo lanzar una excepciรณn y cuรกndo devolver un resultado controlado ๐งต๐
No pagues por programas caros para tu PC.
Estos 10 sitios web pueden reemplazar su software de PC de pago (GRATIS) : ๐งต๐
[๐ Marcar para mรกs tarde]
๐ช๐ต๐ ๐ฑ๐ผ๐ฒ๐ ๐๐ผ๐ผ๐ด๐น๐ฒ ๐ฟ๐ฒ๐ฐ๐ผ๐บ๐บ๐ฒ๐ป๐ฑ ๐ ๐ผ๐ฑ๐๐น๐ฎ๐ฟ ๐ ๐ผ๐ป๐ผ๐น๐ถ๐๐ต๐ ๐ถ๐ป๐๐๐ฒ๐ฎ๐ฑ ๐ผ๐ณ ๐ ๐ถ๐ฐ๐ฟ๐ผ๐๐ฒ๐ฟ๐๐ถ๐ฐ๐ฒ๐?
In the last decade, we have seen a massive trend of using microservices everywhere. We were building systems for a few hundred or thousand users and wanted to know how to make a system for millions of users. This was over-engineering and needed to be corrected. Why it was wrong? Because the development lasted long and we created incredibly complex systems, hard to maintain. This is especially true for startups that must go fast and stay simple.
A recent paper by authors from Google found that most of their developers split binaries for one of the following reasons: it improves performance, fault tolerance, and abstraction boundaries and allows for flexible rollouts.
Yet, splitting applications into microservices has its challenges:
๐ธ ๐๐ ๐ต๐๐ฟ๐๐ ๐ฝ๐ฒ๐ฟ๐ณ๐ผ๐ฟ๐บ๐ฎ๐ป๐ฐ๐ฒ. The overhead of serializing data and sending it across the network is increasingly becoming a bottleneck
๐ธ ๐๐ ๐ต๐๐ฟ๐๐ ๐ฐ๐ผ๐ฟ๐ฟ๐ฒ๐ฐ๐๐ป๐ฒ๐๐. It is incredibly challenging to reason about the interactions between every deployed version of every microservice.
๐ธ ๐๐ ๐๐ฎ๐ธ๐ฒ๐ ๐๐ผ๐ฟ๐ธ ๐๐ผ ๐บ๐ฎ๐ป๐ฎ๐ด๐ฒ. Rather than having a single bi-nary to build, test, and deploy, developers must manage ๐ different binaries, each on their release schedule.
๐ธ ๐๐ ๐ณ๐ฟ๐ฒ๐ฒ๐๐ฒ๐ ๐๐ฃ๐๐. Once a microservice establishes an API, it becomes easier to change by breaking the other services that consume the API.
So, they proposed the following approach:
๐ญ. ๐ช๐ฟ๐ถ๐๐ฒ ๐บ๐ผ๐ป๐ผ๐น๐ถ๐๐ต๐ถ๐ฐ ๐ฎ๐ฝ๐ฝ๐น๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป๐ that are modularized into logically distinct components. A component is a long-lived agent, similar to an actor.
๐ฎ. ๐๐ฒ๐๐ฒ๐ฟ๐ฎ๐ด๐ฒ ๐ฎ ๐ฟ๐๐ป๐๐ถ๐บ๐ฒ ๐๐ผ ๐ฑ๐๐ป๐ฎ๐บ๐ถ๐ฐ๐ฎ๐น๐น๐ and automatically assign logistical components to physical processes based on execution characteristics. So, if both components are in the same OS process, they are called regular method calls, but if they are co-located, calls are executed as RPCs over the network. Runtime decides whether these modules should be collocated or moved to different machines (and scaled, etc.).
๐ฏ. ๐๐ฒ๐ฝ๐น๐ผ๐ ๐ฎ๐ฝ๐ฝ๐น๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป๐ ๐ฎ๐๐ผ๐บ๐ถ๐ฐ๐ฎ๐น๐น๐, preventing different versions of an application from interacting.
This approach consists of two main parts: a programming model with abstraction that allows developers to write modularized applications and a runtime for building, deploying, and optimizing these applications. They claim that it reduces application latency by up to 15x and costs by up to 9x by simplifying application management and deployment.
If you want to check the framework implementing the approach from the paper, check https:// serviceweaver. dev/.
What do you think about this approach? Does it look like EJBs or CORBA?
#microservices
BAD SOURCES OF DOPAMINE:
Porn
Alcohol
Junk food
Gambling
Excessive screen time
GOOD SOURCES DOPAMINE:
Music
Sunlight
Meditation
Working out
Cold showers
Learn the difference.
5 herramientas de IA para automatizar:
1. Generar imรกgenes a partir de texto:
@craiyonAI
2. Convierta el texto en voces en off:
@resembleai
3. Convierta el habla en texto:
@DeepgramAI
4. Componga mรบsica con IA:
@SplashMusicCo
5. Crea hermosas presentaciones:
@BeautifulAI_
How to become a top 1% man in 2023:
No porn
Workout
Daily sun
Discipline
Meditation
No alcohol
Productivity
Chase goals
8 hours sleep
4L water a day
Spend time with family
Talk to someone attractive
What would you add?
ยฟQuieres subir de nivel en JavaScript? Gratis y en Espaรฑol.
Clean Code, SOLID, Algortimos, Buenas prรกcticas.
Te comparto los MEJORES repositorios para que lo consigas
[ H I L O ]
Este recurso para desarrolladores crea una API de prueba para tu proyecto.
Se llama Mocky:
- Endpoints con cualquier Status Code
- Configura los HTTP Headers
- Todo tipo de respuestas
- Gratis y sin registros
https://t.co/2ZoE8a6iTx
"Oh tรญo, me siento tan mal todo el tiempo, ยฟquรฉ me pasa?"
ยฟQuรฉ te pasa?
Tรญo, literalmente:
- No haces ejercicio
- Comes 4-5 veces al dรญa
- Dices que sรญ todo el tiempo
- Deslizas 3 horas por Instagram y Tiktok
- Pones a las mujeres en un pedestal
- Pasas horas con videojuegos
7 Estructuras de Datos en Programaciรณn y su implementaciรณn en JavaScript.
Hilo con vรญdeos cortos que puedes ver aquรญ, sin salir de Twitter.
๐งตโฌ๏ธ
ยกVamos con todo con el 2023!
Si te interesa el:
๐ Desarrollo Web, JavaScript y CSS
โ๏ธ React y Next.js
โ Buenas prรกcticas, trucos y consejos
๐ Cursos y tutoriales de programaciรณn
ยกSรญgueme!
Voy a compartir un montรณn de contenido en esta cuenta. ๐คฉ
En JAVASCRIPT existen mรกs de 50 operadores.
Es imposible que te acuerdes de todos...
ยกUsa JavaScript Operator Lookup!
Un buscador que te ofrece una descripciรณn y ejemplo de cada uno.
๐ https://t.co/7dgvyjBe4J
RECURSOS para desarrolladores:
๐ Despliegue de aplicaciones y bases de datos GRATIS
โ devโคnew
๐ Resuelve todas tus dudas con GIT
โ firstaidgitโคio
๐ก Cientos de APIs para tu prรณximo proyecto
โ rapidapiโคcom
๐ง Mejora tu lรณgica de programaciรณn
โ exercismโคorg
27 de diciembre de 2021, me planteo un reto:
Resolver CADA SEMANA, durante un AรO, un ejercicio para mejorar nuestra LรGICA de PROGRAMACIรN.
23 de diciembre de 2022... ยกCONSEGUIDO!
ยกAQUร tienes 52 ejercicios resueltos para MEJORAR como PROGRAMADOR/A!
[ H I L O ] โฉ