<?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 Dmitry Egorov on Medium]]></title>
        <description><![CDATA[Stories by Dmitry Egorov on Medium]]></description>
        <link>https://medium.com/@dmitryegorov_20623?source=rss-cd8c5ab8b5c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xM1bBgxTOgjxGImaKjUWwQ.jpeg</url>
            <title>Stories by Dmitry Egorov on Medium</title>
            <link>https://medium.com/@dmitryegorov_20623?source=rss-cd8c5ab8b5c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 20:45:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dmitryegorov_20623/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[How to immigrate to United Kingdom. Working Visa. Global Talent Visa.]]></title>
            <link>https://medium.com/@dmitryegorov_20623/how-to-immigrate-to-united-kingdom-working-visa-global-talent-visa-ce092c2d970b?source=rss-cd8c5ab8b5c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce092c2d970b</guid>
            <category><![CDATA[it-relocation]]></category>
            <category><![CDATA[uk-immigration]]></category>
            <category><![CDATA[united-kingdom]]></category>
            <category><![CDATA[global-talent-visa]]></category>
            <category><![CDATA[working-visa]]></category>
            <dc:creator><![CDATA[Dmitry Egorov]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 19:10:52 GMT</pubDate>
            <atom:updated>2023-11-06T19:10:52.664Z</atom:updated>
            <content:encoded><![CDATA[<p>Guidance and Recommendations for Relocating to the United Kingdom. Steps and instructions how to get a permament residency, right to work and citizenship in UK for IT guys.</p><h3>What is this article about?</h3><p>This article is a guide on how to get legal right to live and work in UK. I’ll mainly focused what/how you have to do in order to get residence permit (and later citizenship) in United Kingdom of Great Britain</p><h3>Path 1: Join Skilled Worker Visa Legion.</h3><p>Most popular and most realistic visa to get<a href="https://www.gov.uk/skilled-worker-visa">. Skilled worker</a> tier 2 visa replaced Working Visa in 2019. Since that time some requirements have been suspended and gave companies way more freedom to invite foreign specialists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZNO8wVRCLonf5K-g.jpeg" /><figcaption>Join the working legion.</figcaption></figure><h3>How to get this visa</h3><p>The main requirement — you need to find a company that will sponsor you. So the only thing you need to do — pass an interview (commonly about 3–4 interviews). Once the company (sponsor) approves you — soon you will need to pass an English exam (IELTS with B1 level including speaking). And finally pay for documents, NHS fee — in a couple of months your visa will be ready. Roughly for 3 years you need about 2k-3k pounds but almost every company will compensate for it by your arrival.</p><h3>How to find a job and sponsor. Rich LinkedIn Profile.</h3><p>Before I recommend you became confident in your profession. It might be development, testing, analitics, web design etc. Became at least middle developer (about 4–5 years). Prefereably with Diploma but in some companies it’s not required, especially if you proved that you are skilled during interview.</p><ul><li>Became middle developer</li><li>Make good LinkedIn profile page with at least 1.5k connections</li><li>Have Diploma</li><li>Have a good English level. You to speak and write good english, preferably without accent.</li></ul><p>Once it’s done — start adding IT HR connections from UK. Try to get at least 500, better 1000. But don’t rush or you might be banned in Linkedin.</p><h3>Next step — Wait.</h3><p>Once you have completed previous steps you need just to wait until some HR offers you a pass an interview. But before interview ask do they offer sponsorship or not. If not — don’t waste their and your time. <strong>No sponsorship — no visa.</strong></p><p>Sooner or later you will pass the interview and come to the UK. But next things you have to know:</p><ul><li>Working visa requires a sponsor, so most likely you won’t change your sponsor. So you shouldn’t expect a big pay rise. Possibly you can change sponsors but it might be risky. If you lose your sponsor you have only 60 days and after that you have to leave the UK and start over.</li><li>Don’t expect to have any bonus even if it was promised. Quite often it’s false promises. Especially if you are hired through an agency. Agency will lie to you, they need to hire you at all costs.</li></ul><h3>Path 2: Global Talent Visa.</h3><p>Long path but leads to the one of the most valuable visa — Global Talent Visa (before 2019 was known as Exceptional talent visa).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rExBD8fPPDnqnmAd.jpg" /></figure><p>This visa is much more difficult to get. But trust me — it’s worth it. Personally I think “Global talent or Exceptional Talent” is a misleading name. I would name it “Person with experience and achievements” I don’t mean that person should be extraordinary.</p><h3>What you have to do to get it.</h3><p>You need to make a portfolio with proofs that confirm that you:</p><h4>1. You share your expertize and get positive feedback from community on practice it means:</h4><ul><li>You publish articles in known IT platform (eg Dzone)</li><li>You conduct private or public courses about IT. It might be as university or even private company</li><li>Write books (This one I think might take too much time)</li><li>Participate in known conferences</li></ul><p><strong>2. Your salary has to be higher than average on the market for your area. This is pretty obvious. If you are highly qualified specialist you has to earn more.</strong></p><p><strong>3. You should get at least 3 endorsments from 3 persons with position at least team lead but better if it’s CTO or CEO or related. It’s better that all 3 persons are “recognized” — have good linkedin profile.</strong></p><p><strong>4. Show experience from projects beyond your main job, whether paid or volunteer, with endorsements to prove your achievements.</strong></p><p>Each portfolio is considered on a case by case basis. Portfolio is reviewed by IT specialist so you have to understand that there is no chance to mislead him.</p><h3>Advantages of Global Talent Visa</h3><p>Global talent visa is Tier 1. Allows you to work without a sponsor, it allows you to open a company and work as a contractor. It also provides the option to reside without active employment and avoid deportation</p><h4>Global Talent Visa have 2 types: Global Talent and Global Promise.</h4><p>They are very similar, the only difference — with a promise you can get indefinite leave to remain in 5 years and with Talent in 3 years. In general it’s easier to get Promise type. Often seniors devs apply for Talent and middle and even juniors — for Promise.</p><h3>Win strategy if you are disciplined enough.</h3><p>If you are just a junior or middle developer and you are willing to relocate to the UK and settle here — read the criterions that I mentioned above and work towards meeting them. It might take 2–3 years but the more you invest the higher chances to get it. Apply for Promise. Promise visa almost the same as Talent.</p><h3>Instead of conclusion. Review Salaries For Seniors.</h3><p>It’s hard for me what the compensation is for the middle level. I came to the UK as a senior guy so here I publish what you might expect if you have at least 8–10 years of experience of Java development (sometime even less like 6 or so).</p><p>First review Tier 2 Visa. In that case you can’t expect to get a really high salary. Companies understand that they offer you a chance to live and stay in the UK. So the first 5 years don’t expect too much (but I know exceptions).</p><ul><li>Salary at the beginning: 60–80k per month or about 4000 pounds after tax</li><li>Salary after 3 years of work (roughly): 80–90k or about 5000 pounds after tax</li><li>Salary after 5+ years once you get a passport 100k+ — about 5500 pounds per month.</li></ul><p>There are positions like hedge funds or companies like MAANG that might be much higher like 150–300k but it’s difficult to get so I don’t even include it here.</p><h3>I wish you good luck. Don’t think that it’s something impossible.</h3><p>My journey was slighly different. I initially came to London on a Tier 2 working visa in 2019. While working, I dedicated time to build my portfolio for the Global Talent Visa. After two years, I applied and successfully obtained the Talent Visa. The effort I invested was worthwhile. I strongly recommend (I think it has to be mandatory) to work in Western countries and learn local IT traditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/0*bNxK_3An7MrQpvmR.jpg" /></figure><p>Thanks for reading, don’t hesitate to ask questions in the comments. Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce092c2d970b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java clean code. 4 useful tips.]]></title>
            <link>https://medium.com/@dmitryegorov_20623/java-clean-code-4-useful-tips-1b1504300196?source=rss-cd8c5ab8b5c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1504300196</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[optionals]]></category>
            <category><![CDATA[java-generic]]></category>
            <dc:creator><![CDATA[Dmitry Egorov]]></dc:creator>
            <pubDate>Sat, 30 Jun 2018 21:34:57 GMT</pubDate>
            <atom:updated>2018-06-30T21:39:12.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*N9dPxdrWI_WAFy6i_6QNuA.png" /></figure><h3>Briefly:</h3><ol><li><strong>Use Optional for possible null objects.</strong></li><li><strong>Use streams to iterate/filter/map/collect data</strong></li><li><strong>Use functions/suppliers to reuse repeated code.</strong></li><li><strong>Use generics</strong></li></ol><h3>Avoid passing and comparing with null. Use optional instead.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*2juEuVGt4ycz8TLE93TsEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*ic5T6TecyXxf8kU0IzZvsg.png" /></figure><h3>Pass empty collections instead of null. (for them optional is extra). (like Collections.emptyList, Collections.EmptyMap,etc..)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOScGxMTl-UfsKZUQ-xVPw.png" /></figure><h3>Use java 8 stream to iterate/filter/map data.</h3><p>In next example we convert string list to int list filtering negative values in old (for each) and new (stream) ways. Also we keep short way of list initialization Arrays.asList();</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFC5Z0hk7GTL7xzDBswkWg.png" /></figure><p>Use Functions/Suppliers to execute <strong>code as parameter. </strong>In next example we can see that code is almost the same. The only difference it’s function being executed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*IvSvO6v-IydX_dLkavgFwA.png" /></figure><p>So we can easily extract same part and pass only different part as supplier parameter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*GkspmqE0hQWIb7bP9Zv4GA.png" /></figure><p>But what if we need to return some value not just void instructions? Eg:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*Ljw8J2ciOhquMPiRXkJJfw.png" /></figure><p>So in that case we can use old good generics!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*HIkl1ju2rEcXvpATromW7g.png" /></figure><p><em>Remember, elegant code is sign of senior skill.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1504300196" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark or java web server within 5 minutes.]]></title>
            <link>https://medium.com/@dmitryegorov_20623/spark-or-java-web-server-within-5-minutes-79e84a32099e?source=rss-cd8c5ab8b5c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/79e84a32099e</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Dmitry Egorov]]></dc:creator>
            <pubDate>Fri, 27 Oct 2017 21:11:33 GMT</pubDate>
            <atom:updated>2018-04-28T18:48:33.672Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*0MJRZ68BciLfGkSE-vtpVw.png" /></figure><p>If you need to deploy any static content or simple rest quickly spark framework is good option. <a href="http://sparkjava.com/"><strong>Apache spark </strong></a>is lightweight<strong> </strong>java web server that provides many features from the box:</p><ul><li><strong>Serving static files</strong></li><li><strong>Exposing rest api</strong></li><li><strong>Cookies/sessions/exception handling and so on.</strong></li></ul><h3>In next 5 steps you can easily start serving static files and 1 simple rest api:</h3><h4>#1 Create empty project with next structure (put in resource/public static files you want to expose)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*K2SfZfEyKoRbvxqTvl2lEw.png" /></figure><h4>#2 In pom.xml file put:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4572a7bfc19cae53bfac92e6bf79b3c5/href">https://medium.com/media/4572a7bfc19cae53bfac92e6bf79b3c5/href</a></iframe><h4>#3 Add main Hello class with next code:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e39e6443c920e1c3d9dba868a5ff3f5/href">https://medium.com/media/2e39e6443c920e1c3d9dba868a5ff3f5/href</a></iframe><h4>#3 Build executable jar with famous maven command:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1471ab63cd7b86a9dd4e23d0f4f11fc2/href">https://medium.com/media/1471ab63cd7b86a9dd4e23d0f4f11fc2/href</a></iframe><h4>#5 Execute generated jar with command:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38da1ca4cd3e10a359360a118bc38810/href">https://medium.com/media/38da1ca4cd3e10a359360a118bc38810/href</a></iframe><h3>Checking results:</h3><p>#1 Exposed “rest” api is reachable by url: localhost:4567</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*R6Rctv8zB5ATptlArLyEgw.png" /></figure><p>#2 Exposed static files are accessible by url: localhost:4567/index.html that point to static file in resources/public. In my case I put that site scratch:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EttPD5BkMUk_VW8RbHA_iQ.png" /></figure><h3>Summary:</h3><p>Spark is powerful and lightweight framework that could be used for exposing static files and rest api. It’s integrated with many different technologies like freemarker.</p><h3><a href="https://yadi.sk/d/qlFhI9du3NxJNv">Here</a> you can download described example.</h3><p>For any comments/suggestions please comment:</p><p><a href="https://www.linkedin.com/pulse/java-web-server-within-5-minutes-dmitry-egorov/">https://www.linkedin.com/pulse/java-web-server-within-5-minutes-dmitry-egorov/</a></p><p><a href="http://Paypal donation">paypal.me/icju</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79e84a32099e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>