<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Roberto Isaac Lopez on Medium]]></title>
        <description><![CDATA[Stories by Roberto Isaac Lopez on Medium]]></description>
        <link>https://medium.com/@rilopezp?source=rss-2ca9c6d7089b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rqRc7kZdH5jcxgQw.jpg</url>
            <title>Stories by Roberto Isaac Lopez on Medium</title>
            <link>https://medium.com/@rilopezp?source=rss-2ca9c6d7089b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:27:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rilopezp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fearless Change: Patterns for Introducing New Ideas]]></title>
            <link>https://medium.com/@rilopezp/fearless-change-patterns-for-introducing-new-ideas-8b849c8f21fa?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b849c8f21fa</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[change-management]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:55:52 GMT</pubDate>
            <atom:updated>2019-02-11T17:55:52.443Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By</strong> <a href="https://rilopez.com/authors/mary-lynn-manns">Mary Lynn Manns</a> , <a href="https://rilopez.com/authors/linda-rising">Linda Rising</a> <strong>Date Read:</strong>January 24, 2006</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0WlXPI2aqdgsmM83" /><figcaption>Photo by <a href="https://unsplash.com/@bendavisual?utm_source=medium&amp;utm_medium=referral">Benjamin Davies</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This book resonated a lot with me. Suddenly I realized that there is a way to introduce changes in any human organization. I have been working on government systems for 2 years and started to see a now way out. I am looking forward to put in practice the patterns.</p><p>Here some patterns that I found interesting:</p><ul><li><strong>Just Do It:</strong> Don’t wait for the perfect moment when you have the resources and knowledge you think you need; instead, take the first baby step and start learning.</li><li><strong>Do Food:</strong> To influence attendees, bring special food to a meeting.</li><li><strong>Know Yourself:</strong> Before you begin, and throughout the long journey required to lead a change initiative, consider whether you still have a real abiding passion and the talents and abilities to make it happen.</li><li><strong>Emotional Connection:</strong> Connection with the feelings of your audience is usually more effective in persuading them than just presenting the facts</li><li><strong>Low Hanging Fruit:</strong> To show progress in the change initiative, complete a quick and easy, low-risk task with wide impact and then publicize the results.</li><li><strong>Myth buster:</strong> Identify misconceptions surronding the change initiative and address them in a timely and forthright manner.</li><li><strong>Pick your Battles:</strong> Before you expend your energy in conflict, ask yourself whether you belive the issue is really important and if you have the resources to carry your fight through to the end.</li><li><strong>Champion Skeptic:</strong> Ask for help from opinion leaders who are skeptical of your new idea, and use their comments to improve your effort, even if you don’t change their minds.</li><li><strong>Bridge Builder:</strong> Ask those who have accepted the new idea to talk with those who have not.</li><li><strong>Elevator pitch</strong> always have a couple of sentences on hand to introduce to others your new idea *Brown Bag cofee</li><li><strong>Shoulder to Cry On:</strong> To avoid becoming too discouraged when the going gets tough, find opportunities for everyone to have supportive listeners.</li></ul><p><em>Originally published at </em><a href="https://rilopez.com/books/fearless-change/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b849c8f21fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Got You Here Won’t Get You There — Isaac Lopez]]></title>
            <link>https://medium.com/@rilopezp/what-got-you-here-wont-get-you-there-isaac-lopez-b56d3b1c1d34?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b56d3b1c1d34</guid>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:52:59 GMT</pubDate>
            <atom:updated>2019-02-11T17:52:59.247Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Got You Here Won’t Get You There — Isaac Lopez</h3><p><strong>Date Read:</strong>May 8, 2009</p><blockquote><em>Too often, succesfull people can’t tell the difference between wanting to win and wanting to win too much. The first part can be a good motivator but the secon is a problem.</em></blockquote><p>It was an interesting read, it make me realized the effect we have on people could bad if we focused on ourselves. It is important Listen and don’t try to add something to what other people say, just appreciate, say thanks and help if they ask, you are not a superman as you think you are, it is important to let them growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/0*kQHUsj9v3po8TmOe" /></figure><p><em>Originally published at </em><a href="https://rilopez.com/books/what-got-you-here/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b56d3b1c1d34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feeling good. The new mood therapy]]></title>
            <link>https://medium.com/@rilopezp/feeling-good-the-new-mood-therapy-48d8fed5926d?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d8fed5926d</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:51:55 GMT</pubDate>
            <atom:updated>2019-02-11T17:51:55.849Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By</strong> <a href="https://rilopez.com/authors/david-d.-burns">David D. Burns</a> <strong>Date Read:</strong>May 3, 2017</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f6CKIEa_3ONP7CJ5" /><figcaption>Photo by <a href="https://unsplash.com/@soroushkarimi?utm_source=medium&amp;utm_medium=referral">Soroush Karimi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This book help me to understand and work out some of my mental patterns by reframing cognitive distortions. In some sense your mind’s goal on creating this distortions is to protect you from emotional danger. But as with anything in life it can go sideways, if it doesn’t get check and balances</p><ol><li><strong>All-or-Nothing Thinking:</strong> Your brain categorizes everything in Black or White, Good or Bad. It doesn’t realized that everything has more gradients and nothing is absolute</li><li><strong>Over generalization</strong>: you see a single negative event as a never ending pattern</li><li><strong>Mental Filter</strong>: you pick a single negative detail , so it blur your vision of reality</li><li><strong>Disqualifying the positive:</strong> you reject positive experiences by insisting they “don’t count” for some reason or other, so you can maintain a negative belive that is contradicted by your everyday experiences</li><li><strong>Jumping to conclusions:</strong> you make a negative interpretations even though there are no definitive evidence to support your conclusion. some instances of this distortion is “Mind Reading” and the “Fortune Teller Error”</li><li><strong>Magnification(Catastrophizing) or Minimization</strong>: you exaggerate the importance of things or shrink things until they appear tiny”</li><li><strong>Emotional reasoning</strong> You assume that your negative emotions necessarily reflect the way things really are.</li><li><strong>Should Statements:</strong> Emotional guild by trying to motivate your self with shoulds &amp; shouldn’ts, or anger and frustration when direct those statments to others</li><li><strong>Labeling and mislabeling:</strong> instead of describing an error, you attach a negative label to the person: “I am a loser”, “He is stupid”</li><li><strong>Personalization:</strong> you see your self as the cause of some negative event which in fact you were not primarily responsible for.</li></ol><p>This book is one of those book that really ask you to put some effort and really study and practice it contents</p><p><em>Originally published at </em><a href="https://rilopez.com/books/feeling-good/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48d8fed5926d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Peak Secrets From New Science of Expertise]]></title>
            <link>https://medium.com/@rilopezp/peak-secrets-from-new-science-of-expertise-ee45dffefa6b?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee45dffefa6b</guid>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:50:06 GMT</pubDate>
            <atom:updated>2019-02-11T17:50:06.512Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By</strong> <a href="https://rilopez.com/authors/anders-ericsson">Anders Ericsson</a> , <a href="https://rilopez.com/authors/robert-pool">Robert Pool</a> <strong>Date Read:</strong>February 4, 2019 <strong>Rating</strong> 10/10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2-p0R6YdB5catVQ8" /><figcaption>Photo by <a href="https://unsplash.com/@moraisr?utm_source=medium&amp;utm_medium=referral">Rita Morais</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Some random hightlights:</strong></p><p>Anything can be learned with a good designed deliverate practice</p><p>the 10,000 hours myth (popularized by Malcom Gladwell) has been doing more harm than good, because it is not the time you put into something but how &amp; what you practice</p><p>deliberate practice is how anything can be learn. the components of a deliberate practice are:</p><ul><li>A well defined practice plan, with small steps or goals</li><li>Proper Feedback (in a timely manner)</li><li>Monitor your progress</li><li>Mantain motivation</li><li>Full Attention</li><li>Mental Models should be considered</li></ul><p><em>Originally published at </em><a href="https://rilopez.com/books/peak-secrets-from-new-science-of-expertise/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee45dffefa6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Marshall Goldsmith | Talk @ google]]></title>
            <link>https://medium.com/@rilopezp/marshall-goldsmith-talk-google-72b7ec581ed9?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/72b7ec581ed9</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:39:11 GMT</pubDate>
            <atom:updated>2019-02-11T17:39:11.806Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fsRdvX6oqkycG29suh4ZsQ.jpeg" /></figure><p>I just discovered Marshall Goldsmith and he is awesome, looking forward to read his book <a href="https://rilopez.com/books/what-got-you-here/">What got you here, won’t get you there</a>. Here are my takeaways:</p><ul><li><em>We spend a lot of time helping leaders learn what to do, we don’t spend enough time helping leaders learn what to stop</em> -Peter Drucker</li><li>WINNING TO MUCH, we are so competitive that we argue who is more miserable</li><li>“help more, judge less”</li><li>Use little amounts of money to produce change in behavior</li><li>We only can change what we want to change. If you want to change other people that don’t want to change, let it go.</li><li>Only do what works for you</li><li>You don’t have to know the past of someone to help him</li><li>Developing yourself as a leader and partner: ask, listen think, thank, respond, involve, change, follow-up</li><li>What i can’t do to be better? (parent , partner, team member, son)</li><li>I can’t be better in everything I CAN be better in one thing</li><li>Follow-Up its important.</li><li>Be happy NOW, you are gone to day anyway.</li><li>If you have a dream go for it</li><li>Have fun, life its short.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3WBeGAAYWg8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3WBeGAAYWg8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3WBeGAAYWg8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c5afb958455d241190066a8504c4a2f/href">https://medium.com/media/6c5afb958455d241190066a8504c4a2f/href</a></iframe><p><em>Originally published at </em><a href="https://rilopez.com/posts/marshall-goldsmith-leading-at-google/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72b7ec581ed9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linda Rising Interview]]></title>
            <link>https://medium.com/@rilopezp/linda-rising-interview-aa12d0720a19?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa12d0720a19</guid>
            <category><![CDATA[growth-mindset]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:34:59 GMT</pubDate>
            <atom:updated>2019-02-11T17:34:59.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uyf00MGZbTm7wmgeB5lM5g.jpeg" /></figure><p>I read the book <a href="https://rilopez.com/books/fearless-change/">fearless change</a> almost 8 years ago and since then I have been a big follower of Linda Rising teachings. Because one of my new-year resolutions was to meet at least one of my heros, I asked <a href="https://www.linkedin.com/in/carlosponcerobles">Carlos</a> (from dojo live) to help me talk to Linda Rising, I was not hoping he could get her as a guess in dojo live,.. ohh I was very very wrong.</p><p>So today was the day I was looking forward all this first months of the year, I talked to the great Linda Rising.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZkr1UuIp9ws%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZkr1UuIp9ws&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZkr1UuIp9ws%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bd787de4de8ef6ca11c98bc55c2519f/href">https://medium.com/media/0bd787de4de8ef6ca11c98bc55c2519f/href</a></iframe><ul><li>[02:40] — on being lucky for being active at older ages and giving things a way like agile mindset presentations</li><li>[04:30] — on discovering carol dweck work (Growth Mindset )</li><li>[08:00] — fixed mindset</li><li>[09:00] — agile mindset is about learning, improving, growing</li><li>[10:12] — on why there not being enough women in stem. Carol Dweck research</li><li>[14:50] — countries also have a mindset, What is mexico mindset?</li><li>[18:12] — Linda made an observation about labeling me, and why is it not good to label people.</li><li>[21:30] — On perfection.</li><li>[29:20] — Babies born with agile mindset, but we forgot when growth.</li><li>[31:05] — Linda’s biggest failure: Forgetting that we are always a work in progress</li><li>[37:50] — how the future is going to be like: I have no clue</li><li>[40:26] — recommends the book <a href="https://www.amazon.com/Superforecasting-Science-Prediction-Philip-Tetlock/dp/0804136718">Superforecasting: The Art and Science of Prediction by Philip E. Tetlock</a></li><li>[42:50] — What message would she put in a billboard</li></ul><p><em>Originally published at </em><a href="https://rilopez.com/posts/linda-rising-interview/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa12d0720a19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deliberate Practices for programmers]]></title>
            <link>https://medium.com/@rilopezp/deliberate-practices-for-programmers-815f25135690?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/815f25135690</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 17:24:41 GMT</pubDate>
            <atom:updated>2019-02-11T17:24:41.389Z</atom:updated>
            <content:encoded><![CDATA[<p>Per <a href="https://twitter.com/DayraChiu">Dayra Chiu</a> recommendation , last year I read the book <a href="https://rilopez.com/books/peak-secrets-from-new-science-of-expertise/">Peak: Secrets from the New Science of Expertise</a> by by K. Anders Ericsson &amp; Robert Pool. I didn’t imagine how much gold I would find in that book. the topic that surprised the most was: Deliberate practices</p><h3>First, what is deliberate practice?</h3><p>Is a special type of practice that is purposeful and systematic. It is highly demanding mentally so it requires high levels of focus and concentration. According to psychologist <a href="https://en.wikipedia.org/wiki/K._Anders_Ericsson">Anders Ericsson</a> deliberate practice is characterized by the following traits</p><ul><li>Deliberate practice develops skills that other people have already figured out how to do and for which effective training techniques have been established.</li><li>Deliberate practice takes place outside one’s comfort zone.</li><li>Deliberate practice involves well-defined, specific goals and often involves improving some aspect of the target performance; it is not aimed at some vague overall improvement.</li><li>Deliberate practice is deliberate, that is, it requires a person’s full attention and conscious actions.</li><li>Deliberate practice both produces and depends on effective mental representations. They show the right way to do something and allow one to notice when doing something wrong and to correct it.</li><li>Deliberate practice nearly always involves building or modifying previously acquired skills by focusing on particular aspects of those skills and working to improve them specifically; over time this step-by-step improvement will eventually lead to expert performance.</li></ul><h3>What are the skills a programmer could improve with deliberated practices?</h3><p>This question is kind of silly, because any skill can be improved with a well designed deliberate practice Where are some deliberate practice examples for some skills that any programmer need</p><ul><li><strong>Speaking:</strong> Try stopping people on the street and keeping them entertained for as long as possible, using body gestures, excited speaking, etc. Time yourself <strong>Typing:</strong> Slowly ratcheting up the WPM you have to write at, and then figuring out what’s holding you back as you reach plateaus</li><li><strong>Writing:</strong> Break up someone else’s writing and try to reproduce it on your own, such as by trying to recreate their structure, word choice, or other elements.</li><li><strong>learning a new programming language:</strong> Use <a href="https://sivers.org/srs">Derek Sivers’s method</a> of learning more programming functions by quizzing yourself on them using a spaced repetition system.</li><li><strong>solving challenges:</strong> Challenge yourself to write solutions in multiple ways, forbidding yourself from using the same functions you used in the previous methods.</li><li><strong>reading code:</strong> right after reading the code of a project, write down all the important parts you remember and how they relate to each other</li></ul><p><em>Originally published at </em><a href="https://rilopez.com/posts/deliberate-practices-for-programmers/"><em>rilopez.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=815f25135690" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jaimito-el-cartero oriented programming ( & devops)]]></title>
            <link>https://medium.com/nearsoft-jobs/jaimito-el-cartero-oriented-programming-devops-7e5eeb7beb69?source=rss-2ca9c6d7089b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e5eeb7beb69</guid>
            <dc:creator><![CDATA[Roberto Isaac Lopez]]></dc:creator>
            <pubDate>Tue, 27 Jan 2015 01:43:25 GMT</pubDate>
            <atom:updated>2015-01-27T16:53:42.061Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Yq1vplDCE2BwDp1OatQMww.jpeg" /></figure><p>“<strong><em>Lo que pasa es que…quiero evitar la fatiga”</em></strong>.</p><p>Siempre he pensado que la mejor forma de aprender algo es que alguien te pague por ello. Afortunadamente el año pasado me llegó una oportunidad como freelance en un proyecto donde podría afinar skills ya existentes y agregar uno que otro truco nuevo a mi repertorio. Los últimos dos años he pasado mucho tiempo usando cosas no tan “mainstream” (Ember.js, ColdFusion, Node.js , YUI Library), así que pensé que sería bueno usar algo “popular” y me sorprendió la ironía de encontrar una herramienta que tenía casi todo lo popular bajo el nombre de JHipster</p><h3>¿Como decidí que aprender?</h3><p>Frontend : AngularJS<br>AngularJS fue lo primero que se me vino a la mente, en cuanto al frontend, para cumplir con el criterio de tecnología “popular”.</p><p>Backend: Java usando <a href="http://projects.spring.io/spring-boot/">Spring Boot</a><br>En cuanto al backend, el criterio que uso casi siempre para este tipo de proyectos es el costo o facilidad de encontrar buenos hostings (y gratis si es posible). Platicando con Javier Rosas de <a href="https://www.wavestack.com/">Wavestack</a>, me comentó que ha estado usando <a href="https://www.openshift.com/">OpenShift</a> para alguno de sus proyectos con Node.js. Sin embargo después de tener muchas pesadillas npm y dependencias nativas (LibSass), me alegró saber que Openshift soporta Java (¡Y Maven FTW!) sin tantas restricciones como algunos otros hostings gratuitos y pagados.</p><h3>Jaimito-el-cartero oriented programming setup</h3><p>Dado que AngularJS y Spring Boot requieren muy poca configuración, al principio tenía ganas de hacer toda las configuraciones desde cero, pero luego me volvió el espíritu de Jaimito el cartero y encontré este impresionante generador Yeomans llamado JHipster que te acomoda todo el proyecto e interconecta las diferentes tecnologías de builds requeridas para los mundos frontend (Grunt o gulp.js) y backend (Maven o Gradle). Así que cuando el proyecto estuviera listo yo tendría solo que invocar</p><pre>mvn -Pprod package</pre><p>para que hiciera todo esto: compilar Java, ejecutar pruebas Java, compilar Sass , minificar JavaScript y CSS, cdnizar recursos(imagenes, CSS, HTML) y ejecutar pruebas JavaScript (wowwww).</p><h3>Cómo iniciar un proyecto spring boot con Angular usando JHipster</h3><p>Dado que JHipster es un generador Yeomans y éste a su vez es un script Node.js , es necesario que previamente se tenga instalado Node.js , Yeomans y Bower (ver <a href="http://jhipster.github.io/installation.html">http://jhipster.github.io/installation.html</a> ).</p><pre>npm install -g generator-jhipster<br>mkdir mi-proyecto<br>cd mi-proyecto<br>yo jhipster</pre><h3>Cómo hostear la aplicacion en openshift</h3><p>Aunque JHipster provee un generador Yeomans para OpenShift, me topé con algunos problemas y tuve que hacerle algunas modificaciones al código generado. Después de crear mi cuenta e instalar las herramientas cliente de OpenShift (ver <a href="https://developers.openshift.com/en/getting-started-overview.html">openshift getting-started-overview </a>), esto fue lo que hice:</p><pre>cd mi-proyecto<br>yo jhipster:openshift<br>grunt deployOpenshift<br>git push</pre><p>Aunque los pasos anteriores funcionaron sin problemas, el log de mi aplicación (<a href="https://help.openshift.com/hc/en-us/articles/202328880-How-do-I-troubleshoot-application-issues-using-the-logs-">¿Cómo encontré los logs de OpenShift?</a>) en el servidor mostraba lo siguiente:</p><pre><br> [ERROR] com.zaxxer.hikari.util.PropertyBeanSetter — Exception setting property url on target class class org.postgresql.ds.PGSimpleDataSource<br> java.lang.reflect.InvocationTargetException: null<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_71]<br> …<br> Caused by: java.lang.NullPointerException: null<br> at org.postgresql.ds.common.BaseDataSource.setUrl(BaseDataSource.java:586) ~[postgresql-9.3–1102-jdbc41.jar!/:na]<br> … 146 common frames omitted</pre><p>Después de investigar me di cuenta que de alguna manera Spring Boot no podía usar la url especificada por el hook script start generado por JHipster:OpenShift</p><pre>#! /bin/bash<br>set -x<br>jar=$(ls ${OPENSHIFT_REPO_DIR}target/*.war | head -n1)<br>nohup java -server \<br> -jar ${jar} \<br> —spring.profiles.active=prod \<br> —server.address=${OPENSHIFT_DIY_IP} \<br> —server.port=${OPENSHIFT_DIY_PORT} \<br>—spring.datasource.url=jdbc:postgresql://${OPENSHIFT_POSTGRESQL_DB_HOST}:${OPENSHIFT_POSTGRESQL_DB_PORT} \<br> —spring.datasource.username=${OPENSHIFT_POSTGRESQL_DB_USERNAME} \<br> —spring.datasource.password=${OPENSHIFT_POSTGRESQL_DB_PASSWORD} &gt; ${OPENSHIFT_LOG_DIR}mi-proyecto.log 2&gt;&amp;1 &amp;</pre><p>En lugar de especificar las credenciales de base de datos en el start hook realicé lo siguiente:<br>1 ) Eliminar credenciales de base de datos en</p><p>mi-projecto/deploy/openshift/.openshift/action_hooks/start</p><pre>#! /bin/bash<br>set -x<br>jar=$(ls ${OPENSHIFT_REPO_DIR}target/*.war | head -n1)<br>nohup java -server \<br> -jar ${jar} \<br> —spring.profiles.active=prod \<br> —server.address=${OPENSHIFT_DIY_IP} \<br> —server.port=${OPENSHIFT_DIY_PORT} &gt; ${OPENSHIFT_LOG_DIR}mi-proyecto.log 2&gt;&amp;1 &amp;</pre><p>Usar las variables de ambiente OpenShift para referenciar las credenciales en mi-proyecto/src/main/resources/config/application-prod.yml</p><pre><br>server:<br> port: 8080<br>spring:<br> profiles: prod</pre><pre>datasource:<br> dataSourceClassName: org.postgresql.ds.PGSimpleDataSource<br> url:<br> databaseName: mi-proyecto<br> serverName: ${OPENSHIFT_POSTGRESQL_DB_HOST}<br> username: ${OPENSHIFT_POSTGRESQL_DB_USERNAME}<br> password: ${OPENSHIFT_POSTGRESQL_DB_PASSWORD}<br>..<br>..</pre><p>Por último y para hacerme la vida más sencilla agregue estos alias a mi línea de comandos (<a href="https://github.com/robbyrussell/oh-my-zsh">https://github.com/robbyrussell/oh-my-zsh</a>)</p><pre><strong>alias</strong> mi-proyecto.deploy=’cd $mi-proyecto &amp;&amp; mvn -Pprod package &amp;&amp; grunt deployOpenshift &amp;&amp; cd deploy/openshift &amp;&amp; git push’<br><strong>alias</strong> mi-proyecto.logs.prod=’cd $mi-proyecto &amp;&amp; rhc tail mi-proyecto -f app-root/logs/mi-proyecto.log’</pre><h3>Conclusión</h3><p>Aunque mi principal motivación fue aprender una herramienta de programación extra, creo que aprendí mucho más sobre deployments en la nube, pareciéndome agradable el approach no restrictivo que tomó Red Hat con OpenShift y esperando usar en un futuro cercano estos nuevos skills devops con mi cliente principal, <a href="http://www.switchfly.com/">Switchfly</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e5eeb7beb69" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nearsoft-jobs/jaimito-el-cartero-oriented-programming-devops-7e5eeb7beb69">Jaimito-el-cartero oriented programming ( &amp; devops)</a> was originally published in <a href="https://medium.com/nearsoft-jobs">Nearsoft Jobs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>