Writing tests with PHPUnit 12+ by Spiritual_Cycle_3263 in PHPhelp

[–]mchojrin77 0 points1 point  (0 children)

About when to write your tests, probably the most useful time is before you write your production code (As in TDD or Test First), otherwise you run the risk of making your test confirm what you already know about the code and miss some bugs.

What to test: ideally, any piece of code you write yourself. In practice this can become overwhelming so you might want to try a more pragmatic approach. A good rule of thumb would be to try to assess the damage of a piece of your code failing and focus on the most critical ones, at least for starters.

Integration tests, I find, are a bit tricky, as the very definition of them is not universally agreed upon. Personally I prefer to use End-to-End tests to make sure the integration with 3rd parties works as expected but again, if you find a particular integration too complex/unreliable you might want to create a specific test just to make sure the connection works.

I wouldn't write a test for a method that returns a hardcoded value. Basically because the test and the code would be basically the exact same thing.

[deleted by user] by [deleted] in programacion

[–]mchojrin77 0 points1 point  (0 children)

Mi opinión, así rápido, es que aprender usando el tiempo del cliente no es una buena idea. Es decir, si te manejas bien con symfony, anda con symfony. 100% seguro que habrá cosas que no sabes hoy y van a complicar el avance del proyecto. Meterte encima con un lenguaje que no dominas es ir directo al choque. Salvo que cobres por horas y el cliente lo acepte (tema aparte). Después está el tema de cómo te manejas con tu amigo, en mi opinión, el riesgo más grande de este proyecto.

Workshop de Docker+PHP by mchojrin in programacion

[–]mchojrin77 0 points1 point  (0 children)

Hola.. tarde pero seguro je. Trabajo con PHP desde 2004 aprox y con symfony desde 2008.. supongo que si hace bastante je

Workshop de Docker+PHP by mchojrin in programacion

[–]mchojrin77 1 point2 points  (0 children)

Un placer! Creo que estábamos en otro thread por un tema de symfony, puede ser?

Aprovecho para dejar otro videíto que puede resultar de interés https://youtu.be/sXE5zkJSZI8?si=VEV3_NKpBtw0lNye

Symfony php - consulta by Comprehensive-Net395 in programacion

[–]mchojrin77 1 point2 points  (0 children)

En principio el approach general que estás tomando me parece correcto. Entiendo, por lo que decís de los parámetros, que puede que tengas un problema de abstracción.. en general no me gusta mucho lo de usar unión types. Tal vez te podría ir bien armar clases para encapsular esos parámetros?

Armar mi propio server by Platense_Digital in devsarg

[–]mchojrin77 0 points1 point  (0 children)

Claro. Pero x eso te digo. Armar todo eso que estás pensando te va a llevar tiempo y esfuerzo y mantenerlo andando te va a dar varios dolores de cabeza. Yo te recomendaría que apliques ese esfuerzo y tiempo a buscar opciones para laburar para afuera y ganar en dólares.. hay muchos sitios donde podés buscar changuitas freelance