(via https://open.spotify.com/track/6I2pcDTlZ5o3i17Tgxtevs?si=WPQo4_atQzC0P0y85bUsrA)
animo plebes se preocupan demasiado

★
"I'm Dorothy Gale from Kansas"

No title available
Cosmic Funnies
Jules of Nature

Product Placement

oozey mess
he wasn't even looking at me and he found me
Three Goblin Art
h
$LAYYYTER
ojovivo

Kaledo Art

Andulka
Aqua Utopia|海の底で記憶を紡ぐ
Peter Solarz
taylor price
tumblr dot com
will byers stan first human second
RMH
seen from United States

seen from Sweden

seen from Netherlands

seen from Malaysia

seen from Canada
seen from Israel

seen from United States
seen from Australia
seen from Vietnam
seen from United States

seen from United States
seen from Mexico
seen from Sweden
seen from United States

seen from United States
seen from United States
seen from Canada
seen from United States

seen from Türkiye

seen from Pakistan
@jmsalcido
(via https://open.spotify.com/track/6I2pcDTlZ5o3i17Tgxtevs?si=WPQo4_atQzC0P0y85bUsrA)
animo plebes se preocupan demasiado
(via https://open.spotify.com/track/6YYnCgEcAwmqaxGNPqjHNo?si=q4lPFDmBTK6RtvhYSkfK2Q)
#NowPlaying Andalucia by Johannes Linstead
I hate those Helper classes...
I’ve been working on a feature since January... I’ve been working on the entire UI and middleware of this feature.
We use SpringMVC for the HTTP endpoints on our web application and we dispatch all the requests via a Controller.
That’s easy right?
But... there is this anti-pattern used where we try to make our controllers lighter because Controllers should not handle business logic right?!
It is called: The Helper class.
That’s right, we have these Controllers that handle the request but instead of using the underlying business services, we add this ControllerHelper class that will handle all the logic and will only call services for almost all of these tasks:
Save to the database
Get something from the database
That's right, we only do that and Ohhh I hate that so much.
Let's see an example:
https://gist.github.com/jmsalcido/f4bea37155e7ba94fb96
This is what the old code looked (I modified some stuff of course!), why would someone actually work on that code? and even worse... the unit tests for THAT controller were testing that you setted the correct info in the correct object...
Oh but here it came, someone had the idea to create this:
https://gist.github.com/jmsalcido/baa1dd2b90e59a7e094c
The Oh God Why Helper class, now our Controllers are clean of "logic" right?
The Fuck?
Yeah I know, so, if you read the code you noticed that there are some "userService" there... oh right, those services are defined right now like this:
https://gist.github.com/jmsalcido/384bcd03aeba6f8ef675
The Fuck?!
Yup, those services logic is only to call another service or just the database.
My Solution...
Well, I think that the "Helper" classes should not exist.. it should not handle all that logic... so I rewrote the Controller and deleted some (because there are like... A LOT OF THOSE Controller/Helper classes) of the Helper class methods and got something like this:
https://gist.github.com/jmsalcido/4617784a79e585b32ad7
So, all the logic is now at the bussiness layer and the controller only handles the bad request (if there is an error on the business layer it is handled there and return something that the controller can interpret)
Basic stuff but still mostly all of the team doesnt understand this, I just wanted to rant.
The singleton pattern is used when you want to make sure there is exactly one instance of something in your program. If you were making a Lord of the Rings game, you would want to make sure that the One Ring was only instantiated once! We have to give Frodo a chance!.
The most important thing to remember about sorting is that it takes O(n log n) time. (That is, the fastest sorting algorithm for arbitrary data takes O(n log n) time.)
And, to appease JDBC’s anger, you must catch SQLException, a checked excep- tion, even though there’s not a lot you can do if it’s thrown.
Spring 4 in Action.
fotos MUY cool
me gusta tomar fotitos cool.
¿Cómo le haces para ser tan cutie?
soy un papalord, asi le hago ;)
Del OST del Señor de los Anillos...
Hace unos 3 días estuve escuchando sin parar el soundtrack de LotR de nuevo y pues a mi me gusta mucho el OST de Lord of the Rings de Peter Jackson, las películas en si están bien y son muy buenas también.
Estas son las mejores partes:
Estuve pensando seriamente en ver las películas este fin de semana... pero nel.
Bye.
The struggle
awww yeh
Where are we going I don’t know.
Una de las preguntas que me hago siempre de los siempres al final del dia es: ¿a donde diablos voy?
El final del dia es ese momento en el que te acuestas, en la noche, llegas cansado de todo lo que ocurrió en un solo dia y tienes un momento a solas, con tu almohada y tus pensamientos...
No sé si les ha pasado pero, cada dia llego a una conclusion diferente, a veces me quiero quedar un tiempo aqui, a veces me quiero ir y no volver nunca mas y luego me pregunto si a alguien le importará si un dia no vuelvo a verlos.
Escuchando el playlist de #MusicaBuenaVibra se puso una canción que no esperaba escuchar el dia de hoy y la neta me trae pues... muy buena vibra.
Estas 2 semanas han sido muy... fuera de lo normal, en mi vida personal y laboral y tenia que escribirlo en un lugar que no fuera mi diario.
Y pues, la respuesta a ¿a donde diablos voy? siempre es la misma y creo que es la única constante en mi vida:
No sé pero me la tengo que rifar en donde esté.
Fin de Semana
No hay nada como un buen fin de semana de descanso, dormir y comer coyotas y carne asada en Sonora.
Stairway To Heaven SI habla de Tolkien.
Escuchar y leer letras de Stairway to Heaven para una mejor experiencia.
http://www.youtube.com/watch?feature=endscreen&v=lKg4g9zMeHI&NR=1
Stairway to Heaven de Led Zeppelin en realidad es sobre Galadriel cantando sobre Arwen la mujer que quiere comprar su escalera al cielo (mortalidad de los hombres) y hasta llegar a su destino sabrá si las tiendas están cerradas (los elfos no mueren) y con solo una palabra obtendrá lo que busca (la muerte).
Después es Galadriel cantando sus problemas como elfa que tiene que regresar a Valinor y su espiritu llora por irse, sobre que en sus sueños ve a los Ents en su ultima marcha (gritando y cantando contra Isengard) y viendo el fuego consumir a Fangorn.
Tambien canta sobre Aragorn (el que unira a los hombres del oeste que se mantengan de pie al finalizar la guerra) y el "bosque sucumbira con risa", significa la victoria sobre Isengard y Mordor ó que el cuerpo de los elfos se esfuma y solo quedaran sus espíritus.
Luego, Galadriel vuelve a cantar sobre Arwen y sus sentimientos sobre ser mortal o la inmortalidad y que aun puede cambiar de plan y vivir el otro camino. En su cabeza hay indecisión y su "escalera" solo depende de lo que susurre el viento (si Aragorn es victorioso o no).
Al final desata su furia por el mismísimo poder del anillo "When all are one and one is all" ó sobre la misma muerte y dice exactamente lo que es: una mujer que destella el brillo de los arboles que daban luz antes que el Sol, después de las lamparas. O no estoy seguro si habla de cuando llego el anillo a Lorien...
Y por ultimo, la chica... esta comprando su escalera al cielo. (Amor?)
(Esto es un post muy viejo)
https://www.facebook.com/notes/jose-miguel-salcido-aguilar/de-stairway-to-heaven-de-led-zeppelin-las-escrituras-de-tolkien-y-un-maldito-sen/10152079360381091
rolón