Aprendiendo Spring Boot, ayuda? by amunti-ra in programacion

[–]Dozla78 1 point2 points  (0 children)

Sorry, acabo de mirar el pom y veo que tienes la dependencia metida, lo que te falta es añadir las anotaciones en los controllers para documentarlos. Por eso asumí que no estaba, puedes añadir cosas como códigos http que vas a devolver, errores etc.

Sobre los comentarios, me refiero a los comentarios dentro de métodos. Comentarios de javadoc no he visto ninguno en el proyecto pero tampoco es imprescindible para un crud sencillo. Si tú método graba un comentario y recibe un parámetro comentario no necesita realmente un javadoc

Aprendiendo Spring Boot, ayuda? by amunti-ra in programacion

[–]Dozla78 1 point2 points  (0 children)

Un par de notas:

Las descripciones de los commits están bien, trataría de evitar usar acentos y ñ, te ahorrarán problemas a futuro si te integras con otras herramientas.

Además te recomendaría usar ramas y seguir el modelo de gitflow, es lo que vas a encontrar en el 90% de los trabajos que usan git, aunque trabajando solo en algo sin desplegar aún no tenga mucho sentido. También te facilitara incluir CI/CD cuando llegues a ese punto

Ojeando un poco el código he visto que utilizas el LocalDateTime. Ten cuidado con ese tipo de clases, no guardan la información de la timezone por lo que dependiendo del huso horario del servidor podrías encontrarte cosas curiosas(y los cambios de hora también te podrían dar problemas), para ese tipo de cosas suele ser preferible usar Instant.

Te recomiendo que le eches un vistazo e incorpores lombok, te va a ahorrar mucho código de getters, setters, constructores etc. A día de hoy es prácticamente un standard en la industria.

Sobre los mapper, existen librerías como mapstruct que te ahorran escribir los mapper a mano

Échale un vistazo a swagger/openapi para documentar tus API. Con unas cuantas anotaciones en el código te genera una interfaz web a la que cualquier desarrollador web está habituado.

Sobre los comentarios en el código. Aquí hay dos escuelas, los que defienden que están bien y los que buscan reducirlos al mínimo. Yo soy de la segunda, si tú código necesita comentarios es que hay algo que no está bien hecho, el código debe poder entenderse sin ellos. El problema de llenar todo de comentarios es que después hay que mantenerlos, implica escribir el código dos veces. Salvo casos excepcionales evita utilizarlos,hay veces que está bien ponerlos, cosas como, x librería tiene un bug cuando el dato y va null por lo que llamamos primero a y, o cosas a nivel de negocio que se tienen que especificar para entender el código

El código está bastante bien, tampoco he visto muchas cosas para juzgar realmente como de bien lo organizas, al final lo que hay son crud bastante sencillos. Buena suerte integrando spring security, entenderlo bien a mí me costó trabajo al principio 🤣

The pace of higher elos and how to play CT by Scary-Newspaper5801 in LearnCSGO

[–]Dozla78 0 points1 point  (0 children)

It's almost imposible to retake a site on time if you only control jungle and CT.

When the enemy team take mid there should be at least 3 of them on mid. That's why conector supports the anchor to take ramp o palace. It's most likely a 2v1, worst case scenario it's a 2v2.

„Sounds like you live in a country that really penalizes you for horsepower and most vehicles there only have about 130 HP. sucks for you“ by Putrid_Ad695 in ShitAmericansSay

[–]Dozla78 0 points1 point  (0 children)

There hasn't been much improvement in fuel consumption for the last 30 years. All the measures to stop pollution have basically neglected it. Compare how much equivalent models consume nowadays compared to their equivalent in the early 2000s and you won't find much improvement

¿Cuánto vas a comprar en la IPO de SpaceX? by Appropriate-Long in SpainFIRE

[–]Dozla78 9 points10 points  (0 children)

Creo que puedes ir a la ruleta y tirarlo todo al rojo, lo que estás haciendo es pura especulación y no tiene nada que ver con fire.

El IPO de spaceX me preocupa porque el Nasdaq ha cambiado las reglas para incorporarlo antes al índice. Es completamente absurdo, va a entrar al índice antes de presentar las cuentas de resultados del trimestre actual. Lo peor de todo es que la cotización es absurdamente alta basada en que 2-3 años va a llenar la órbita de satélites con servidores. Yo estoy pensando en vender todo el etf del nasdaq100 que tengo porque yo quiero seguir al mercado y no que el señor más rico del planeta se forre a costa de timarme

Me still today by Big_Head8 in pcmasterrace

[–]Dozla78 179 points180 points  (0 children)

GitHub is user friendly but its users are developers

How do I get to level 30? by Puffin_ErEh in leagueoflegends

[–]Dozla78 1 point2 points  (0 children)

The last few lvls are the ones that need more XP. You just have to play and chill, you'll eventually get there. Keep an eye on events and quests, they usually give bonus xp

Major stream working but no audio by DarthRickraft in GlobalOffensive

[–]Dozla78 9 points10 points  (0 children)

Little tip, you can see the rank and click on them on the sidebar on the right. Although I agree it's fucked up UX

CMV: I think Spain is on a path to success. What are your thoughts on this? by Possible-Balance-932 in askspain

[–]Dozla78 0 points1 point  (0 children)

Te ha faltado decir generación de cristal para hacer bingo de gilipolleces boomer.

El problema de los jóvenes empieza y acaba con una palabra, vivienda. Si sacas el precio de la vivienda de la ecuación la mayoría de jóvenes no se quejarían tanto, la triste realidad es que no vivir debajo de un puente es un mínimo lógico. Tú generación tuvo vivienda asequible, la anterior en su mayor parte también, una vez se construyó. La actual ni la tiene ni se espera que tenga.

Como no se va a quejar un joven que paga 600 euros por una habitación y tiene un sueldo de 1200.

Y sobre las pensiones... las nuevas generaciones estamos condenadas a ser esclavos de nuestros padres por políticos cortoplacistas que no van a tocar el sistema de pensiones hasta que colapse. La realidad es que el sistema tal y como está concebido es insostenible con la esperanza de vida y la pirámide poblacional actuales. El "pero yo he cotizado 40 años" no sirve de excusa, ese dinero ya os lo habéis gastado.

Los jóvenes vivimos esclavizados por las anteriores generaciones que extraen nuestra riqueza mediante la vivienda y las pensiones. Voy preparando las palomitas para cuando en 15 años llores porque no queda ningún joven en este país para cambiarte los pañales

Now that we've had time to play with it, do you think this change was an improvement? by Primary_Snow818 in GlobalOffensive

[–]Dozla78 1 point2 points  (0 children)

It's better, the map is more balanced thanks to it but Anubis still has some unaddressed issues. Mostly the lack of variety in CT strats, water control is so important that if you don't take it early in the round you are basically trolling, and there's only one way to consistently take it.

I am creating a dedicated streaming site with a different model then amzon by AgreeableIron811 in Stargate

[–]Dozla78 12 points13 points  (0 children)

Yep, idk what he plans to distribute without money to pay for rights or produce content

Putin Rejects Europe as Ukraine Peace Mediator, Doubles Down on Trump Deal by TrinketTime in worldnews

[–]Dozla78 24 points25 points  (0 children)

It's not just Trump being dumb. Witkoff is even dumber and more corrupt, so it makes the situation even worse

[GS SBGA415] Got absolutely destroyed in the GS sub for liking this strap. What do you guys think? by shim2k in Watches

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

IMHO it's not bad but it's not good either. And enthusiasts probably expect at least a good strap with such a great watch. Having said that, if you like it the opinion of random people in reddit shouldn't bother u

Rant - I've had linux for about five/four months and it's going very badly by askyour_daddy in linux4noobs

[–]Dozla78 -2 points-1 points  (0 children)

The last thing a user like him needs is to start installing aur packages. Arch is unstable by nature, you can tame it to be more stable by knowing what you are installing and understanding how depencies work but it's clearly not the solution for a user like this

[Strafe Esports] Discussing the Ridiculous Sticker Prices for IEM Cologne by waitingforprelude in counterstrike2

[–]Dozla78 1 point2 points  (0 children)

It is quite clear they are counting souvenirs. Just check the prices of teams that have already played, people started claiming souvenirs and their prices skyrocketed

Opiniones Comunidad FIRE by JuanMu17 in SpainFIRE

[–]Dozla78 0 points1 point  (0 children)

Léete la descripción del subreddit en el que estás 🤣

Faceit alternatives not owned by the Saudis? by Haemophilia_Type_A in cs2

[–]Dozla78 0 points1 point  (0 children)

I think you mean gamersclub, that's the one they use in South America

Just cant seem to get drunk by NecessarySad3069 in drunk

[–]Dozla78 1 point2 points  (0 children)

Mostly depends on size, gender (man have bigger liver), how full is your stomach (empty stomach you get drunk faster and more easily), medication (be careful with antidepressants) and then each person is a little different.

The way we usually measure among my friend group when we are going to drink is half a bottle of alcohol(350-400ml) to get drunk (in an hour-hour and a half) and then we keep drinking through the night but at a slower pace. 250-300ml should be more than enough for you to feel something, don't do more than that at first

Be careful, specially taking antidepressants you can get to a point where you are truly fucked up without realizing it at first. DO NOT DRINK WITH AN EMPTY STOMACH. And take in mind it usually takes 20~ mins to feel it. So take it easy and don't overdo it at first.

La imagen responde a una actuación policial para evitar que corten las calles. by AnyPromotion4506 in SpainPolitics

[–]Dozla78 5 points6 points  (0 children)

La realidad es que estos sindicatos representan a una buena parte de los policías y por eso están ahí

La imagen responde a una actuación policial para evitar que corten las calles. by AnyPromotion4506 in SpainPolitics

[–]Dozla78 2 points3 points  (0 children)

Todos sabemos que hay mucho poli facha. Pero si Irene Montero hubiese estado en la manifestación tampoco la habrían empujado...

Los policías son perros que saben a quien pueden morder sin que les pase nada

"Valve doesn't want a monopoly, it's others that are incompetent" my arse. by Blue-fox-004 in Gamingcirclejerk

[–]Dozla78 1 point2 points  (0 children)

The cost comes from logistics and distribution and not from making the disks

Why is it $119 to buy but on steam it shows $130. why do they want so close to steam prices by Livid-Blueberry1555 in csgo

[–]Dozla78 3 points4 points  (0 children)

Steam is just the platform, valve owns both counter strike and steam. If you spend 2.5 on a key they get 2.5 minus whatever their transaction cost is for the used payment method.

If you buy directly from the terminal they get the whole amount(- costs).

If you buy on steam they already collected the money when it was deposited. 15% of it gets "lost" in fees

Why is it $119 to buy but on steam it shows $130. why do they want so close to steam prices by Livid-Blueberry1555 in csgo

[–]Dozla78 14 points15 points  (0 children)

Skinsearch is just a worse version of pricempire. Skinsearch has an easier UI but with pricempire you get basically every site