<?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 Sourav Bhattacharjee on Medium]]></title>
        <description><![CDATA[Stories by Sourav Bhattacharjee on Medium]]></description>
        <link>https://medium.com/@sourav.bh?source=rss-521dc0da02b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*RED-giLplN0svWxTIo25Ww.png</url>
            <title>Stories by Sourav Bhattacharjee on Medium</title>
            <link>https://medium.com/@sourav.bh?source=rss-521dc0da02b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:38:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sourav.bh/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[Why I Chose HCI Master’s at Uni Siegen — and Why You Might Too]]></title>
            <link>https://medium.com/@sourav.bh/why-i-chose-hci-masters-at-uni-siegen-and-why-you-might-too-f0763412bb40?source=rss-521dc0da02b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0763412bb40</guid>
            <category><![CDATA[university-of-siegen]]></category>
            <category><![CDATA[masters-in-germany]]></category>
            <category><![CDATA[higher-study-in-abroad]]></category>
            <category><![CDATA[human-computer-interacion]]></category>
            <dc:creator><![CDATA[Sourav Bhattacharjee]]></dc:creator>
            <pubDate>Sun, 25 May 2025 20:24:15 GMT</pubDate>
            <atom:updated>2025-05-25T20:24:37.813Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why I Chose HCI Master’s at Uni Siegen — and Why You Might Too</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N2v49lEz3IhHnDfR.png" /></figure><p>If you’re passionate about people and technology, HCI at Uni Siegen offers the perfect blend. When I started my HCI master’s at Uni Siegen, I had a lot of questions and concerns. If you’re in the same boat, here’s a short look at how the journey unfolds and might help you find some answers.</p><ol><li><strong>How does the course selection take place here?</strong><br>You are free to choose most of the courses you like, except the mandatory courses mentioned in the study overview (<a href="https://hci-siegen.de/order-of-study/">https://hci-siegen.de/order-of-study/</a>). And the good thing is that you can try multiple courses at the beginning of a semester and then choose the one you like within 1–2 weeks. I was a CS graduate with long software development experience, so I chose the courses according to my interests. So you can choose your subjects as well, based on your interests and previous background.</li><li><strong>In the study overview, there also seem to be some CS-related modules. Am I supposed to do/learn coding as well?</strong><br>All of the CS-related modules are optional, and even in mandatory courses, no coding skill is required. We have students who graduated with zero coding throughout the degree.</li><li><strong>What is the nature of the assignments and exams?</strong><br>The assignments and the exams vary a lot depending on the course and the lecturer. Mostly, they are related to solving practical/real-world problems, like doing empirical work, analysis, design, etc. Sometimes, it can be just learning and applying HCI-related theories/methodologies.</li><li><strong>Is the coursework self-learning-based or lecture-based?</strong><br>At Uni Siegen, most of the courses are either lecture-based or individual/group work (in the sense of self-learning). Obviously, not everything can be taught in classes, and you have to self-learn many things to master HCI.</li><li><strong>What are the latest implications of learning HCI in Siegen?</strong><br>HCI certainly has a relation with every new technology like AI, because HCI works wherever humans are interacting with computers/machines. So any technology you can think of is linked to HCI. There is a huge field for designing the user experience, handling user data privacy, ethical aspects, etc., which are subfields of HCI. And in Siegen, you get the opportunity to explore all of these fields with hands-on experience, because we have many chairs working on different aspects of HCI applications in the real world.</li><li><strong>Also, does the university provide research or student assistantships?</strong><br>Yes, we always have openings for such roles. I also worked here as a student assistant, but remember that there are no obligations from the Uni to give you a role like this. It always depends on your connections, motivation, performance, and luck (the right opportunity at the right time).</li><li><strong>Can you share your personal experience about studying the HCI master’s in Siegen?</strong><br>I have had a passion for HCI since 2012, and when I got accepted here, I didn’t think twice. So far, my experience at Uni Siegen has been excellent, which someone can easily understand from my journey to join as a PhD student here after doing my master’s in HCI. I especially liked the master’s program because of its research-oriented nature, as I don’t like studying only theories without learning practical applications. And in this program, there are multiple tracks you can choose to become an expert in, like UI/UX designer, Software Engineer/Developer (incl. Data Scientist), User/UX researcher, and even more, which I can’t think of now.</li></ol><p>Studying HCI at Uni Siegen has been a rewarding journey filled with flexibility, hands-on learning, and growth. If you’re passionate about designing technology for people, this program might be the right fit for you too. If you have further questions, please leave a comment here. Hope to meet you here in Siegen some time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0763412bb40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Running Changed My View of Life in Five Ways]]></title>
            <link>https://medium.com/@sourav.bh/how-running-changed-my-view-of-life-in-five-ways-26db59df62d1?source=rss-521dc0da02b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/26db59df62d1</guid>
            <category><![CDATA[run]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[runningculture]]></category>
            <category><![CDATA[running]]></category>
            <dc:creator><![CDATA[Sourav Bhattacharjee]]></dc:creator>
            <pubDate>Mon, 20 May 2019 17:57:38 GMT</pubDate>
            <atom:updated>2019-05-20T17:57:38.356Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*64LNGWgl-9jS2G7nFFe3iw.jpeg" /><figcaption>This image is subject to copyright by the author, any unauthorized use will be illegal.</figcaption></figure><p>I have never missed a chance to participate in any sports, though I was not so good in any of them. Being a full-time software engineer, it was not easy for me to play sports like cricket, football throughout the year. I was becoming desperate to find a way to get that adrenaline rush I had during my sports activities. Besides this, I was also getting tired of sitting in a bus stuck in traffic and wasting my precious leisure times into transportation.</p><p>Running brought me a solution to all my above problems so diligently that I have fallen love with it. I started running back to my home from the office, I got saved an hour every day and also felt the joy after completing a 3-mile mark (even more) three/four days a week. It’s been three years I started running and I have completed 3 half marathons (21.1km) till today.</p><p>Initially running was just a hobby for me, but gradually it becomes a habit of my life. I started looking for a community that holds a similar passion. Luckily I got one very soon, named <a href="https://www.facebook.com/BDRunners/">BDRunners</a> and till now I am a regular activist to that running group. I never thought running could change my view of life so differently. Here are some of the major picks you can try too.</p><p>1 <strong>Never Give Up</strong></p><p>Started running is too easy, human’s natural endeavor to speed becomes the key factor at the very first place. But most of the time someone just started running falls apart only after 500 meters. It is <strong>patience</strong> and <strong>determination</strong> who keeps you in the running track after the early day’s failures. If you follow a proper running chart and the basic rule of increasing your mileage by 15% per week, it’ll be a matter of time when you could run your dream miles. So, lesson number 1 is:</p><blockquote>Never give up until you reach the goal.</blockquote><p>2 <strong>Keep Yourself Motivated</strong></p><p>During the initial stages of your running, you may target for short distances to train yourself. Once you get used to it and planning for longer versions like a half marathon or even full, you may be started facing some common running problems. Like often your body might feel exhausted, there may be an injury in place or even your lethargic mind can tell to stop running now. Never break down to these distressing situations, conquer them with strong <strong>motivation</strong> in either the running track or in real life. Here comes lesson number 2:</p><blockquote>Keep yourself motivated during the toughest hurdles.</blockquote><p>3 <strong>Plan Your Time Effectively</strong></p><p>Functional planning of your time can win you a battle of race, even when you are not in your best form. Either you are in an exam, preparing for an interview or just started a 13.1miles run, completing a partial amount of task efficiently cannot give you the ultimate success. Most of the jobs we do in real life require accomplishment to get the result we desired, hence plan the time you have so effectively that you never miss a job for the shortage of time. That sums up to lesson number 3:</p><blockquote>Make time for every smallest jobs you planned.</blockquote><p>4 <strong>Train Hard to Finish Strong</strong></p><p>Nothing comes easy if you just dream and plan about it. Continuous effort and a hard training schedule can be the key to your success. Like in running, without proper training you can experience fatigue or muscle pull which can even cause to throw you from the race track. Similarly in real life, if you don’t train yourself satisfactorily then you may miss an attractive job due to a bad interview or score poorly in your final exam. So, whatever you plan to achieve keep the priority of training high and feel the joy of success in the finish line. And that goes for lesson number 4:</p><blockquote>Train hard to accomplish your triumph.</blockquote><p>5 <strong>Spread Your Hand</strong></p><p>It’s a bitter truth that life is a race you need to run yourself, but that doesn’t mean you are all alone in that path. Whichever direction you choose to go, you will always find some people are there to welcome you with a helping hand. Thus, you can be a similar one for another struggling person looking for some help. Likewise in a race, you are half a mile away from the finish line and totally exhausted to reach the end, in almost every cases you will find a runner who wishes to accompany you till the finish line. So don’t restrain yourself from helping others whenever you get a chance, whether it is a race or in the journey of life. This is my lesson number 5:</p><blockquote>Helping someone can be your lifelong satisfaction.</blockquote><p>If you have not tried running yet, just give it a shot for a month and you will start loving it. Feel free to share this article if you found this interesting and don’t forget to clap. Happy running….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26db59df62d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Native Android Library or Module using NDK and CMake]]></title>
            <link>https://medium.com/@sourav.bh/build-a-native-android-library-or-module-using-ndk-and-cmake-71988b00b5dd?source=rss-521dc0da02b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/71988b00b5dd</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[cmake]]></category>
            <category><![CDATA[android-ndk]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-libraries]]></category>
            <dc:creator><![CDATA[Sourav Bhattacharjee]]></dc:creator>
            <pubDate>Sat, 04 May 2019 20:20:08 GMT</pubDate>
            <atom:updated>2019-05-04T20:25:26.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j1pLcf72-GpJ9V4z" /><figcaption>Photo by <a href="https://unsplash.com/@maxcodes?utm_source=medium&amp;utm_medium=referral">Max Nelson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Despite having <strong>Java</strong> and <strong>Kotlin</strong> for developing applications in Android, often we need to use <strong>C/C++</strong> to write part of our application. Specially, when you want to ensure extra performance from your Android device then C/C++ codes will be the rescue. Because while programming in native code, the source is compiled directly into the machine code for the CPU and not into an intermediate language as Java does. To compile that C/C++ code we require <strong>NDK</strong> (Native Development Kit) bundle from Android SDK package. According to the official documentation:</p><blockquote>The Native Development Kit (NDK) is a set of tools that allows you to use C and C++ code with Android, and provides <a href="https://developer.android.com/ndk/guides/stable_apis.html">platform libraries</a> you can use to manage native activities and access physical device components, such as sensors and touch input</blockquote><p>Unlike the unified Gradle build system for Java and Kotlin codes, we have multiple build tools for C/C++ codes. The default one recommended by Android is <strong>CMake</strong>, and other most supported build tool is <strong>ndk-build</strong>.</p><h3>Why CMake?</h3><p>Because Google recommended it! Apart from the joke, the <strong>ndk-build</strong> tool is more or less deprecated and still supported by Android just because of old legacy projects running into it. So if you are building something new, <strong>CMake</strong> will be the best choice to start. CMake’s main advantage is that you can use one set of build files for all your targets (Android, Linux, Windows, iOS, etc).</p><h3>How does it work?</h3><p><strong>CMake</strong> is an external build tool that works alongside Gradle to build your native code and it requires a build script CMakeLists.txt to complete the build process. The CMake build script includes commands CMake uses to build your C/C++ sources and libraries. For new projects, Android Studio automatically creates an initial CMakeLists.txt build script and places it in your module’s root directory.</p><h3>Setup Android Studio</h3><p>To start developing native applications or libraries you need to setup the SDK tools and build tools properly in Android Studio. According to the <a href="https://developer.android.com/">developer.android.com</a>, to compile and debug native code for your app, you need the following components:</p><ul><li>The Android Native Development Kit (NDK): a set of tools that allows you to use C and C++ code with Android.</li><li>CMake: the external build tool that used to compile and build your native codes.</li><li>LLDB: the debugger Android Studio uses to debug native code.</li></ul><p>To see the complete installation steps in more details, read through this official <a href="https://developer.android.com/ndk/guides#download-ndk">documentation</a>.</p><h3>Configure CMake build script</h3><p>CMakeLists.txt contains CMake commands to instruct CMake to create a native library from C/C++ source codes and other libraries.</p><ul><li>To start configuring the build script mention the minimum CMake version required to run the CMake build script, using the <strong><em>cmake_minimum_required() </em></strong>command. Place the command in the beginning and mention the version intended to use inside the braces.</li><li>The next step is to add the <strong><em>add_library()</em></strong> command, the command syntax is like following:</li></ul><pre>add_library( &lt;define the name of your native library&gt;<br>             &lt;space or newline&gt;<br>             &lt;set the library type, SHARED or STATIC&gt;<br>             &lt;space or newline&gt;<br>             &lt;metion the relative path for the cpp source file(s)&gt; )</pre><p># Please note that the relative path is meant to be relative to the directory where you kept the CMakeLists.txt build script.</p><ul><li>Then you need to mention the header file directory(s) using the <strong><em>include_directories() </em></strong>command, where you put the relative or absolute directory path(s) where the header files are located.</li><li>As you are developing an Android library, you will definitely require to use libraries from the <strong>Android NDK</strong>. These libraries are prebuilt in the Android platform, that’s why you don’t need to build the library package or even don’t need to mention the library path. Just provide the name of the library you want to use to store it in a cmake path variable using the <strong><em>find_library() </em></strong>command. Then link the variable with your library by the <strong><em>target_link_libraries()</em></strong> command. See the below syntax:</li></ul><pre>find_library( &lt;define a variable name to store the NDK library path&gt;<br>              &lt;space or newline&gt;<br>              &lt;specify the NDK library name you want to use&gt; )</pre><pre>target_link_libraries( &lt;mention your native library name&gt;<br>                       &lt;space or newline&gt;<br>                       ${&lt;specify the NDK library variable name&gt;} )</pre><ul><li>You may also want to use other prebuilt library files into your NDK library. <strong><em>target_link_libraries()</em></strong> command also support to link those third-party libraries into your native library. The simplest steps to do this are:<br>1. Mention the header files directory(s) used by your third-party library.<br>2. Link the third-party library with your native library.</li></ul><pre>include_directories( &lt;path to the header file directory&gt; )</pre><pre>target_link_libraries( &lt;mention your native library name&gt;<br>                       &lt;space or newline&gt;<br>                       &lt;absolute path of the thrid-party library&gt; )</pre><p># There is another way to link third-party libraries, see <a href="https://developer.android.com/studio/projects/configure-cmake#add-other-library">here</a> for details.</p><p>Here is a sample CMakeLists.txt file that demonstrates all the above steps:</p><pre># Mention the cmake version name.<br>cmake_minimum_required(VERSION 3.4.1)</pre><pre># Specify your native library name, type and the cpp source files.<br>add_library( my-native-lib<br>             SHARED<br>             src/main/cpp/main.cpp )</pre><pre># Set the header files directory.<br>include_directories(src/main/cpp/include/)</pre><pre># Mention the Android NDK library name to locate.<br>find_library( android-log-lib<br>              log )</pre><pre># Link the Android NDK library with your native library.<br>target_link_libraries( my-native-lib<br>                       ${android-log-lib} )</pre><pre># Set the third-party library header files directory.<br>include_directories(src/main/cpp/Libraries/include/)</pre><pre># Link the thrid-party library with your native library.<br>target_link_libraries( my-native-lib<br>      ${PROJECT_SOURCE_DIR}/src/main/cpp/Libraries/libthirdparty.a )</pre><p>To use the native library you configured to build above, you need to load the library in your Java / Kotlin code by mentioning its name in CMakeLists.txt file. Cmake uses below convention for the native library name to use it after build:</p><pre>lib&lt;the name you mentiond in cmakelist file&gt;.so</pre><p>According to the above example, your library name should be <strong>libmynativelib.so </strong>and the Java or Kotlin code would be:</p><pre>static {<br>    System.loadLibrary(&quot;my-native-lib&quot;);<br>}</pre><h3>Configure Gradle for NDK build</h3><p>To add the CMakeLists.txt build script into your project Gradle file, simply write it like below:</p><pre>android {<br>  ...<br>  defaultConfig {...}<br>  buildTypes {...}<br>  externalNativeBuild {<br>    cmake {<br>      // Provides a relative path to your CMake build script.<br>      path &quot;CMakeLists.txt&quot;<br>    }<br>  }<br>}</pre><p>You can configure the Gradle file more according to the special requirements for your NDK library. See <a href="https://developer.android.com/studio/projects/gradle-external-native-builds#pass-args-flags">here</a> for more configuration options.</p><p>Finally, don’t forget to clap and share this article if you find it useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71988b00b5dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Practices for Using String Resources in Android]]></title>
            <link>https://medium.com/@sourav.bh/best-practices-for-using-string-resources-in-android-c947fdd1606a?source=rss-521dc0da02b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c947fdd1606a</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[android-best-practices]]></category>
            <category><![CDATA[string]]></category>
            <dc:creator><![CDATA[Sourav Bhattacharjee]]></dc:creator>
            <pubDate>Sat, 03 Nov 2018 21:31:04 GMT</pubDate>
            <atom:updated>2018-11-03T21:31:04.668Z</atom:updated>
            <content:encoded><![CDATA[<p>Using String values from the strings.xml file is the most common thing every Android developer does daily. Very often many of us face difficulties to manipulate those Strings in Java code. Here are some everyday scenarios briefly explained with a possible best practice.</p><p>1 Construction of request URL is a routine job for every Android app. To do that generally, we have a base server URL, the specific service requests part with params as well and finally concatenate all these string to have a final request URL. It can happen using both Java code or strings.xml. Consider the following case:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32f050c579aa0f7c2e0663655a686ef1/href">https://medium.com/media/32f050c579aa0f7c2e0663655a686ef1/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fe7cdd69745a1d84ee880e32d4f4d90/href">https://medium.com/media/8fe7cdd69745a1d84ee880e32d4f4d90/href</a></iframe><p>All these hassles of the concatenation of strings and maintaining request path format can lead to producing unwanted bugs and use of formatting XML string resources can be handy in this case.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72ed9a322196f9536c595dd9b68defc9/href">https://medium.com/media/72ed9a322196f9536c595dd9b68defc9/href</a></iframe><p>Here, the string values contain multiple format arguments like %1$s is a string argument and %2$d is an integer argument. The number with the arguments helps to recognize the serial of passing values while generating the actual string, like below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd935d6588b8e771220f476fa6e36b6b/href">https://medium.com/media/dd935d6588b8e771220f476fa6e36b6b/href</a></iframe><p>This technique can be useful for creating dynamic string resources which might have variable content and need to be updated in runtime.</p><p>2 Another common problem we faced is handling string resources that have plural values and we ended up creating multiple string values to use with a nested if-else block.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0762db13338f185f8dabd8fba0da8a7/href">https://medium.com/media/a0762db13338f185f8dabd8fba0da8a7/href</a></iframe><p>This is a very bad practice both in terms of performance and clean code. Since different languages have different language rules you might need to write several blocks of the above code for several languages and the rules can be complex too. To save our life, Android provides ‘Quantity Strings’ to handle such cases.</p><p>It supports <strong>zero</strong>, <strong>one</strong>, <strong>two</strong>, <strong>few</strong>, <strong>many</strong>, and <strong>other</strong>. All these plural values are defined by the language rules currently in action, that means <strong>two </strong>do not always represent 2 but can be a representation of 102 in Slovenian. Similarly, <strong>few </strong>and <strong>many </strong>values can vary with languages and the <strong>other </strong>value means that this language does not require any special treatment for plurals.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/616d12b72cb63b3488fe5ad957fc1c64/href">https://medium.com/media/616d12b72cb63b3488fe5ad957fc1c64/href</a></iframe><p>And to use quantity strings (plurals) from Java code, it’s similar to using normal string resources, just need to pass the quantity number as a parameter. You can combine the use of formatted strings with plural values. In that case, the formatted arguments also need to be passed along with the quantity number.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95dc0f6546f5fb992a322184599f15e1/href">https://medium.com/media/95dc0f6546f5fb992a322184599f15e1/href</a></iframe><p>More details can be found from the official Android documentation: <a href="https://developer.android.com/guide/topics/resources/string-resource">https://developer.android.com/guide/topics/resources/string-resource</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c947fdd1606a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot Configuration Externalization Using YAML file.]]></title>
            <link>https://medium.com/@sourav.bh/spring-boot-configuration-externalization-using-yaml-file-22f64ef173fd?source=rss-521dc0da02b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f64ef173fd</guid>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Sourav Bhattacharjee]]></dc:creator>
            <pubDate>Sun, 21 Oct 2018 19:55:37 GMT</pubDate>
            <atom:updated>2019-05-04T20:23:40.248Z</atom:updated>
            <content:encoded><![CDATA[<p>All Spring developers are used to with application configuration file either in the form of properties file or YAML file. Very often, developers face a common problem that how can the application settings/configurations can be managed for different environments. That’s where <strong>Configuration Externalization </strong>comes into the place as a great solution in Spring Boot. We will now see how we can achieve this benefit step by step, let&#39;s discuss the purpose first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ksUWp9vrie1NlS12" /><figcaption>“different type of apple fruits on separate plastic crates” by <a href="https://unsplash.com/@peterf?utm_source=medium&amp;utm_medium=referral">Peter Feghali</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Purpose</h3><p>Generally, spring boot application configuration settings and variables are stored into ‘<em>application.properties</em>’ file or ‘<em>application.yml</em>’ file. These two types of configuration file are just different in terms of data formats, except there is one <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#boot-features-external-config-yaml-shortcomings">shortcoming </a>of YAML configuration file:</p><blockquote>YAML files cannot be loaded by using the @<strong>PropertySource</strong> annotation. So, in the case that you need to load values that way, you need to use a properties file.</blockquote><p>When an application is in the development environment only then there is no problem at all to maintain configuration file, but hassle comes for testing or production environment. Into those environments, QA or other persons might need to change any settings or update some variables in the configuration file.</p><p>Every time someone needs to change any settings he/she needs to change into ‘<em>application.yml</em>’ file and rerun the whole application release procedure like git-push, build, etc. And this process repeats and effectively create a mess for all the parties (dev, qa, prod) involved. To resolve the issue, multiple configurations need to be used for different environments.</p><h3>Procedure</h3><p>1 Create separate ‘<em>application.yml</em>’ files per application environment as you need under the resources directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/0*xQGKBing2DkRZwuu" /><figcaption>Sample resources folder for 4 environments: development, production, qa and default.</figcaption></figure><p>2 Configure the settings and variables as required in separate configuration files. The idea is to keep common settings into default ‘<em>application.yml</em>’ and put the possible settings that might/require to change for other environments into that corresponding configuration file. For example:</p><p>In the main ‘<em>application.yml</em>’ file below, there are settings that are common for all environments.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9a31384c9bff04cd9511c46b92c4d7b/href">https://medium.com/media/d9a31384c9bff04cd9511c46b92c4d7b/href</a></iframe><p>And for the QA environment, there is a configuration file named ‘<em>application-qa.yml</em>’. This file doesn’t need to have to change the ‘session.storetype’ or ‘datasource.driver-class-name’. But might need to change the database server IP address or database name either.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8596b96244548d20946e5c64a670e309/href">https://medium.com/media/8596b96244548d20946e5c64a670e309/href</a></iframe><p><strong>3 </strong>Set the default active profile into the main configuration file, which is required to define which configuration will be used at application startup.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/782745f9ff675a288920bd7aee3a7a98/href">https://medium.com/media/782745f9ff675a288920bd7aee3a7a98/href</a></iframe><p>Now every time you build an artifact you don’t need to modify the settings/configurations for separate environments, just change the active profile name in the main application YAML file. However, if your project has Git CI/CD integration and it requires a more convenient way to switch between the configurations then we can do this by defining the active profile into Git CI jobs configuration YAML file. Below are the steps and we are using GitLab variant as an example of Git CI/CD.</p><p>4 Declare a GitLab-CI variable named ‘<strong>APP_PROFILE</strong>’ under the desired job into ‘<em>gitlab-ci.yml</em>’ file for specifying the configuration profile that will be used by that specific job. If no such variable declared for a job means the default active profile set in the step#3 will be used for this particular job.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32bc825e1520aa7217a0ff815f9cc731/href">https://medium.com/media/32bc825e1520aa7217a0ff815f9cc731/href</a></iframe><p>5 For stack deploy jobs when application service is deployed using the ‘<em>stack.yml</em>’ file, we need to mention the active profile there using that GitLab CI variable ‘<strong>APP_PROFILE</strong>’ created in step#4.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e084c937ce59a6e34bcb2fa79aca8b/href">https://medium.com/media/84e084c937ce59a6e34bcb2fa79aca8b/href</a></iframe><p>6 For other deploy jobs which is only used to update a running service, set the active profile by adding that GitLab-CI variable ‘<strong>APP_PROFILE</strong>’ shown in step#4 as an argument in docker service update script.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6c9fde5a50ee86b5b3954a3f59d91b6/href">https://medium.com/media/e6c9fde5a50ee86b5b3954a3f59d91b6/href</a></iframe><p>Please note that if any of the settings are missing from the active profile configurations file then Spring Boot will pick those settings from default configuration file automatically. And last but not least, with Spring Boot the order of precedence for configuration places default environment variables as the highest authority.</p><p>Hope this might help you to save some time from maintaining your project settings. I would be happy to listen if this is not ideal for your problem in a Spring Boot application, feel free to reach me <a href="https://www.linkedin.com/in/souravbh">here</a>. Finally, don’t forget to clap and share this article if you find it useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f64ef173fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparing for Tech Jobs: Behavioral Part]]></title>
            <link>https://medium.com/@sourav.bh/preparing-for-tech-jobs-in-abroad-behavioral-part-1a7442c30b5?source=rss-521dc0da02b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a7442c30b5</guid>
            <category><![CDATA[tech-jobs]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[job-interview]]></category>
            <category><![CDATA[job-hunting]]></category>
            <dc:creator><![CDATA[Sourav Bhattacharjee]]></dc:creator>
            <pubDate>Mon, 25 Jun 2018 12:47:15 GMT</pubDate>
            <atom:updated>2019-01-10T12:14:17.754Z</atom:updated>
            <content:encoded><![CDATA[<p>Most often, behavioral questions are the very first step for staring an interview session. Such questions can be related to your personality, leadership quality or deep understanding of your resume. To make a good first impression, you need to be well prepared for these questions.</p><p>Let’s discuss with the above three major aspects of behavioral questions: personality, resume details and leadership/teamsmanship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z6y7aTltxJ-AFIMV" /><figcaption>Photo by <a href="https://unsplash.com/@emilymorter?utm_source=medium&amp;utm_medium=referral">Emily Morter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Personality:</h3><ol><li><strong>Tell me about yourself.<br></strong>Its a kick of question for most of the interview sessions, try to answer chronologically. Starting from your current job role (only headline), then college/university background, first job, current job details, stuffs you do outside of work and finally the reason of interest to apply.<br> <br>Try to relate your things with the company you are applying. For example, your current role includes both Android and iOS experiences, but the company you are applying looking for an Android expert. So emphasize on your Android expertise and success at your current job.</li><li><strong>What is your weakness?</strong><br>Try to explain a real weakness related to your work/job, and also brief that you know how to overcome it. Don’t give your daily life irrelevant or some arrogant weakness which may lead to a negative impact to the interviewer.</li><li><strong>Tell me about your hobbies.<br></strong>Focus on the hobbies which showcase some values for you, skip generic activities like skiing or having a pet. For example, a technical hobby may add great value to your skill set and proves your passion for technology. Hobbies which demonstrate a positive personality attribute often boost your personal ability to handle different situations in life.</li></ol><h3>Resume details:</h3><p>Most of the time interviewers try to your depth of technical knowledge and your career achievements through the elements you mentioned in the resume. So as a part of your preparation, you must be ready to answer about all the technical projects or components you have on your resume. Additionally, you should also focus on couple of major projects that you know very deep. For example, the projects you played a vital role or it had some really challenging features you did.</p><p>To get a better grip on all of your project details, you can make a project matrix with the attributes like challenges you faced, mistakes you did and how you overcame, technical decisions or trade-offs you made, your leadership role, technologies you used, what unique thing you did to bring success. It may look like following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*5IWgUuAibvYE8ziQ7UD_FA.png" /><figcaption>Structure of project matrix</figcaption></figure><p>To recollect things quickly, instead of long sentences try to keep small keywords for each project against each attribute. There might be some follow-up questions also, like what can be done to improve performance or scalability.</p><p>Besides these project details, you should be well prepared to talk with your other achievements or success story in other fields. For example, you did an excellent research work or you have a guineas record for some cool stuff.</p><h3>Leadership and Teamsmanship:</h3><p>These questions generally asked to experienced candidates, but its nothing wrong for freshers to be prepared with. There was no common set of questions for this part, often it is related to the position you are applying for. Based on my interview experiences here are some sample questions that might help you:</p><ol><li>How you manage if some of your teammate unable to cope up with the team?</li><li>What will you do if for some reason you disagreed with your manager/lead?</li><li>How will you handle the situation of possible release deffer or any level of project failure?</li><li>What will be your act if you have assigned some task you are not fond of?</li></ol><h3>Things to Remember</h3><p>While answering behavioral questions, keep in mind that with these questions interviewers are not judging you rather than trying to get to know you. So you should answer responsibly and the following advice may help you to achieve success:</p><p><strong># </strong>Be specific with your answer, but not to be arrogant. It means you should just mention the facts and let the interviewer derive from it.</p><p># Limit the details of your answer, do not dig up thoroughly from the first line. Try to explain with the key-points first and later drill in further if asked for more details.</p><p># Focus on your role, not what the team did. Often interviewers ask about the project details and they crave to listen the candidate’s impact only. Remember that interview is an individual assessment, so limit the words like ‘we’, ‘us’.</p><p># Answer in a structured form while explaining a scenario or specific problem. There is a common technique for a structured answer, called S.A.R (Situation, Action, Result). It means, first outline the situation/problem, then explain your actions and finally the result from those actions.</p><p><strong>Last</strong> but not the least, please be confident while facing interview sessions. Whatever your circumstances be, confidence always be a great helper for you. Preparing for a dream job is moreover like a journey, so be strong to ride safely.</p><h3>Update:</h3><p>Here I will keep posting some real question samples that will help the aspirants to prepare themselves.</p><ul><li>What was the most valuable feedback you received from your lead / boss / employer?</li><li>What will you do in the very first day of your office, which is also the first day of a sprint?</li><li>What will you choose between a bug fix, a new feature implementation or some code refactor?</li><li>What will be your next plan if you have completed your assigned task two days prior to your deadline?</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7442c30b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>