AdrianDev374 retweeted
Hay desarrolladores de software que tienen 20 años de experiencia pero en realidad es 1 año repetido 20 veces.
Y hay otros con 5 años pueden aportarte más.
El tiempo y la edad no es garantía de nada.
#softwaredevelopment
AdrianDev374 retweeted
Some of the answers to this tweet just prove one thing: people need to give PHP and its ecosystem a second try; it is not the same as it was in 2005.
AdrianDev374 retweeted
🚨 NUNCA digas "NO" cuando en una entrevista te pregunten:
¿Tienes preguntas?
➡️ No es una inocente pregunta, es para probar si tienes interés.
💬 Algunas ideas de preguntas, HILO 🧵
#devjobs #codenewbie #100daysofcode
AdrianDev374 retweeted
🧼 CLEAN CODE 👉 Las 35 claves para escribir código de CALIDAD 🥇
Me he releído y destilado los puntos más importantes del libro de Robert C. Martin.
Cuéntame qué te parecen 🧵⬇️
AdrianDev374 retweeted
Uno de los mejores recursos para desarrolladores.
¿Quieres transformar un SVG a un componente de React ⚛️?
¿Y un JSON a una interfaz de TypeScript?
¿CSS a clases de Tailwind?
¿XML a JSON?
No importa la transformación que necesites.
En transform.tools las tienes TODAS.
AdrianDev374 retweeted
Qué pena ver tantos palos entre devs.
Lo tengo claro:
Cualquier persona que esté dispuesta a compartir lo aprendido para ayudar al resto (independientemente de su grado de conocimiento), vale infinito más que la opinión de "Paco_75" esforzándose en decirte que sabe más que tú.
AdrianDev374 retweeted
Angular v14 is here 🎉
#ngUpdate includes:
🔑 Strictly typed forms!
🌈 Streamlined page title accessibility
🗯 CLI autocomplete
➕ a developer preview of standalone components! 🤯
& so much more!
Learn all about v14:
📚 goo.gle/angular-v14
AdrianDev374 retweeted
Laravel Tip 💡 Did you know you can enrich request data using a middleware? For example, resolve the user origin country using their IP and add the country abbreviation to the request.
AdrianDev374 retweeted
🌶️ #Laravel Tip: Ever wanted to transform the paginator results to return a subset of fields and not all? Better use the through() function instead of the map() function.
Here's an example to illustrate 🔥
https://nitter.gq/t.co/1I2v0lmLyy
#PHP #Development
![/** * Paginate User records and return a set of fields * */ // Don't Do - 🚫 // map() replaces the paginator with a new collection $users = User::paginate(10)->map(fn($user) => [ 'id' => $user->id, 'name' => $user->name, ]); // Do - ✅ // through() is almost like map() but it's applied to the internal // items of paginator $users = User::paginate(10)->through(fn($user) => [ 'id' => $user->id, ...](https://pbs.twimg.com/media/FTX4GK2UYAMZWHD.jpg?name=small&format=webp)
ALT /** * Paginate User records and return a set of fields * */ // Don't Do - 🚫 // map() replaces the paginator with a new collection $users = User::paginate(10)->map(fn($user) => [ 'id' => $user->id, 'name' => $user->name, ]); // Do - ✅ // through() is almost like map() but it's applied to the internal // items of paginator $users = User::paginate(10)->through(fn($user) => [ 'id' => $user->id, ...
AdrianDev374 retweeted
Elegir trabajar en una startup es una decisión similar a la de invertir en una.
Al igual que un inversionista, puedes evaluar: 👇
AdrianDev374 retweeted
Working on a Livewire component that allows you to add mentions and hashtags like autocomplete Twitter to your textarea 💅
AdrianDev374 retweeted
Not sure if this has been floating around recently, but @SteveTheBauman's tweet reminded of another great way to manage dedicated query builders.
Unlike scopes, both approaches give you a perfect autocompletion without any 3rd party packages or plugins.
A super cool, alternative approach to class based query scopes that I saw on Laravel GitHub issues by @kalpaperera, using The $query->tap() method 🔥 This allows you to keep your IDE type-hints 🙌






























