<?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 Jamil Alisgandarov on Medium]]></title>
        <description><![CDATA[Stories by Jamil Alisgandarov on Medium]]></description>
        <link>https://medium.com/@jamilio?source=rss-b3482ad19be5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4mIScT_3jxgyRQUnw8zIDw.jpeg</url>
            <title>Stories by Jamil Alisgandarov on Medium</title>
            <link>https://medium.com/@jamilio?source=rss-b3482ad19be5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:10:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jamilio/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[Remote iş həyatı, vergilər və s. (2021)]]></title>
            <link>https://jamilio.medium.com/remote-i%C5%9F-h%C9%99yat%C4%B1-vergil%C9%99r-v%C9%99-s-2021-4db4f5758905?source=rss-b3482ad19be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4db4f5758905</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[taxes]]></category>
            <dc:creator><![CDATA[Jamil Alisgandarov]]></dc:creator>
            <pubDate>Sun, 30 May 2021 20:16:16 GMT</pubDate>
            <atom:updated>2021-05-30T20:40:38.473Z</atom:updated>
            <content:encoded><![CDATA[<p>Uzun bir müddət freelance və full-time işlədikdən sonra, növbəti iş seçimimin remote olması qərarını verdim. Günəşli bir yaz günündə ofisdə çalışmaq inanıram ki, mənim kimi bir çox şəxs üçün darıxdırıcı və yorucudur :) İlk dəfə remote işə başlayacağım üçün bəzi məqamlar bir qədər qaranlıq idi. <em>Ödənişi necə qəbul edəcəm? Vergilər nə qədərdir? və s. — </em>kimi bir çox sualın cavabını sizinlə də bölüşmək qərarına gəldim.</p><h3>Remote işin üstünlükləri</h3><figure><img alt="Günəşli bir Bakı səhəri, dəniz qırağı" src="https://cdn-images-1.medium.com/max/640/1*S4Kf7kMqxA5rnoiEZl2e7w.jpeg" /></figure><ol><li>Hər səhər tıxacda ofisə getmə məcburiyyətiniz yoxdur. Evdə, kafedə, dəniz qırağında hətta istərsəniz Bora-Bora adalarına köçüb ordan da işləyə bilərsiniz 🏝</li><li>Yerli şirkətlərdə ala biləcəyinizdən daha yuxarı məbləğdə qazanc imkanı 💵 💴 💶 💷</li><li>Ailənizlə daha çox vaxt keçirə bilərsiniz</li><li>Nəqliyyatdan daha az istifadə === daha az karbon emissiyası 💨</li></ol><h3>Remote iş üçün hansı platformalara üz tutmaq olar?</h3><p>Növbəti iş yerinizin remote olması qərarına gəldinizsə, aşağıdakı platformalar növbəti iş yerinizi tapmağa sizə köməklik göstərə bilər:</p><ol><li><a href="https://djinni.co/">Djinny</a></li><li><a href="http://angel.co/">Angel.co</a></li><li><a href="http://remote.co/">Remote.co</a></li><li><a href="https://www.linkedin.com/">LinkedIn</a></li></ol><p>Bildiyiniz digər platformaları şərhə əlavə edə bilərsiniz. Sharing is caring :)</p><h3>Vergilər, ödənişin qəbulu və digər hüquqi məsələlər</h3><ol><li>Remote işə başlayarkən ilk əvvəl <strong>vergi ödəyicisi (VÖEN)</strong> kimi qeydiyyata düşməlisiniz. Bunu Asan xidmət, Vergilər Nazirliyi və ya onlayn formada həyata keçirə bilərsiniz. Vergi ödəyicisi kimi qeydiyyata düşməzdən əvvəl <strong>ASAN İmza</strong> almağınız tövsiyyə olunur, ASAN İmza vasitəsi ilə bir çox bank və vergi əməliyyatlarını onlayn formada edə biləcəksiniz.</li><li>VÖEN-ə bağlı bank hesabı açılmalıdır, bununla da Vergilər Nazirliyi sizə daxil olan ödənişlər əsasında vergilərin düzgün hesablanması və ödənilməsinə nəzarət edir. VÖEN-ə bağlı bank hesabı açmazdan əvvəl hesab açmaq istədiyiniz banka <a href="https://www.e-taxes.gov.az/">https://www.e-taxes.gov.az/</a> vasitəsilə <strong>Şəhadətnamə duplikatı</strong> göndərməlisiniz (<a href="https://www.youtube.com/watch?v=lkCL5PJYqk0&amp;t=41s">Necə?</a>). Bu duplikat banka ən gec 2 iş günü ərzində göndərilir. Duplikat banka göndərildikdən sonra siz hesab aça bilərsiniz. ASAN İmzanız varsa elə indi <a href="http://pashabank.digital/">Paşa Bank-ın onlayn platforması</a> vasitəsilə müştəri ola bilərsiniz :)</li><li>Vergilər — İllik toplam gəliriniz 200.000AZN keçmədiyi təqdirdə, hesabınıza gələn məbləğin <strong>5</strong><a href="http://old.taxes.gov.az/beledchi/beledchi/8.html"><strong>%</strong></a><strong> həcmində gəlir vergisi, 62.5AZN (aylıq) </strong><a href="http://www.muhasib.az/xeber.php?id=1706"><strong>DSMF</strong></a><strong>, 10AZN (aylıq) isə </strong><a href="http://mks.az/accounting/publications/item/10696-yenilik-f%C9%99rdi-sahibkar-hans%C4%B1-m%C9%99bl%C9%99%C4%9Fd%C9%99-icbari-tibbi-s%C4%B1%C4%9Forta-%C3%B6d%C9%99y%C9%99c%C9%99k.html"><strong>icbari tibbi siğorta</strong></a> vergisi ödənilir. Bu vergilər rüblük olaraq hesabatlar zamanı ödənilir. Vergilər nazirliyinə rüblük və illik hesabat göndərmək mütləqdir.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*6j36G9DNMdn5ZwhCygwmVQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4db4f5758905" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React.js — How to optimize your appl ]]></title>
            <link>https://jamilio.medium.com/react-js-how-to-optimize-your-appl-8f51dd736833?source=rss-b3482ad19be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f51dd736833</guid>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hooks]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Jamil Alisgandarov]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 13:46:51 GMT</pubDate>
            <atom:updated>2020-10-08T13:46:51.616Z</atom:updated>
            <content:encoded><![CDATA[<h3>React.js — How to optimize your application 🚀</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVtSwdmMm11xMslacJqEXA.png" /></figure><p>With introduction of React hooks, we all started to use functional components. Hooks are amazing! But wrong implementation of functional components can be very costly, it can cause low performance of our application. We will be discussing what can cause it and how we can prevent those issues beforehand.</p><h3>Callbacks — useCallback()</h3><p>We are using callback functions almost for everything. Callback for DOM events, calculating something and etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/86cd8c0196242af162433305a4237877/href">https://medium.com/media/86cd8c0196242af162433305a4237877/href</a></iframe><p>So, what is the issue in the code above? Issue is whenever this component gets re-rendered, our callback function will be renewed, even though there is no need for that change. We won’t feel that change with one component, but think that we have a list which has thousand of rows those have action buttons inside. How can we solve this issue? Thanks React.js team for introduction of hook called useCallback .</p><p>useCallback simply accepts 2 arguments, first one is our <strong>callback function </strong>and second one is <strong>dependency array.</strong></p><ul><li><em>dependency array — is a list of array with values which our callback is depend on. If we explain it in short term, react will understand when to create new instance of function by shallow comparing previous and new values of array.</em></li></ul><p>Let’s see <a href="https://jsfiddle.net/jamilalio/135xbpoh/3/">example</a> of how many instance is created with and without using useCallback</p><h3>Value memoization — useMemo()</h3><p>Most of the time we are doing complex calculation or store some kind of values as consts. Passing some kind of configuration or value as props also effecting performance of child components. So, how we should be storing values in functional react components? useMemo is the right answer. It’s working the same way useCallback works, but it’s able to hold all kind of values. We can do complex calculation inside and react will not recalculate on every render where it should not. Memoized value will change only when previous and current values of dependency array are not equal. Let’s see example below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/edd5fb27e26a2857dd17a02f773f45fc/href">https://medium.com/media/edd5fb27e26a2857dd17a02f773f45fc/href</a></iframe><p>Here it’s, now you have optimized your application in a trendy way! ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f51dd736833" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How simple changes made huge difference in our development  process]]></title>
            <link>https://medium.com/pashabank/how-simple-changes-made-huge-difference-in-our-development-process-c76cd1f5da23?source=rss-b3482ad19be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76cd1f5da23</guid>
            <category><![CDATA[jest]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[circleci]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Jamil Alisgandarov]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 14:06:15 GMT</pubDate>
            <atom:updated>2020-01-11T17:03:21.448Z</atom:updated>
            <content:encoded><![CDATA[<h3>How simple changes made huge difference in our development process</h3><figure><img alt="Our team waiting for changes to get deployed" src="https://cdn-images-1.medium.com/max/507/1*capO9cDSAK2su-qyGzYT_Q.jpeg" /></figure><p>I am front-end developer at <a href="https://medium.com/u/4acf6c149323">Digital Engineering</a> team of <a href="https://www.pashabank.az/lang,en/"><strong>Pasha Bank</strong></a>. Our department is established to transform traditional bank products into digital ones. So, most of the coolest tech stacks are used to give the best experience for our customers. <strong>React (with hooks ✨)+Redux, Typescript, Jest, Enzyme </strong>are our stacks in <strong>front-end</strong>. When I started to work at this company number of front-end engineers and code base were significantly less than now we do. At that time we weren’t experiencing any kind of issue regarding to deployment or development time. But, things started to getting worse over the time, just because number of squads is increased (for sure new engineers have been employed), code base started to bubble up and yes, shit has happened.</p><h3>What our deployment process looks like</h3><p>We have two separate branch for production (master) and development (dev). Whenever we start to do a business task, firstly we create feature branch with proper task name. After getting everything done, we create pull request to merge into dev branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oNMM4Mjo5mwp642xuOZGwg.jpeg" /><figcaption>Branching strategy</figcaption></figure><p>What is the best way give our customers newly made features easily and quick? Power of continuous integration! And we are using CircleCI for it.</p><h3>Problems:</h3><ol><li>As I mentioned before we are using Jest and Enzyme for automated tests. So in every push to branch or whenever something merged all tests were running which takes about 4–5 mins (growing as new features are delivered).</li><li>We have limitation in CircleCI to run 6 jobs in parallel. More front-end engineers means more jobs are queued in CI.</li><li>Built and tests steps were running in sequence (steps) where they were independent and could be run in parallel.</li><li>Sending test reports and analysis to SonarCloud was another big step which was taking approximate 3 mins.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5mYo7WvxZ2yNw5iRo59guQ.png" /><figcaption>Deployment flow in CircleCi (jobs and duration is shown with red)</figcaption></figure><p>Waiting for this flow to get your things deployed was a disaster. Think about when someone merges feature to dev branch before you and now you have to update your branch so you need to wait another 10 mins……</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fd10dMmzqCYqQ0%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fthe-office-mrw-d10dMmzqCYqQ0&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fd10dMmzqCYqQ0%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/636ae9ab89e1da69f64410ca43340a7b/href">https://medium.com/media/636ae9ab89e1da69f64410ca43340a7b/href</a></iframe><h3>Now it’s time for solutions!!!!</h3><ol><li>Running all tests whenever you push something to your branch is not that good idea. When it takes so long time it means job stacks in queue for long time and other developers need to wait for it. So I found out that <strong>Jest</strong> has great feature which gives you ability to run only tests related to <strong>changed files. </strong>If you have changed one file, only tests related to it will be running. So I added script like this below.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/08ba642017fd5d4babefea3dbfe5c986/href">https://medium.com/media/08ba642017fd5d4babefea3dbfe5c986/href</a></iframe><p>But to be sure that everything works fine and we are not going to get a phone call in the middle of the night, we are running this script if we push our changes to feature branch. Still running all tests in dev and master branches. For this just add the test job as below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ba8fe317b8088d07ba8f163818c0d00/href">https://medium.com/media/9ba8fe317b8088d07ba8f163818c0d00/href</a></iframe><p><strong>2.</strong> Pushing commit to the branch in sequence was filling queue with useless jobs. For example, you have branch feature/X you made some changes with commit name Changes 1 and pushed it from local, jobs related to Changes 1 are running. Then you made another quick fix with name Changes 2 and pushed it, jobs for Changes 2 also start. Now there are 15 engineers working on same repository and developing tasks without stopping. After researching a little bit I found out that <strong>CircleCI</strong> has a nice feature called <a href="https://circleci.com/docs/2.0/skip-build/#auto-cancelling-a-redundant-build"><strong>Auto Cancelling a Redundant Build</strong></a><strong>. </strong>After enabling it we finally got what we want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3YD2MWaJ14RC3hQyG7xvQ.png" /><figcaption><a href="https://circleci.com/docs/2.0/skip-build/#auto-cancelling-a-redundant-build"><strong>Auto Cancelling a Redundant Build</strong></a></figcaption></figure><p>3. Two of our CI job steps were running in sequence: <strong>build</strong> and <strong>test. </strong>Where they are totally independent and could be run in parallel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-l5FCZSb74kWrQ0Oi6JTLg.png" /></figure><p>As a result I separated them as an individual jobs to run them in parallel, now it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*N1lpHHKdFef2j5dPKM6eew.png" /></figure><p>If they were taking 3 mins for each before it was 6 mins. Now if they start to run as parallel jobs it will take only 3 mins. <strong>Hoorays!!!</strong></p><p>4. The last improvement is related to sending result to SonarCloud. We were doing it as a part of CI job as a step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgWQpNVcH8Nw0SbDzb63oQ.png" /></figure><p>If you use <a href="https://sonarcloud.io/documentation/integrations/github/"><strong>SonarCloud Automatic Analysis</strong></a><strong> </strong>in your project, you will get automatic code analysis in your pull requests.</p><h3>Result?</h3><p>At the end we had optimized lots of things from cancelling not needed jobs to decreasing time needed for deployment. if full deployment flow was taking <strong>17 mins,</strong> now it takes around <strong>6–7 mins</strong>. Everyone loved it!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F11sBLVxNs7v6WA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fcheer-cheering-11sBLVxNs7v6WA&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2F11sBLVxNs7v6WA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="196" frameborder="0" scrolling="no"><a href="https://medium.com/media/15da6c7091d4b74051f58f021932647a/href">https://medium.com/media/15da6c7091d4b74051f58f021932647a/href</a></iframe><p>Thanks goes to our DevOps team member and tech lead (at the time) <a href="https://www.linkedin.com/in/amirjanov/"><strong>Rashad Amirjanov</strong></a><strong> </strong>for his help during the process!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76cd1f5da23" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pashabank/how-simple-changes-made-huge-difference-in-our-development-process-c76cd1f5da23">How simple changes made huge difference in our development  process</a> was originally published in <a href="https://medium.com/pashabank">PASHA Bank</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>