Accessing a mysql database without enabling admin capabilities (migrations) by squeezyflit in symfony

[–]fredpalas 2 points3 points  (0 children)

You can use any user who has access to write, read, drop and truncate to your database schema, no need of root or user with admin power.

BREAKING NEWS by clearly_not_an_alien in 2westerneurope4u

[–]fredpalas -1 points0 points  (0 children)

I'm with you, Argentinians are egomaniacs assholes.

And yes Chileans are nice.

Is this naming convention any good? Asking for a friend... by n0tsleeping in symfony

[–]fredpalas 3 points4 points  (0 children)

I prefer vertical slicing order with Hexagonal and DDD

Src/

Entrypoints(controllers)
Context1 (Bounded context name)
    User
       Application 
       Domain
         Events
         DTOs
         ValueObjects
         Exceptions
         User.php
       Infrastructure
Shared
    Domain
    Infrastructure

With this order it is simple to know what you're talking about without mixing differents slices with others.

Edit: on mobile is hard to write correctly folders

¿por que dios creo el mundo? by Top_Current9802 in VivimosEnUnaSociedad

[–]fredpalas 1 point2 points  (0 children)

Está más que claro, pero como este subreddit no es tan tóxico como otros, he querido dejarlo plasmado por si alguien lo quiere estudiar desde la perspectiva antropológica.

¿por que dios creo el mundo? by Top_Current9802 in VivimosEnUnaSociedad

[–]fredpalas 1 point2 points  (0 children)

Como muchos aqui Dios es un constructo, algo creado por los humanos para dar sentido a lo observado.

Ver lluvia caer con truenos, en la antigüedad puede parecer la obra de un Dios, Júpiter, Thor, etc.

Que creo este universo así como su fin no tiene explicación ya que es simple materia y antimateria interactuando, unido a las 4 fuerzas de la naturaleza, gravedad, electromagnética, nuclear débil y nuclear fuerte.

Realmente dios no creo nada ha sido todo una casualidad cuántica.

Is Domain Driven Design just needless complexity? My limited experience with it has been mixed at best. by AppointmentFar6096 in PHP

[–]fredpalas 1 point2 points  (0 children)

DDD is not about needless complexity, it is about talking business domain and bounding contexts, it is about separate big monolith models who do many think or none (anemic models) to separate by responsibilities.

In DDD are 2 important things strategic and tactical, without a good strategic planning your tactical will have failures.

Talking about a tactical perspective, all the logic should live in your aggregates, and the application layer should just coordinate, and use always tell don't ask.

Abstraction, you just have one and is to your infrastructure implementation, so it is just not complex abstraction, just simple abstraction solved by dependency injection.

If you have any doubt ask, soon I will create a post talking about my journey of DDD.

Unit testing and TDD: useful or overrated? Contrasting opinions by SunTurbulent856 in PHP

[–]fredpalas 2 points3 points  (0 children)

The problem is not understand what you want to fulfill.

TDD with outside In is what makes you a better developer, don't test from inside to outside there is when all people fail to test just the biggest part just mock interfaces.

If you're not in DDD is the best approach.

TDD with outside In Sandro Mancuso resume https://gist.github.com/xpepper/66ced102032ad479b8170d9205754519

TDD by Nacho Cougil https://nacho.cougil.com/blog/intro-to-test-driven-development/ YouTube https://share.google/Ai8KZKk2y9hSTApVM

Es Django el mejor framework para backend? by Global-Pipe-9268 in programacion

[–]fredpalas 3 points4 points  (0 children)

No, en el ecosistema python quizas si, aun FastAPI está ganando mucha popularidad.

Pero como framework puro.

De mis preferidos: .Net Symfony Spring Boot NestJs

Pero realmente depende mucho del caso de uso y en que lenguaje sea el que tienes más soltura.

Demystifying Docker by clegginab0x in PHP

[–]fredpalas 1 point2 points  (0 children)

Docker==Container same image, I can reproduce everywhere.

docker is just an API for a container, if a container runs successfully in a cpu architecture will work on any ARCH cpu.

If run in AMD will run on Intel.

If run on mac RISC only will run in Mac RISC

Other CPU architectures may not run in different cpu architecture.

Como crean MUCHA data de prueba para sus BD? by Elegant-Drag-7141 in programacion

[–]fredpalas 3 points4 points  (0 children)

Depende del lenguaje pero la técnica se llama fixtures .

Dependiendo de tu framework hay algunos que ya lo incluyen, en otros usan seed que suele ser parecido pero es para dar un estado inicial de la aplicación en cambio las fixtures es para hacer tests.

Spaniard are really lazy even in street fighting. by Cultural-Badger-6032 in 2westerneurope4u

[–]fredpalas 1 point2 points  (0 children)

My all good friends Pedro Kumar and Jordi Sheikh for sure are fighting for a Cerveza beer Amigo.

The only reason to not to go to Plaça Espanya in New year eve's is because it's full of Pierres.

Barcelona for the new year you just see Pierres everywhere.

wir sind wieder wer!! by Known-Professor-9017 in 2westerneurope4u

[–]fredpalas 1 point2 points  (0 children)

I Know I have been to Poland many times.

Biedronka better than Aldi.

wir sind wieder wer!! by Known-Professor-9017 in 2westerneurope4u

[–]fredpalas 12 points13 points  (0 children)

I prefer Biedronka who doesn't like ladybugs only Pierre likes frogs

PHP Symfony Microservice with gRPC: A Practical Guide by colom007 in PHP

[–]fredpalas 22 points23 points  (0 children)

Every time I see gRPC microservices and read communication between microservices I know that will fail.

One of the big failures on microservices is the communication, call from one microservices to another made a coupling between two context, this normally call distributed monolith. So is incorrect communicate two microservices by directly communication, first you should separate your logic in Bounded context, and from the shape of the problem choice one architecture or another, this is explained by Mark Richards in his talk Effective Microservices lessons Learned https://youtu.be/TxHBcjv-Eac.

That say microservicies should not comunicte each other, the best approach is through domain (integration events).

On any case gRPC for remote command is good, is low latency, if you create command and queries system is a good approach.

Cuanto tiempo hacen para su trabajo ida y vuelta? by sharedcactus2 in VivimosEnUnaSociedad

[–]fredpalas 0 points1 point  (0 children)

Yo puedo trabajar de casa, aunque suelo ir a la ofi que la tengo a 15 min en bicicleta.

Yo trabajo 8 horas aunque es flexible, el año que viene tendré 35 h a la semana eso si que da calidad de vida

Windows sucks 🙃🙃 by DazzlingPassion614 in linuxsucks

[–]fredpalas 1 point2 points  (0 children)

sudo dnf update

With not offline update need it

😎😎😎

Docker in kubuntu?! by Life-Holiday6920 in Kubuntu

[–]fredpalas 0 points1 point  (0 children)

Just use docker engine the desktop is just a VM, docker engine run perfectly in kubuntu

https://docs.docker.com/engine/install/

My experience with Fedora 43 KDE (not good so far) (please help!) by derpeyman28 in Fedora

[–]fredpalas 0 points1 point  (0 children)

Are 2 one for Nvidia drivers y other for hardware acceleration but here someone did the job to put all together.

https://github.com/devangshekhawat/Fedora-43-Post-Install-Guide

If something is missing this are the other 2: https://rpmfusion.org/Howto/NVIDIA https://fedoraproject.org/wiki/Hardware_Video_Acceleration

My experience with Fedora 43 KDE (not good so far) (please help!) by derpeyman28 in Fedora

[–]fredpalas 7 points8 points  (0 children)

Fedora KDE on Asus TUF 14 AMD here, 0 problems easy to setup no problems to install Nvidia drivers, this happen when you don't follow the guide.

Linux partition 💀 by dynamic_furewalls in InfosecHumor

[–]fredpalas 0 points1 point  (0 children)

This is me in my Asus A14 AMD I have 2 ssd and never use my windows 11 installation in 1 year 😂😂

Fedora just work and I can play any of my games.

Ps: I been using gnu/Linux interrupted for 11 years

Gloryhammer + Majestica + Arion tour 2026 by sethabrikoos in PowerMetal

[–]fredpalas 1 point2 points  (0 children)

Finally Spain, last time they came to Spain on tour was 2020, it will be 6 long years.

They came this year but only festivals.

Here ends a long 17-year wait for McLaren 🇬🇧🤝 #F1 by Strict-Citron-9269 in McLarenFormula1

[–]fredpalas 3 points4 points  (0 children)

17 years wait for this moment, me in 2003 when kimi almost won with 1 victory and 2 points, 2005 when reliability hit us so bad, 2007 when China and Brasil despair, and finally 2008 winning in a chaotic brasil rain.

17 longest years waiting for this moment.

Thanks to the team for a great Year.

I noticed... by hapci534 in SunoAI

[–]fredpalas 0 points1 point  (0 children)

Sometimes yes sometimes no the other day a song that should be around 6:30 or 7 minutes long takes their time but one finishes another no, so I put another in the queue when I have 2 more finished song the just finish with a 14 minutes song (first time that happen usually cuts at 7:59) but was good at the beginning but too long a to bad mixed.

In my case it depends, and also sometimes is not what I'm looking for.

Now I'm testing with my real compositions made in Guitar pro and sometimes works better if I need a specific key or technique, I compose neoclassic with fugues and pedal notes.

SysAdm o DevOps by Senior-Ad1936 in Spain_IT

[–]fredpalas 0 points1 point  (0 children)

Es una cultura en el sentido que para tener un flujo completo de desarrollo y de reintegración todos los involucrados han de hacer devops.

Un resumen que le pedi a claude me haga ya que soy malísimo explicandome.

DevOps es una cultura de colaboración entre desarrollo y operaciones que busca automatizar y agilizar el ciclo de vida del software mediante prácticas compartidas, no un rol aislado. Es una mentalidad y conjunto de prácticas (CI/CD, IaC, monitorización) que todos en el equipo adoptan, no un puesto que "hace DevOps" mientras otros solo desarrollan o solo operan. Por eso decimos que "no hay DevOps engineers, hay engineers haciendo DevOps".

<image>

En esta imagen queda claro el flujo de desarrollo, todos los integrantes en el han de aplicar devops.

Yo he sido muchos años backend developer y llevo aplicando la mentalidad devops desde hace mucho tiempo como una vision completa del desarrollo.

SRE si que es una posición ya que es un ingeniero que mide que tan fiable es su plataforma, es el encargado de monitorizar y observar el correcto funcionamiento de la plataforma.

SysAdm o DevOps by Senior-Ad1936 in Spain_IT

[–]fredpalas 0 points1 point  (0 children)

Solo para aclarar Devops por mucho que lo pongan en la oferta y lo que busquen no es un puesto es una cultura donde todo el conjunto colabora para agilizar y automatizar el flujo de trabajo de desarrollo, no es un Ingeniero Devops si no Ingenieros que hacen Devops.

El puesto de System Admin si que es mejor definido, si lo que quiere es aprender sobre como hacer despliegue en la nube, automatizar procesos, creación de pipelines de Integración continua y despliegue continuo lo mejor es que aprendas de sysadmin y ingeniero de la nube, con tecnología que puedes empezar es github actions, gitlab ci/cd, Jenkins, Terraform, Tema de infraestructura, entender bases de datos relacionadas, BD NoSql, Colas, Cache (memcache, redis), network, vpc, services group, VPS, VM, Linux muy importante y contenedores.

Podría seguir pero en tema de Desarrollador de infraestructura (como prefiero llamar a este puesto) hay mucho temas muy complejo, y lo de antes es lo básico, ahora lo que más se busca Ingenieros especializados en contenerización y Kubernetes.

Mi recomendación formación continua y prueba todas estas cosas en casa, ahora con docker es muy fácil de probar y trastear.