AdrianDev374

216 posts

AdrianDev374 banner
AdrianDev374

AdrianDev374

@AdrianDev374

Senior Software Developer 👌 AWS Solutions Architect 💻 @awscloud

España شامل ہوئے Aralık 2018
110 فالونگ25 فالوورز
AdrianDev374 ری ٹویٹ کیا
Jorge Sánchez
Jorge Sánchez@xurxodev·
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
Español
0
3
12
813
AdrianDev374
AdrianDev374@AdrianDev374·
@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 💪👏
Español
0
0
3
0
EmoPorEmilio 🇺🇾
EmoPorEmilio 🇺🇾@emoporemilio·
me encuentro probando php (laravel) sin una gota de ironía
Español
3
1
3
0
AdrianDev374 ری ٹویٹ کیا
nunomaduro
nunomaduro@enunomaduro·
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.
English
5
7
113
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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 🤣
English
0
0
0
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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.
English
1
0
0
0
Andrew Cairns
Andrew Cairns@andrewcairns·
One of the most common obstacles to "don't return from commands" in #CQRS is obtaining the newly-created ID of from the database. I see this as a strong hint at infrastructure coupling.
English
3
1
7
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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.
English
1
0
0
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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.
English
1
0
1
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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.
English
1
0
0
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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.
English
1
0
0
0
Marian Kostadinov
Marian Kostadinov@stochnagara·
@AdrianDev374 @mvriel @andrewcairns It is a sort of a leak. What if there is a business rule that the ID is let's say the current year + an increment over the last used value + maybe some more? You can definitely not build such a value on the front/client.
English
1
0
1
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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.
English
1
0
1
0
AdrianDev374
AdrianDev374@AdrianDev374·
@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 😅
English
1
0
1
0
AdrianDev374
AdrianDev374@AdrianDev374·
@mvriel @andrewcairns Whenever I have used CQRS I have passed the UUID from the front, and this fixes all the problems 😀
English
2
0
3
0
AdrianDev374
AdrianDev374@AdrianDev374·
@williamxsp @usmanahmedmalik Simplifying, you must create your own class to "translate" the "Criteria" class (including filters, pagination, among others) to Eloquent.
English
0
0
1
0
AdrianDev374
AdrianDev374@AdrianDev374·
@alexandersix_ I dont usually do it. I think with clean code is enough to undestand the code 😁
English
1
0
0
0
Alex Six
Alex Six@alexandersix_·
Any other #Laravel developers add static constructors to their custom classes to get that ~lovely~ method chaining? MyClass::make()->method() over (new MyClass())->method() any day 🔥
English
12
4
30
0
AdrianDev374
AdrianDev374@AdrianDev374·
@MohammedDayraki @laravelphp I think Laravel has enough performance and optimization for any large application so I think it makes sense to remove it ☺️☺️
English
0
0
0
0
AdrianDev374
AdrianDev374@AdrianDev374·
🚩🚀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.
AdrianDev374 tweet media
Español
1
0
1
0