<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Najmus Saqib</title>
    <description>The latest articles on DEV Community by Najmus Saqib (@nsaqib).</description>
    <link>https://dev.to/nsaqib</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F25803%2Fa97e1082-52a2-42e9-8f5f-de6407c48ff6.jpeg</url>
      <title>DEV Community: Najmus Saqib</title>
      <link>https://dev.to/nsaqib</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nsaqib"/>
    <language>en</language>
    <item>
      <title>The pursuit of the recipe of success </title>
      <dc:creator>Najmus Saqib</dc:creator>
      <pubDate>Wed, 16 Sep 2020 20:14:50 +0000</pubDate>
      <link>https://dev.to/nsaqib/the-pursuit-of-the-recipe-of-success-2ejb</link>
      <guid>https://dev.to/nsaqib/the-pursuit-of-the-recipe-of-success-2ejb</guid>
      <description>&lt;p&gt;Human beings are obsessed with success. We want to be super successful in all our endeavors. No one wants to end up as mediocre in any aspect of his or her life. What's the plan-A most of us have to achieve success? Imitate the people who have achieved our desired level of success. Find and adopt the secret ingredients of their success.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;As per a &lt;a href="https://www.mckinsey.com/business-functions/organization/our-insights/getting-organizational-redesign-right"&gt;research by McKinsey&lt;/a&gt; about the organizational redesign, many companies, these days, are in a nearly permanent state of organizational flux.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This applies to individuals equally. Everybody is in an endless pursuit of recipe of success and applying it to his own life.&lt;/p&gt;

&lt;p&gt;The bulk of the content on the topic of self-improvement, productivity, leadership and management revolves around the methods giants adopted to achieve success. Their personal habits, daily routines, communication mechanisms, organizational structures and planning methodologies. Humans in general try to copy them and start anticipating the same level of success. &lt;/p&gt;

&lt;p&gt;While this strategy is correct in general but it has got it's fair share of pitfalls. The bitter truth is that we can never finalize the factors that made a human being successful. Even the successful person himself is not always aware of the reasons of his success. Here's a quote from &lt;a href="https://www.goodreads.com/book/show/84525.What_Got_You_Here_Won_t_Get_You_There"&gt;What Got You Here Won't Get You There by Marshall Goldsmith&lt;/a&gt; on this&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;One of the greatest mistakes of successful people is the assumption, “I am successful. I behave this way. Therefore, I must be successful because I behave this way!” The challenge is to make them see that sometimes they are successful in spite of this behavior.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Let's explore few reasons why people fail to achieve the levels of success they are striving for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shortcut selection
&lt;/h2&gt;

&lt;p&gt;The tendency to find shortcuts is the biggest blocker in the path of success. The bias impacts writers as well because as human beings, we like to be told about shortcuts. So in many cases hard parts are either skipped by writer or by the reader but we can't cheat nature. In the words of Thomas Paine,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;That which we obtain too easily, we esteem too lightly. It is dearness only which gives everything its value. Heaven knows how to put a proper price on its goods.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;b&gt;A few examples to understand the phenomenon&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Here are a couple of quotes from &lt;a href="https://www.goodreads.com/book/show/4865.How_to_Win_Friends_and_Influence_People"&gt;How to Win Friends and Influence People&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can make more friends in two months by becoming interested in other people than you can in two years by trying to get other people interested in you.&lt;/p&gt;

&lt;p&gt;To be interesting, be interested.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The message is loud and clear, become genuinely interested in other people to maintain a good relationship with them. That's not easy to adopt so there's lots of literature available that promises the same with shortcuts. They list engaging topics to discuss during small talk or how to start official meetings by asking questions about other people's weekends. All of this is not going to help you if you are not taking a genuine interest in other people's life.&lt;/p&gt;

&lt;p&gt;There's lots of literature on being productive and effective. Most people pick only the rituals ( Time quadrants, Pomodoro technique, etc) from it. This usually make people busy but not productive or effective. Without mindfulness about your time, no time management technique is going to make you productive. Without having a vision in your life you are not going to be effective.&lt;/p&gt;

&lt;h2&gt;
  
  
  Principles and practices
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;One of the immensely valuable aspects of any correct principle is that it is valid and applicable in a wide variety of circumstances - The 7 Habits of Highly Effective People&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Picking up the principles behind an idea is very important but people usually focus on the visual parts of it i.e. it's practices. This is most evident while adopting management methodologies like agile or OKRs. Most of the discussions for adopting agile are surrounded by it's ceremonies and people seldom talk about the principle behind i.e Agile Manifesto.&lt;/p&gt;

&lt;p&gt;Embracing principles and changing mindset takes time, specially when you are doing it on organizational level. Communication gets distorted whatever medium is used. You'll have to repeat the message again and again to make sure that every one in the organization is in sync.&lt;/p&gt;

&lt;h2&gt;
  
  
  Context conflict
&lt;/h2&gt;

&lt;p&gt;If all you have is a hammer, everything looks like a nail. &lt;br&gt;
Once you get to know about some technique of success you apply it on yourself without verifying if you have the same problems, scale or competency.&lt;/p&gt;


&lt;blockquote class="ltag__twitter-tweet"&gt;

  &lt;div class="ltag__twitter-tweet__main"&gt;
    &lt;div class="ltag__twitter-tweet__header"&gt;
      &lt;img class="ltag__twitter-tweet__profile-image" src="https://res.cloudinary.com/practicaldev/image/fetch/s--v6DxttUX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://pbs.twimg.com/profile_images/975876868455809024/eK7mDppU_normal.jpg" alt="DHH profile image"&gt;
      &lt;div class="ltag__twitter-tweet__full-name"&gt;
        DHH
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__username"&gt;
        @dhh
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__twitter-logo"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P4t6ys1m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/twitter-f95605061196010f91e64806688390eb1a4dbc9e913682e043eb8b1e06ca484f.svg" alt="twitter logo"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__body"&gt;
      The quickest way to ruin the productivity of a small company is to have it adopt the practices of a large company.
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__date"&gt;
      15:51 PM - 28 Sep 2019
    &lt;/div&gt;


    &lt;div class="ltag__twitter-tweet__actions"&gt;
      &lt;a href="https://twitter.com/intent/tweet?in_reply_to=1177974040432037888" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://practicaldev-herokuapp-com.freetls.fastly.net/assets/twitter-reply-action.svg" alt="Twitter reply action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/retweet?tweet_id=1177974040432037888" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://practicaldev-herokuapp-com.freetls.fastly.net/assets/twitter-retweet-action.svg" alt="Twitter retweet action"&gt;
      &lt;/a&gt;
      4453
      &lt;a href="https://twitter.com/intent/like?tweet_id=1177974040432037888" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://practicaldev-herokuapp-com.freetls.fastly.net/assets/twitter-like-action.svg" alt="Twitter like action"&gt;
      &lt;/a&gt;
      15122
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  Final words
&lt;/h2&gt;

&lt;p&gt;Things mentioned above are very important to reiterate frequently. Though these may seem common knowledge yet we as human beings very often become victims of these traps. With a constant check on ourselves, we can achieve great success by following the paths of people who have already achieved it.&lt;/p&gt;

</description>
      <category>improvement</category>
      <category>success</category>
      <category>management</category>
    </item>
    <item>
      <title>Setting up Bitbucket pipelines for Laravel</title>
      <dc:creator>Najmus Saqib</dc:creator>
      <pubDate>Mon, 18 May 2020 09:34:30 +0000</pubDate>
      <link>https://dev.to/nsaqib/setting-up-bitbucket-pipelines-for-laravel-4c39</link>
      <guid>https://dev.to/nsaqib/setting-up-bitbucket-pipelines-for-laravel-4c39</guid>
      <description>&lt;p&gt;Bitbucket Support has a good &lt;a href="https://confluence.atlassian.com/bitbucket/laravel-with-bitbucket-pipelines-913473967.html"&gt;article&lt;/a&gt; to start setting up your laravel project with their pipelines feature but for a large scale Laravel project, this article is not complete.&lt;/p&gt;

&lt;h2&gt;
  
  
  Multi stage builds
&lt;/h2&gt;

&lt;p&gt;Bitbucket pipelines has all the inherent pros and cons of vendor locked-in environment. Memory limitation is one of them. Composer install step was never going to work with this limitation. For that I moved to multi stage build. I created my own custom image and pushed it to docker hub. The dockerFile looks like this&lt;/p&gt;

&lt;pre&gt;
FROM php:7.2-fpm

RUN apt-get update &amp;amp;&amp;amp; apt-get install -y unzip ...
RUN printf 'memory_limit = -1;' &amp;gt; /usr/local/etc/php/php.ini

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN mkdir tests
RUN echo '{                                    \
    "require": {                               \
        "laravel/framework": "7.*",            \
        ...
    },                                         \
    "require-dev": {                           \
        "phpunit/phpunit": "^8",               \
        "squizlabs/php_codesniffer": "3.*",    \
        "phpmd/phpmd": "@stable",              \
                "pdepend/pdepend" : "@stable"  \
    },                                         \
    "autoload-dev": {                          \
        "classmap": [                          \
            "tests"                            \
        ]                                      \
    }                                          \
}' &amp;gt; composer.json
RUN composer install --no-scripts
RUN composer dump-autoload
&lt;/pre&gt;

&lt;p&gt;Now in the bitbucket-pipelines.yml file, use this custom image and few other statements to make the tests run&lt;/p&gt;

&lt;pre&gt;
image: dockerhub_user/base-image:prod

pipelines:
  default:
    - step:
        script:
          - cd $BITBUCKET_CLONE_DIR &amp;amp;&amp;amp; ln -s /var/www/html/vendor vendor
          - composer dump-autoload
          - vendor/bin/phpunit tests
          ...
&lt;/pre&gt;

&lt;p&gt;You can also test the base image locally using following commands. You'd need to copy the dockerFile in project_root/pipelines folder&lt;/p&gt;

&lt;pre&gt;
# build image
docker build -t dockerhub_user/base-image:prod -f pipeline/dockerfile .

# Run image locally with bitbucket memory constraints
docker run -it --memory=4g --memory-swap=4g --memory-swappiness=0 --entrypoint=/bin/bash -v ${PWD}:/build dockerhub_user/base-image:prod
# With volume use -v $(PWD):/build on linux

#push the image to dockerhub
docker login
docker push dockerhub_user/base-image:prod
&lt;/pre&gt;

</description>
      <category>laravel</category>
      <category>bitbucket</category>
      <category>pipelines</category>
      <category>cicd</category>
    </item>
    <item>
      <title>Caution! Disaster ahead, use Me Time</title>
      <dc:creator>Najmus Saqib</dc:creator>
      <pubDate>Wed, 29 Apr 2020 08:59:12 +0000</pubDate>
      <link>https://dev.to/nsaqib/caution-disaster-ahead-use-me-time-2eon</link>
      <guid>https://dev.to/nsaqib/caution-disaster-ahead-use-me-time-2eon</guid>
      <description>&lt;p&gt;After getting promoted, people usually get lot’s of additional communication to be a part of. Lot’s of new responsibilities, meetings, decisions and approvals. This can be overwhelming, or worse, addictive.&lt;/p&gt;

&lt;p&gt;One’s managerial leverage increases as the person goes up in the organization hierarchy. This is a double-edged sword. As described by Andy Grove in &lt;a href="https://www.amazon.com/High-Output-Management-Andrew-Grove/dp/0679762884"&gt;High Output Management&lt;/a&gt;, using this leverage positively can increase the organizational output dramatically. If the same leverage is used negatively (delayed decisions or unnecessary interruptions), it will result in dramatic decrease in organizational output i.e. a disaster.&lt;/p&gt;

&lt;p&gt;How to make sure that you are not leading yourself and your team/organization to the path of disaster? Use Me Time. It’s a chunk of time that you dedicate for a one-on-one with yourself. This is necessary for you if you want to&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Measure and increase your organizational effectiveness&lt;/li&gt;
&lt;li&gt;Explore your passions and talents&lt;/li&gt;
&lt;li&gt;Move out from the level of your incompetence (Peter’s principal)&lt;/li&gt;
&lt;li&gt;Move your focus from problems to opportunities&lt;/li&gt;
&lt;li&gt;Be Less Reactive and More Proactive&lt;/li&gt;
&lt;li&gt;Move out from circle of concern to circle of influence&lt;/li&gt;
&lt;li&gt;Spend your day with resolution instead of confusion and distraction&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What should one do in ME TIME
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Create a vision for your life if you don’t already have one. Now regularly measure your progress towards it.&lt;/li&gt;
&lt;li&gt;Categorize your tasks in four quadrants of time management matrix. Now try to achieve the target time allotment for each quadrant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--o2_aqIcq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xbp3rgzz6vh8o99wdpvx.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--o2_aqIcq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xbp3rgzz6vh8o99wdpvx.jpeg" alt="Alt Text" title="Image credit http://www.mattcole.us"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintain your daily, weekly and year to-do lists.&lt;/li&gt;
&lt;li&gt;Create a list of work related tasks you performed recently and sort them according to the managerial leverage ( i.e. Maximum impact and output in minimum time). Now try to increase the high leverage items in your daily schedule.&lt;/li&gt;
&lt;li&gt;Maintain daily journals. It’s a great way to manage oneself. Daily journaling is not limited to making a list of tasks you did or want to do during the day. It should include your thoughts and emotions. Things like what is making you happy, were you able to inspire someone today, did you learn something new? Writing these down is the first step towards controlling your emotional self.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Me Time is a routine with astonishing fruits and an equally astonishing process. A lot of patience and practice will be needed to become the master of me time. Concepts are listed with a very brief summary above. you’ll have to further read about them. There’s tons of material available about them in different formats. Once you cross the initial blocker of habit building, you’ll discover that it’s the greatest gift you have given to yourself.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Every next level of your life will demand a different you.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>management</category>
      <category>growth</category>
      <category>leadership</category>
      <category>improvement</category>
    </item>
    <item>
      <title>Hi, I'm Najmus Saqib</title>
      <dc:creator>Najmus Saqib</dc:creator>
      <pubDate>Fri, 14 Jul 2017 15:04:21 +0000</pubDate>
      <link>https://dev.to/nsaqib/hi-im-najmus-saqib</link>
      <guid>https://dev.to/nsaqib/hi-im-najmus-saqib</guid>
      <description>&lt;p&gt;I have been coding for 10 years.&lt;/p&gt;

&lt;p&gt;You can find me on GitHub as &lt;a href="https://github.com/tellsaqib"&gt;tellsaqib&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devops</category>
    </item>
  </channel>
</rss>
