<?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 Prasadi Senarathna on Medium]]></title>
        <description><![CDATA[Stories by Prasadi Senarathna on Medium]]></description>
        <link>https://medium.com/@prasadisenarathna?source=rss-c3d163cfa20d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eJuDn_d9Fb3i5CyS</url>
            <title>Stories by Prasadi Senarathna on Medium</title>
            <link>https://medium.com/@prasadisenarathna?source=rss-c3d163cfa20d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:58:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prasadisenarathna/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[Feature toggling — Can it ever be pain free?]]></title>
            <link>https://engineering.99x.io/feature-toggling-can-it-ever-be-pain-free-8d5fc1c0a0a8?source=rss-c3d163cfa20d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d5fc1c0a0a8</guid>
            <category><![CDATA[toggle]]></category>
            <category><![CDATA[feature-toggles]]></category>
            <dc:creator><![CDATA[Prasadi Senarathna]]></dc:creator>
            <pubDate>Wed, 08 Jun 2022 03:25:40 GMT</pubDate>
            <atom:updated>2022-07-04T10:13:00.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Feature toggling — Can it ever be pain free?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5WCYPSD4u0VTFwQL7rksEQ.png" /></figure><p>When I was a junior dev I didn’t have any major comments on this. Few years and several projects later, Feature Toggling has become something that I would avoid if I ever get the option.</p><p>I worked in a major international e-learning platform web application which had 2 week sprints and a production release every two weeks. We all had to complete multiple(3–5) new features each sprint and push to stage within a few days and make it ready for the production release that comes bi-weekly. We used release branch strategy and the features that took more time was merged partially with feature toggling enabled.</p><p>For the first few releases feature toggling went well. We had some features enabled for test users but not for live users. Since our client could verify “future release features” in the production site itself, it made our work visible and overall client was happy. Few months into the habit of “feature-toggling” , our code base became extremely hard to manage and understand. There were so many config keys defined and different if-else statements for the same logic in backend and frontend. We also found there are several config keys defined to toggle the same feature. Still the client was happy but it was slowly becoming a developer’s nightmare. This is when we decided we need to look deeper into feature toggling and introduce a proper practice and guidelines to follow.</p><p>Mostly, feature toggling would be if-else statements in code. It’s a development design pattern that enable to switch on/off features without doing a release. You can also switch off ‘in-progress’ features so that you can ship the rest of the release with ‘complete’ features.</p><p>Feature toggling would be a Product Owner/Technical Analyst’s best friend as it would be a way to showcase what the team is engaged into the client. It’s also a way you can develop features that would need to go live in a future date.</p><p>As much as I understand all the benefits a dev team can get with feature toggling, it has its cons.</p><ol><li>Messy code — Using too many config keys make the code messy and hard to understand.</li><li>Increased regression testing — Application should be tested each time for feature on and off both.</li><li>Validation complexity — You need to make sure you have validations working for feature on and off both.</li><li>Maintenance — Without proper documentation you’ll be wondering around code to figure out what’s happening.</li></ol><p>Feature toggling can go out of hand if you don’t keep it under control. Unknowingly, your code will become a nightmare with too many if-else statements. Its important that you plan it. After some experimentation in live site, you might have to make it permanent. Or else you might want to remove the feature permanently. Either way make sure you design it in a way that is easy to carry out both of the above tasks.</p><p><strong>What can we do?</strong></p><ol><li>Use ready-made libraries — There are many libraries that comes with many features in built for both frontend and backend technologies. Using these will let you spend time on the actual ‘feature’ rather than designing a solution for ‘feature toggle’.<br> Eg: <br> <a href="https://www.nuget.org/packages/Microsoft.FeatureManagement.AspNetCore/2.0.0">Microsoft.FeatureManagement</a> nuget<br> <a href="https://github.com/benaston/NFeature">Nfeature</a><br> <a href="https://github.com/SteveMoyer/nToggle">nToggle</a></li><li>Follow best practices — Many developers have been in your place earlier. Read around and research for issues they have faced and how they have overcome them.</li></ol><ul><li>If your project is just starting, its better to include or plan for feature toggling in future.</li><li>Have a standardized naming convention for the features.</li><li>Try to maintain one toggle to one feature. Don’t try to toggle several features with one toggle. Keep it simple. This might be annoying at first but you’ll be thankful later.</li><li>Remove toggles if you are not using them anymore.</li></ul><p>3. Documentation — Make sure you document what you are doing so that new members of your team can actually understand what you did.</p><p>If you need more information on feature toggling here’s a great article by Martin Fowler — <a href="https://martinfowler.com/articles/feature-toggles.html">Feature Toggles (aka Feature Flags) (martinfowler.com)</a></p><p>As with everything in life, you can make feature toggling your best friend or your worst enemy. Make sure you keep it under control.</p><p>Happy toggling!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d5fc1c0a0a8" width="1" height="1" alt=""><hr><p><a href="https://engineering.99x.io/feature-toggling-can-it-ever-be-pain-free-8d5fc1c0a0a8">Feature toggling — Can it ever be pain free?</a> was originally published in <a href="https://engineering.99x.io/">Engineering at 99x</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing data with Python and R in MS SQL Server — Part I]]></title>
            <link>https://medium.com/@prasadisenarathna/analyzing-data-with-python-and-r-in-ms-sql-server-part-i-9bdb176cbefb?source=rss-c3d163cfa20d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bdb176cbefb</guid>
            <category><![CDATA[mssql-server]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[r]]></category>
            <dc:creator><![CDATA[Prasadi Senarathna]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 13:38:20 GMT</pubDate>
            <atom:updated>2022-03-23T15:50:40.537Z</atom:updated>
            <content:encoded><![CDATA[<h3>Analyzing data with Python and R in MS SQL Server — Part I</h3><p>Python and R are two of the most widely used languages for data analytics. How many of you knew we could use Python and R in SQL Server? I didn’t. If I knew it earlier, my life would have been easier, especially when I had to spend hours using Excel and other external tools to carry out some analytical tasks for my past projects.</p><p>This article is published in relation to the webinar I did on the same topic — <a href="https://www.youtube.com/watch?v=MFCmZnNIqjw">Analyzing Data Using Python and R in MS SQL Server — YouTube</a></p><ol><li><strong>Common Practices Of Analyzing Data</strong></li></ol><p>As you might very well know, there are several stages we knowingly (or unknowingly) follow when analyzing data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*hDf4NgOsakBXDYs66ITnEg.png" /></figure><p>By using Python/R in MS SQL Server, we can carry out the tasks in the 3rd (Cleaning collected data) and 4th (Analyzing the data) phases (mostly).</p><p><strong>2. Issues faced when analyzing data in real world</strong></p><p>One of the main issues faced when working with data are compliance issues. Eg: HIPPA/GDPR</p><p>These violations occur mostly when you have to move data from one place to another.</p><p>In addition to this there are other data security concerns of maintaining access levels in different locations, storing data in multiple locations and in processing data in client computers.</p><p><strong>3. Why use MS SQL Server?</strong></p><p>Using MS SQL Server for data analytics is beneficial because of several reasons.</p><p>a. Increased data security.</p><p>b. A very familiar tool for almost all developers.</p><p>c. Greater scaling and optimization opportunities — From using a language optimized for data analytics AND from using a database optimized for data storage and retrieval.</p><p>d. Ability to perform data exploration, feature engineering, train and deploy models and make predictive analytics all inside MS SQL Server.</p><p><strong>4. R and Python in MS SQL Server</strong></p><p>R and Python in MS SQL Server isn’t exactly something new, but for some reason not widely known. It was introduced with MS SQL Server 2016 with R runtime and R services.</p><p><strong>5. How it’s helping to secure your data?</strong></p><p>a. Reduces data related privacy concerns when moving data from one location to another.</p><p>b. Ability to execute scripts within a secure framework including access levels managed by MS SQL Server. DBAs can manage the security and access levels from SQL Server side, while data scientists access the enterprise data under security layers. If a SQL query fails due to insufficient permissions, the R/Python script will also fail and only retrieve accessible data.</p><p>In my next article, I will include demo examples with sample code. See you soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bdb176cbefb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>