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
@EmoPorEmilio Pues verás que si configuras correctamente PHP y optimizas un poco Laravel, puedes hacer peticiones HTTP GET para obtener muchos resultados de base de datos sin paginar en 50-60ms y sin que esté cacheado.
Actualmente PHP es más eficiente que muchos otros lenguajes 💪👏
@stochnagara@mvriel@andrewcairns It works very well for me in applications that have many requests per second 😁
There is never an absolute truth in software development 🤣
@stochnagara@mvriel@andrewcairns hahaha is true. In conclusion, I send the autogenerated UUID from the front so that my asynchronous commands do not have to return data, since we already have it in the front. It also helps that these entity IDs are not easy to guess.
@stochnagara@mvriel@andrewcairns its ok, but if i use postman or curl? or create a bot to execute the same request 1000 times? You would have 1000 identical users but with different identifiers.
In my opinion, UI is only the first filter of security for this actions.
@stochnagara@mvriel@andrewcairns But if a user registers, and clicks 5 times, it shouldn't be created 5 times, right?
That is why the UUIDv4 also comes from outside, so that it is idempotent.
@stochnagara@mvriel@andrewcairns So, what happens if I click multiple times to create a user? Will it be created X times? A very common case when you go by subway and do not have good coverage.
@stochnagara@mvriel@andrewcairns In the case that you indicate, it would be one more attribute of the entity but not the primary identifier. I don't want my entity IDs to be easily identifiable to the outside.
@stochnagara@mvriel@andrewcairns For example, if I am creating users with ID (uuid), name and email, why do I want the request and the command to return data if I already have it?
It greatly improves the performance of the application when there are many many requests per second. At least it works for me.
@stochnagara@mvriel@andrewcairns Why wrong place? I do not couple to any database. I also don't generate it in the backend since most of them are asynchronous. Why do I want to return data from a command if I'm already sending it to it?
Excuse my english 😅
I've just published my first package for Laravel 9. It's a very simple package to automatically load route files.
You can see it here:
https://t.co/NDzpGr5lLJ
@PovilasKorop@laravelphp@laravelnews
@williamxsp@usmanahmedmalik Simplifying, you must create your own class to "translate" the "Criteria" class (including filters, pagination, among others) to Eloquent.
@MohammedDayraki@laravelphp I think Laravel has enough performance and optimization for any large application so I think it makes sense to remove it ☺️☺️
🚩🚀Bus de comandos en @laravelphp
¿Sabes como utilizar el despachador de tareas de Laravel? Os muestro un ejemplo para crear una implementación de CommandBus síncrono.
🔴Tener un bus de comandos y de queries es muy importante a la hora de implementar una aplicación con DDD.