<?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 Suresh Pattu on Medium]]></title>
        <description><![CDATA[Stories by Suresh Pattu on Medium]]></description>
        <link>https://medium.com/@sureshpattu?source=rss-264e44afc2f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U7TwsBA0-EjliiwHoYoRPg.jpeg</url>
            <title>Stories by Suresh Pattu on Medium</title>
            <link>https://medium.com/@sureshpattu?source=rss-264e44afc2f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:27:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sureshpattu/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[Now that’s what I call inspiring..!]]></title>
            <link>https://medium.com/@sureshpattu/now-thats-what-i-call-inspiring-7e1ea75a102?source=rss-264e44afc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e1ea75a102</guid>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[entrepreneur]]></category>
            <dc:creator><![CDATA[Suresh Pattu]]></dc:creator>
            <pubDate>Fri, 24 Jun 2016 03:37:02 GMT</pubDate>
            <atom:updated>2016-06-24T03:37:02.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*G1PkwkpP-u8lTa8x7qNpcg.jpeg" /></figure><p>At age 5 his Father died.<br>At age 16 he left school.<br>At age 17 he had already lost four jobs.<br>At age 18 he got married.<br>Between ages 18 and 22, he was a railroad conductor and failed.<br>He joined the army and washed out there.<br>He applied for law school he was rejected.<br>He became an insurance sales man and failed again.<br>At age 19 he became a father.<br>At age 20 his wife left him and took their baby daughter.<br>He became a cook and dishwasher in a small cafe.<br>He failed in an attempt to kidnap his own daughter, and eventually he convinced his wife to return home.<br>At age 65 he retired.<br>On the 1st day of retirement he received a cheque from the Government for $105.<br>He felt that the Government was saying that he couldn’t provide for himself.<br>He decided to commit suicide, it wasn’t worth living anymore; he had failed so much.<br>He sat under a tree writing his will, but instead, he wrote what he would have accomplished with his life. He realised there was much more that he hadn’t done. There was one thing he could do better than anyone he knew. And that was how to cook.<br>So he borrowed $87 against his cheque and bought and fried up some chicken using his recipe, and went door to door to sell them to his neighbours in Kentucky.<br>Remember at age 65 he was ready to commit suicide.<br>But at age 88 Colonel Sanders, founder of Kentucky Fried Chicken (KFC) Empire was a billionaire.<br>Now that’s what I call inspiring..!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e1ea75a102" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[After work, is what determines your future!]]></title>
            <link>https://medium.com/@sureshpattu/after-work-is-what-determines-your-future-6fd2e9126a9c?source=rss-264e44afc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fd2e9126a9c</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[inspiration]]></category>
            <dc:creator><![CDATA[Suresh Pattu]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 05:10:49 GMT</pubDate>
            <atom:updated>2016-06-02T05:11:15.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*tjrBoYO8uDgV8xnPpLXj2Q.jpeg" /></figure><h3>After work, is what determines your future! Spend one hour per day doing these 5 things and your life will change forever!</h3><p>You finish work at 6 pm, go to bed at 12 midnight.</p><p>Within these six hours, how do you spend them?</p><p>Watching TV?</p><p>In fact, the activities you do between 6 am and 12 midnight,</p><p>the importance of it is beyond your imagination.</p><p>Too many people believe that,</p><p>your career is determined by the 8 hours of hard work and effort you put at work,</p><p>and your future and career progression depend on the boss and the company.</p><p>But the reality is that for most people, this thing, you are on your own…..</p><p>Read on…</p><p>“Cultivation”, it’s forever dependent by yourself.</p><p>If you found yourself not progressing in life,</p><p>you cannot blame and put the responsibility on your company for not grooming you.</p><h3>1. What you do every night is important</h3><p>My major in college was marketing, but I expect to become a designer.</p><p>So I practiced day and night,</p><p>picking up some freelance work to improve my design skills.</p><p>It took me a long time.</p><p>When I became a boss, I no longer need to involve myself in design work,</p><p>So I went back to the Marketing field.</p><p>Every day, when my children are sleeping,</p><p>I began learning to gain more knowledge, this again took me a long time,</p><p>But I begin to realise my returns.</p><p>If I rely on my working hours to gain skills,</p><p>then I will never have become a creative director and a product manager,</p><p>or like today, teaching MBA students on Marketing.</p><p>What I rely on, is myself giving myself “lessons”.</p><p>And the most successful people I knew, walked the same path as I am.</p><p>I have a friend who is a History graduate,</p><p>but he is interested in technical sales,</p><p>In the day, he does telemarketing, at night he learns how to code,</p><p>Finally, he became the vice president of sales in a startup company.</p><p>Now, he’s a CTO.</p><p>I have another friend, he received a degree in political science.</p><p>But he’s very interested in entrepreneurship.</p><p>he learnt a lot of knowledge on how to start up a company,</p><p>eventually, he founded a company and sold it,</p><p>Now he has reaped the rewards.</p><p>For them, what they do between 6 pm till 12 midnight,</p><p>is what determined their future.</p><p>Clearly, we need to balance life and work.</p><p>If you have a wife and children, every night, you have to stay with them.</p><p>Even if you are single, you also need a reasonable allocation of time to go to the gym, to meet with friends, or be alone to meditate and so on.</p><p>Of course, watching movies, playing games is good.</p><p>But there are things you do not need to do.</p><p>For example, watching the new season of a Netflix drama,</p><p>14 hours per week watching television (This is the average amount of time watching television).</p><p>The time spent playing the game Candy Crush.</p><p>Or spending time stalking your high school alumni on Facebook,</p><p>it does not seem to be good.</p><p>So what should you do?</p><h3>2. Read more, anything will do!</h3><p>My college mentor was born in Alabama,</p><p>A poor African family.</p><p>He was admitted to West Point Military Academy, and he became the first person in the family to go college.</p><p>Before going to Havard for his MBA, he’s a trained officer.</p><p>When I met him, he has already developed his career in the city of Colorado Springs.</p><p>I asked him, what’s his biggest success?</p><p>He replied, because he kept the habit of reading,</p><p>and he never stopped.</p><p>He believed that if you want to get what you want in life,</p><p>knowledge is the key.</p><p>He often asked his interviewees what book are they reading now,</p><p>the excellent ones can give an answer immediately.</p><p>Reading can give you a good headstart,</p><p>this is often what your peers cannot obtain.</p><p>Compared to others,</p><p>you are more likely to know other industries strategies and tactics,</p><p>and that may be helpful to your company.</p><p>You can transfer your knowledge within the organization,</p><p>create new possibilities for your company.</p><p>Moreover, your conversation topics will become more interesting.</p><p>Anthony Robbins said:</p><p>“If you spend one hour a day to learn about a topic,</p><p>a year later, in this regard,</p><p>the knowledge you gain will be more than 99.999% of the world’s people.”</p><p>Even if you have 30 minutes every night,</p><p>each week you can easily read a book.</p><p>You may not be an expert, but I promise,</p><p>you’ll know more than what your peers know.</p><h3>3. Do some projects</h3><p>You can apply the knowledge learnt to real work scenario,</p><p>this is only an ideal state.</p><p>If your company did not give you this opportunity,</p><p>create opportunities for yourself.</p><p>You can do some volunteer projects. They can bring you fame.</p><p>Working with a team,</p><p>you’ll understand how things work.</p><p>In the practical application of the industry,</p><p>and how it ultimately affect actual customers.</p><p>You’ll learn how to perform the task and meet deadlines,</p><p>and get feedbacks on what you are doing,</p><p>and benefit from it.</p><p>When you are not strong enough, these experience may not have any value to you.</p><p>But you are still a novice.</p><p>these experiences are far more valuable than the miserable pay you are getting.</p><p>If you can really convince others of your pockets of fruits of labour,</p><p>Then go try it. But do not let these private jobs affect your work.</p><h3>4. Actively build your connections</h3><p>In your career path,</p><p>a strong network of connections will make everything accelerate.</p><p>If you have not set up your own personal connections,</p><p>you’ll need to divide a portion of your time to do this.</p><p>A strong network of relationships, can enable you:</p><ul><li>contact smart friends, and learn their opinions</li><li>get information and knowledge that are difficult to obtain</li><li>help the company look for more potential partners</li><li>or income generating opportunities</li></ul><p>Go get to know your work colleague or boss…..</p><p>If you are an entrepreneur,</p><p>your network connections will be your early customers,</p><p>your staffs are a source of capital</p><p>rather than go home, or going to a bar,</p><p>you should find some inner circles.</p><p>There are many small groups which are highly relevant to your career.</p><p>You should try to integrate into these circles.</p><p>Every week, you can drink coffee together with new friends,</p><p>go drinking or have breakfast.</p><p>You can also look into everyone’s career developments on LinkedIn.</p><p>And establish a network with mentors in those professional industries.</p><p>They may be your next job employer, who knows?</p><p>Your connections will be your most powerful asset in the workplace.</p><p>Since you have time to watch “The Voice of China”,</p><p>you have time to build a social network.</p><h3>5. The CHANGE of your LIFE starts TONIGHT</h3><p>6 pm to 12 am, you go home, though physically and mentally tired,</p><p>you are free to do anything and do not have to take orders from others.</p><p>During this time,</p><p>you can switch off like switching off your computer at your workplace, switch off your brain.</p><p>But you can also do something,</p><p>make you smarter, stronger, have a wider network of people.</p><p>From the start tonight, take an hour a day to do these things,</p><p>I guarantee that after a year,</p><p>your career, and life will change.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fd2e9126a9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript Coding Tips]]></title>
            <link>https://medium.com/@sureshpattu/javascript-coding-tips-7228a7f0526c?source=rss-264e44afc2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7228a7f0526c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Suresh Pattu]]></dc:creator>
            <pubDate>Thu, 10 Mar 2016 05:15:25 GMT</pubDate>
            <atom:updated>2016-06-21T15:00:33.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWhOGf_PgX0nRTLZLmFpGg.png" /><figcaption>I Love Javascript</figcaption></figure><h3>Consistent Temporary Names</h3><p>Normally, the variables should be descriptive and contain one or more words. But, this doesn’t necessarily apply to temporary variables. They can be as short as a single character.</p><p>It is a good practice to use consistent names for your temporary variables that have the same kind of role. Here are a few examples that I tend use in my code</p><pre>    // $i for loop counters<br>    for ($i = 0; $i &lt; 100; $i++) {<br>      // $j for the nested loop counters<br>      for ($j = 0; $j &lt; 100; $j++) {}<br>    }<br><br>    // $ret for return variables<br>    function foo() {<br>      $ret[&#39;bar&#39;] = get_bar();<br>      $ret[&#39;stuff&#39;] = get_stuff();<br>      return $ret;<br>    }<br><br>    // $k and $v in foreach<br>    foreach($some_array as $k =&gt; $v) {}<br><br>    // $q, $r and $d for mysql<br>    $q = &quot;SELECT * FROM table&quot;;<br>    $r = mysql_query($q);<br>    while ($d = mysql_fetch_assocr($r)) {}<br><br>    // $fp for file pointers<br>    $fp = fopen(&#39;file.txt&#39;, &#39;w&#39;);</pre><p>The == comparison operator always converts (to matching types) before comparison. The === operator forces comparison of values and type:</p><pre>    0 == &quot;&quot;; // true<br>    1 == &quot;1&quot;; // true<br>    1 == true; // true<br><br>    0 === &quot;&quot;; // false<br>    1 === &quot;1&quot;; // false<br>    1 === true; // false</pre><h3>Prototype Chains</h3><p>JavaScript gives us a built-in mechanism to share data across objects, called the prototype chain. When we access a property on an object, it can fulfill that request by delegating to some other object. We can use that and change our factory function so that each object it creates contains only the data unique to that particular object, and delegate all other property requests to a single, shared object.</p><pre>var thingPrototype = {<br>  f: function() {},<br>  g: function() {}<br>};<br><br>function thing() {<br>  var o = Object.create(thingPrototype);<br><br>  o.x = 42;<br>  o.y = 3.14;<br><br>  return o;<br>}<br><br>var o = thing();</pre><p>In fact, this is such a common pattern that the language has built-in support for it. We don’t need to create our own shared object (the prototype object). Instead, a prototype object is created for us automatically alongside every function, and we can put our shared data there.</p><pre>thing.prototype.f = function() {};<br>thing.prototype.g = function() {};<br><br>function thing() {<br>  var o = Object.create(thing.prototype);<br><br>  o.x = 42;<br>  o.y = 3.14;<br><br>  return o;<br>}<br><br>var o = thing();</pre><p>But there’s a drawback. This is going to result in some repetition. The first and last lines of the “thing” function are going to be repeated almost verbatim in every such delegating-to-prototype-factory-function.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7228a7f0526c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>