<?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 Nimesha Dilini on Medium]]></title>
        <description><![CDATA[Stories by Nimesha Dilini on Medium]]></description>
        <link>https://medium.com/@nimesha-dilini?source=rss-c720843ddb70------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Sq-qjK1ZfRyX7ezmfhpRAw.png</url>
            <title>Stories by Nimesha Dilini on Medium</title>
            <link>https://medium.com/@nimesha-dilini?source=rss-c720843ddb70------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 23:51:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nimesha-dilini/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[Future of User Interface Design]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://nimesha-dilini.medium.com/future-of-user-interface-design-947431fe90c0?source=rss-c720843ddb70------2"><img src="https://cdn-images-1.medium.com/max/1049/0*BgjktIJyl1WeNhXR.png" width="1049"></a></p><p class="medium-feed-snippet">The User Interface(UI) has played an incredible role over the past few decades. UI can be defined as every visual aspect of a smart device&#x2026;</p><p class="medium-feed-link"><a href="https://nimesha-dilini.medium.com/future-of-user-interface-design-947431fe90c0?source=rss-c720843ddb70------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://nimesha-dilini.medium.com/future-of-user-interface-design-947431fe90c0?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/947431fe90c0</guid>
            <category><![CDATA[usability]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[future]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Sat, 02 Apr 2022 09:04:41 GMT</pubDate>
            <atom:updated>2022-04-05T15:50:16.797Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Finding a suitable place to open a shopping mall in Delhi.]]></title>
            <link>https://nimesha-dilini.medium.com/finding-a-suitable-place-to-open-a-shopping-mall-in-delhi-daa6e90bcaaa?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/daa6e90bcaaa</guid>
            <category><![CDATA[delhi]]></category>
            <category><![CDATA[capstone-project]]></category>
            <category><![CDATA[data-scince]]></category>
            <category><![CDATA[coursera]]></category>
            <category><![CDATA[clustering]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 20:23:37 GMT</pubDate>
            <atom:updated>2021-08-26T20:23:37.411Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the final project that I have done for the Coursera Capstone Course.</p><p><strong>Introduction/ Business Problem</strong></p><p>The shopping mall is an emerging and lucrative business in India. However, the business demands the right strategic planning with financial and marketing planning. Shopping malls are getting tremendous popularity these days. And definitely, there are several reasons behind it. According to the retail industry experts, the demand for the mall will more increase in the coming years.</p><p>A business article presented that(<a href="https://nextwhatbusiness.com/shopping-mall-business/">How to Start a Shopping Mall Business In India — NextWhatBusiness</a>) when you are building a mall or shopping center, entire process starts with market research and ends with marketing and maintenance. First of all, you must do some market surveys or market research and then Finding the location and acquiring the land. Therefore, you should have a proper way to select a land for opening a shopping mall. You have to identify the competition and business opportunities.</p><p><strong>Objective</strong></p><p>The main goal of this research is to analyze and select the best locations in Delhi to open a new shopping mall. Data science and machine learning techniques like clustering can be used in this case. foursquare location API used to get venue details. Therefore, the project gives the solution to answer the business question: When a businessman looking for a land to a shopping mall in new Delhi, where would you recommend opening it?</p><p><strong>Data</strong></p><p>For finding an answer to the above problem, we have to use following datasets,</p><p>- List of boroughs and neighborhoods dataset with longitudes and latitudes and</p><p>- Venue data of shopping malls in the Delhi area (use the foursquare API to find all types of restaurants within a 1000-meter radius for every neighborhood.)</p><p><strong>Sources of Data:</strong></p><p>The List of boroughs and neighborhoods dataset was taken form Kaggle. (<a href="https://www.kaggle.com/shaswatd673/delhi-neighborhood-data">Delhi Neighborhood Data | Kaggle</a>)</p><p>This has 4 columns namely, Borough, Neighborhood, latitude and longitude.</p><p>The Foursquare Places API provides location-based experiences with diverse information about venues, users, photos, and check-ins. The API supports real time access to places, Snap-to-Place that assigns users to specific locations, and Geo-tag.’(Wikipedia)</p><p>Here we are using the explore API call and filtering the search only to find venues that are identified as restaurants.</p><p><strong>Methodology</strong></p><p>1. Loading Dataset</p><p>First, I had to find a neighborhood data set for Delhi. Fortunately, I founded a dataset from Kaggle. I have read that csv file using pandas. There were some NaN values. Therefore, I have dropped rows with null values. These neighborhood data visualized in a map using Folium library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAFdJXdoCrOBh5F9YUreGA.png" /><figcaption>Delhi neighborhood locations</figcaption></figure><p>2. Explore Venues by using Foursquare API</p><p>The Foursquare API allows application developers to interact with the Foursquare platform. The API itself is a RESTful set of addresses to which you can send requests. Top 100 venues that are within radius of 2000 meters are retrieved using Foursquare API. There you need to have a Foursquare developer account and obtain the Foursquare ID and Foursquare secret key for making API requests. Then we can make API calls by passing the list of neighborhoods by using a python loop.</p><p>Foursquare return venue data in JSON format and we have to extract the venue name, venue category, venue latitude and venue longitude. Then we can check how many venues are returned for each neighborhood and examine how many unique categories can be found.</p><p>3. Analyze Venues.</p><p>One hot encoding is applied to venues of neighborhood. Each neighborhood is analyzed by taking the mean frequency of occurrences of each venue category. These processing are done to prepare data for K-Means Clustering. Since the problem interested in ‘Shopping Mall’, filtered the neighborhood with ‘Shopping Mall’ venues.</p><p>4. K — Means Clustering on Data</p><p>we need to cluster all the neighbourhoods into different clusters. The results will allow us to identify which neighbourhoods have a higher concentration of shopping malls while which neighbourhoods have a fewer number of shopping malls. Based on the occurrence of shopping malls in different neighbourhoods, it will help us answer the question as to which neighbourhoods are most suitable to open new shopping malls.</p><p>We set the number of clusters to 3 and run the algorithm. After applying the K-Means clustering algorithm, all the neighbourhoods get segregated and form different clusters.Here the Shopping Mall column represents the number of shopping malls in that particular area and Cluster Labels represents the cluster number (either 0 or 1 or 2)</p><p><strong>Results</strong></p><p>There 125 places in Cluster 1 and that is the cluster with highest number of places. Cluster 0 have 32 places and Cluster 2 having only 6 places. Cluster 0 represents which do not have shopping malls. That means there we can see <em>32</em> places which do <em>not have shopping malls</em>, <em>125</em> places <em>having one shopping mall</em> and <em>6</em> places with <em>2 or more shopping malls</em>.</p><p>The results from the K-means clustering show that we can categorize the neighbourhoods into 3 clusters based on the frequency of occurrence for “Shopping Mall”:<br> • Cluster 0: Neighbourhoods with very a smaller number of shopping malls<br> • Cluster 1: Neighbourhoods with a moderate concentration of shopping malls<br> • Cluster 2: Neighbourhoods with a high concentration of shopping malls</p><p>In the following graph Cluster 0 is in red color, Cluster 1 in purple color and Cluster 2 in mint green color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*aAqRMd6fMOomi73o2U_xlw.png" /><figcaption>Final Clusters according frequency of having shopping malls</figcaption></figure><p><strong>Discussion</strong></p><p>Most of the shopping malls are concentrated to the center of Delhi. You can see there have at least one shopping mall in most of the neighborhoods. Only 32 neighborhoods not having a shopping mall. There is a lack of opportunities to start a shopping mall. But we can select a neighborhood from cluster 0. For that we have to consider more attributes like population of that areas to get a clear decision. But with the available data final conclusion the opportunities to start a shopping mall in Delhi is very less. But this conclusion may vary when considering some more factors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa6e90bcaaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ScholarX Diaries 01- My Journey as a mentee & the best way to track your progress.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://nimesha-dilini.medium.com/scholarx-diaries-01-my-journey-as-a-mentee-the-best-way-to-track-your-progress-47fd7f91e7ef?source=rss-c720843ddb70------2"><img src="https://cdn-images-1.medium.com/max/800/0*lknZSzpuDDApwHzD" width="800"></a></p><p class="medium-feed-snippet">This is the first blog to share my last 2 months experiences as a mentee in the ScholarX program 2021. It a 6-month program for Sri-Lankan&#x2026;</p><p class="medium-feed-link"><a href="https://nimesha-dilini.medium.com/scholarx-diaries-01-my-journey-as-a-mentee-the-best-way-to-track-your-progress-47fd7f91e7ef?source=rss-c720843ddb70------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://nimesha-dilini.medium.com/scholarx-diaries-01-my-journey-as-a-mentee-the-best-way-to-track-your-progress-47fd7f91e7ef?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/47fd7f91e7ef</guid>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[mentoring-programs]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[scholarx]]></category>
            <category><![CDATA[scholarx2021]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Sun, 11 Jul 2021 17:44:48 GMT</pubDate>
            <atom:updated>2021-07-11T17:44:48.624Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Online Exams Cheating Detection]]></title>
            <link>https://nimesha-dilini.medium.com/online-exams-cheating-detection-6e24455e40d0?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e24455e40d0</guid>
            <category><![CDATA[online-exam]]></category>
            <category><![CDATA[literature-review]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[research-paper]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Fri, 18 Jun 2021 09:10:28 GMT</pubDate>
            <atom:updated>2021-06-18T09:10:28.435Z</atom:updated>
            <content:encoded><![CDATA[<p>Online education is important in the COVID-19 pandemic, but online exam at individual homes invites students to cheat in various ways, especially collusion. Researches has proved that 43% of graduate students, 68% of undergraduate students, and 95% of high school students are cheated on assignments or exams. Therefore it was really hard to prevent cheatings in online exams. 🤔</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dp0YY5OZAjMfMo0o.jpg" /></figure><p>The online exam cheatings can be categorized into 2 areas as cheating on authenticating to exam and cheating while the exam is in progress. When examinee authenticating to the exam their identity should be verified to avoid false entry to exams. But the hardest part is observing cheating during an online exam. The examinee use many tricks such as refer physical notes, google answers, use their mobile phones, asking help from another person to cheat in online exams.</p><p>Researches has shown different approaches to detect the online exams cheatings. Let’s have a look into some of the research papers regarding online exam proctoring.👉📝</p><ol><li><strong>E-exam Cheating Detection System</strong></li></ol><p>This research paper published on IJACSA Journal in 2017. It investigated the methods used by students for cheating detection in online exams investigated an online proctoring techniques. E-exam management system is proposed to investigate cheating in online exams using Fingerprint Reader to authenticate the examinee, and Eye Tribe Tracker to continuously guarantee that the examinee is the one who is claiming to be.</p><p>Set of sample data collected on average time out of screen and average number of times out of the screen and predicted the label as cheating or non-cheating by plotting and classifying data.</p><p>That solution can be implemented over the web for remote exams. The research paper not handling the case of students with special needs. The research paper has stated some future works such as improving the continuous authentication with voice print , face authentication and use of keystrokes as continuous authentication after start an exam.</p><p><strong>2. A Visual Analytics Approach to Facilitate the Proctoring of Online Exams</strong></p><p>This research paper was published in 2021 at Proceeding of CHI conference. The main aim of this research paper is to present a novel visual analysis approach to proctor online exams by analyzing the exam video records and mouse movement data.</p><p>The presented solution detects and visualizes the suspected head (ex: abnormal head rotation, face disappearance from the screen) and mouse movements ( copy and paste, moving the mouse out of the exam web page). The related works were categorized in to three parts : online proctoring methods, mouse movement visualization and head pose analysis. This approach combines human efforts with machine learning techniques for the better accuracy. They have designed a rule based suspected case detection engine to identify suspected cases from video, mouse movements and further estimates the risk of cheating with mathematical calculations. The effectiveness and usefulness of the presented solution was evaluated under 3 different usage scenarios.</p><p>This research paper presented some limitations of their solution. Types of cheating cases in their dataset are limited but in real online exams, there are more advanced methods of cheating. For example, using an earphone to listen to answer. Another limitation is the data collection is conducted in the strictest closed-book setting.</p><p>As future works they planned to improve their approach for real-time proctoring and further evaluate our system in real world online exams.</p><p><strong>3. Automated Online Exam Proctoring</strong></p><p>Above research paper was published in 2015 at IEEE research papers. It presented a multimedia analytics system that performs automatic online exam proctoring using webcam, wear cam, and microphone.</p><p>The presented system includes six basic components that continuously estimate the key behavior cues: user verification, text detection, voice detection, active window detection, gaze estimation and phone detection. Those features are processed and send to a SVM cheat classifier for getting a cheat decision.</p><p>The paper discussed limitations of the solution. It states that they can apply more advanced algorithms for each component, such as the deep learning-based feature representation, typing-based continuous authentication ,face alignment-based pose estimation , upper body alignment, and model personalization, pen detection etc.</p><p><strong>4. An Intelligent System For Online Exam Monitoring</strong></p><p>This research paper was published in 2016 at IEEE research papers. It presented a comprehensive multi modal system to proctor exams. The inputs from webcam audio, video and active window capture are send to an intelligent rule based inference system to decide if any cheatings happening.</p><p>Examinee’s face detected through feature extraction and estimate the head pose to detect cheatings through yaw angle variations, audio presence and active window capture. The proposed system evaluated by comparing malpractice detection using real proctoring vs proposed system.</p><p>But it presented a limitation. At the moment, the scope of the project is restricted to a single student scenario. As future improvements it presented that the system can also be implemented using the new video capturing tools such as Bullet Camera, Wireless IP Camera etc.</p><p><strong>5. Online Examination System with Cheating Prevention Using Question Bank Randomization and Tab Locking</strong></p><p>This research paper was published on 2019 at 4th InCIT. There are limitations and dependency on the quality of internet service for proctoring exams online. Therefore this paper identify the root cause of academic malpractice and presenting an approach to randomize questions and locking the tabs to minimize cheatings. Finally, the validation done by the focus group respondents and end users for effectivity and usability.</p><p>The exams are randomized based on fixed weights with the difficulty level of the questions for each examinee is assumed un-changed. That was a limitation of the presented approach. This research presented some future improvements such as including gaze tracking to proctor exams, comparing and visualize the scores of quizzes that will help the proctor to determine what quizzes performed badly.</p><p>Online exams have become increasingly popular for course instructors to assess the knowledge of students or other test takers. However, it remains unclear on how to conveniently and effectively proctor online exams. With the literature review of above five papers we can conclude that still the online examination cheatings needs to be improved in the future. ✨✨✨</p><p><strong>References</strong></p><ol><li><a href="https://pdfs.semanticscholar.org/2038/12c144b2816cca361a9adde0724737b60955.pdf">E-exam Cheating Detection System (semanticscholar.org)</a></li><li><a href="https://dl.acm.org/doi/abs/10.1145/3411764.3445294">A Visual Analytics Approach to Facilitate the Proctoring of Online Exams | Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems (acm.org)</a></li><li><a href="https://ieeexplore.ieee.org/abstract/document/7828141">Automated Online Exam Proctoring | IEEE Journals &amp; Magazine | IEEE Xplore</a></li><li><a href="https://ieeexplore.ieee.org/abstract/document/7845315">An intelligent system for online exam monitoring | IEEE Conference Publication | IEEE Xplore</a></li><li><a href="https://ieeexplore.ieee.org/abstract/document/8912065">Online Examination System with Cheating Prevention Using Question Bank Randomization and Tab Locking | IEEE Conference Publication | IEEE Xplore</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e24455e40d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Identity Verification]]></title>
            <link>https://nimesha-dilini.medium.com/identity-verification-49d3d3186f33?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/49d3d3186f33</guid>
            <category><![CDATA[verification]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[identity-ver]]></category>
            <category><![CDATA[biometrics]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 10:08:42 GMT</pubDate>
            <atom:updated>2022-01-22T12:04:11.436Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Identity Verification?</h3><p>Identity verification is a<strong> </strong>necessary process that ensures a person’s identity matches the one that is supposed to be.</p><p>It ensures that there is a real person behind a process and proves that the one is who he or she claims to be, preventing both a person from carrying out a process on our behalf without authorization, and creating false identities or commit fraud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IxBP7-_8MLhgS7TY.png" /></figure><p>When the organizations growing fast they need an IDV technology to identify their customers and reduce fraud risks. There are various methods and systems for identity verification. ID verification can be either electronic/automated or traditional/manual, which makes the process look different depending on which method is used.</p><h3>Regulations and standards in identity Verification</h3><p>Know Your Customer (<strong>KYC</strong>) and Anti-Money Laundering (<strong>AML</strong>) <em>rules </em>are driving the development of identity verification techniques throughout the world. These rules are mainly seen in financial sectors (banking applications). For example, the Financial Crimes Enforcement Network (FCEN) is one of the many agencies responsible for regulating identity verification methods in the United States.</p><h4>KYC</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/0*jMr_D6J3fX8fqA0k.png" /></figure><p>KYC or “Know Your Customer” can be defined as the process of verifying a customer’s identity. In KYC, each client is required to provide credentials such as ID documents in order to use a company’s service.</p><p>KYC practices can be developed both offline (in person) and online (remotely). Here is where we can discern KYC evolution towards <strong>eKYC (Electronic Know Your Customer)</strong>. (more details: <a href="https://www.electronicid.eu/en/blog/post/what-is-ekyc/en">https://www.electronicid.eu/en/blog/post/what-is-ekyc/en</a>)</p><h4>AML</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bozCuPyO_uEjhGdt.jpg" /></figure><p>AML practice is broader than KYC, and it refers to measures used by financial institutions and governments to prevent and combat financial crimes especially money laundering and terrorism financing.</p><h4>Identity Verification Techniques</h4><ol><li>Knowledge Based Authentication (KBA): verifies a person’s identity by requiring an answer to security questions. These questions are generally designed to be easy for that person to answer, but difficult for anyone to answer.</li><li>Two- Factor- Authentication : verifies the person’s identity by using 2 forms of identification methods. Most of the times these 2 factors are in the form of something you know and something you have. As an example, the first factor is a password and the second commonly includes a text with a code sent to your smartphone, or bio metrics using your fingerprint, face, or retina.</li><li>Database Methods: This method uses data from a variety of sources to verify someone’s identity. It may include online databases from social media(Facebook, google, LinkedIn) as well as offline databases (organization databases).</li><li>Online Verification: This method verifies a user by government issued ID with the bio-metric features. This verification method typically requires users to provide a picture of themselves holding an ID, thus ensuring the person on the ID is the same person holding the ID.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gi1xl6wgcE5uXWou.png" /><figcaption>Image Source : ID check.io , ID verification Service</figcaption></figure><h3>Identity Verification Vendors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U5aVyArx196jzwoP.png" /></figure><p>In the current world the security and privacy are the biggest concerns for most companies. So there are may companies and systems that provides the Identity Verification facilities for companies. I have listed some of those.</p><h4>1. IDEMIA- Augmented Identity :</h4><p>Idemia ensures the security of payment services in financial sector by using bio metric authentication and verification. It provides many sub services under for mobile user on boarding &amp; authentication and bio metric authentications. The main verification technologies they provide are , ID document, Fingerprint, Selfies (compared with the ID doc), Video, Behavioral analytics, voice etc;</p><h4>2.Jumio</h4><p><strong>“Jumio</strong> is an online mobile payments and identity verification company that provides card and ID scanning and validation products for mobile and web transactions, which they sell as “Netverify Trusted Identity as a Service”.<strong>”-</strong> <em>Wikipedia. </em>Some features and functionalities of Jumio are Jumio Id Verification, Jumio Go, Jumio transaction monitoring, Document Verifications, Jumio Authentication (ith biometric, KBA, 2FA) etc;</p><h4>3.OnFido</h4><p>OnFido are Experts in fraud<strong> </strong>and AI and Bio metric Customer Authentication It protect against stolen IDs and impersonation by using a score based similarity check for image in id and selfie image. Key Services of OnFido are Document Verification , Bio metric verification (combining a person’s ID with their physical biometrics, selfies, videos) , Age Verification and Fraud Detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j4W8bsYoqYdjIUO8.png" /></figure><p>Other than above, There are many Identity Verification Service providers like <strong>Acuant</strong>, <strong>socure</strong>, <strong>ID.Me,</strong> <strong>Experian</strong>, <strong>Caisson ID check</strong> etc;</p><p>As a conclusion let’s look at what are the main benefits of Identity Verification. Main advantages are it maintains and improves the reputation of company or service, avoid costly fines, avoid costly charge backs, Avoid Fraud and Money Laundering Concerns, Improve Customer Experience etc.</p><p>Thank you all for reading my article on identity verification. I look forward to meeting you in another interesting article.😎️</p><h4>Resources:</h4><ul><li><a href="https://www.electronicid.eu/en/blog/post/identity-verification/en">What is identity verification and how it works</a></li><li><a href="https://www.microbilt.com/news/article/top-5-identity-verification-methods">Top 5 Identity Verification Methods</a></li><li><a href="https://em360tech.com/continuity/featured/top-10-identity-verification-software-solutions">Top 10 Identity Verification Software</a></li></ul><p><a href="https://getid.ee/benefits-of-identity-verification/">https://getid.ee/benefits-of-identity-verification/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49d3d3186f33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Send Image Files in an API POST request]]></title>
            <link>https://nimesha-dilini.medium.com/send-image-files-in-an-api-post-request-aa1af1c4a7fb?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa1af1c4a7fb</guid>
            <category><![CDATA[request]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[multipart-form-data]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[mime-types]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 06:37:35 GMT</pubDate>
            <atom:updated>2022-01-22T12:05:52.272Z</atom:updated>
            <content:encoded><![CDATA[<p>API(Application Programming Interface), it technically refers to a robust set of procedures, tools, and protocols that permit the interaction between web applications. It is an intermediary that delivers a client’s request to the server and then returns a response to the client.</p><p>First we will look at what is <strong>MIME type</strong>❓️A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) is a standard that indicates the nature and format of a document, file, or assortment of bytes. The simplest MIME type consists of a type and a sub-type and An optional parameter can be added to provide additional details:(type/subtype;parameter=value)</p><p>There are two classes of type: <strong>discrete</strong> and <strong>multipart</strong>. Discrete types are types which represent a single file or medium, such as a single text or music file, or a single video. A multipart type is one which represents a document that’s comprised of multiple component parts.</p><ul><li>Discrete Types: application, audio, font, image,model, text, video etc</li><li>Multipart types: Mainly 2 types as message(ex: message/partial),multipart(ex:multipart/form-data)</li></ul><p>When we need to send an Image file to an API request there are many options. I will explain some of those methods to send an Image by using the postman.</p><p>Option 1:<strong> Direct File Upload </strong>, From this method you can select form-data and set the type to file. Then select an image file by clicking on the button shown in the value column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*zkhrh5G1vY2LQBTX.jpeg" /></figure><p>The content type is automatically detect by postman but if you want you can set it with a relevant MIME type.(image/gif, image/jpg, image/png ..etc.)</p><p>Option 2: Send as a <strong>Base64 String</strong>, In this method you can send the base64 string as a JSON string with the requests. Base64 is a way to encode binary data into an ASCII character format by translating it into a radix-64 representation. I recommend you that never use Base64 for large file/data upload to server because it’s convert whole data and post it to server.</p><p>ex:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*SqoPqL-AzAC899Hv.png" /></figure><p>Option 3 : By using <strong>Multipart</strong></p><p>How to send a post request if you have more than one file? How to send a very large file in a post request? The answer is using the multipart content-type.</p><p>Let’s look at how we can send image files by using multipart. Multipart is a way to upload file/data to server in the form of part which are in bytes. Multipart/form-data is applied to a form though, so you can send everything in a multi-part form, including “regular” data also.</p><p>If you need to send a JSON file containing meta data along with the image file you can use this method. In the case of sending large files you can divide the file into multiple parts and send it as below.</p><p>Ex: Here you can see how to send a jpeg file along with a plain text file. The content-type is stated as multipart/form-data and it’s boundary parameter is set to a value ‘Boundary_2_bHash_bTimestamp’. When sending the request this boundary value is added to the start of the full content, end of the full content and end of each part of files included in the request (seen in the request below)</p><pre>POST /platform/memories/memories<br>Content-Type: multipart/form-data; boundary=Boundary_2_bHash_bTimestamp<br>Authorization: Bearer YOUR_ACCESS_TOKEN_HERE<br>MIME-Version: 1.0</pre><pre>--Boundary_2_bHash_bTimestamp<br>Content-Type: text/plain<br>Content-Disposition: form-data; name=&quot;title&quot;</pre><pre>Missionary Portrait<br>--Boundary_2_bHash_bTimestamp<br>Content-Type: image/jpeg<br>Content-Disposition: form-data; filename=&quot;alma-mission.jpg&quot;; name=&quot;artifact&quot;</pre><pre>...(binary bytes of the image)...<br>--Boundary_2_bHash_bTimestamp--</pre><p>How we can do this with postman? You just need to add your files to the form-data. Thank to postman we don’t need to set content types, the content-types and boundary is automatically detect by postman.</p><p>ex:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4gcV6ZIAG8vNwQLN.png" /></figure><p>Base64 image vs Multipart request:</p><p>Base64 image</p><ul><li>Base64 converts your data to an ASCII representation of the binary data.</li><li>Base64 increases the size of the data transferred by 33%.</li><li>Base64 image representation can be directly placed within html to render an image.</li></ul><p>Multipart request</p><ul><li>Multipart/form-data is the standard way of transferring binary data in HTTP requests.It allows you to use specific encoding / content types for each part you’d like to transfer.</li><li>Binary takes up less space. And benefits from greater network effects and standardization. E.g. if you want to use amazon simple secure storage S3 you have to store a binary file. You can’t store a string you would need a key/value store e.g. redis.</li></ul><p>It’s easier to send these requests by using postman. Also you can send these requests by using the Curl. I thank you all for reading this article and if you have anything to improve on it please leave me a comment.😊️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa1af1c4a7fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Internship Diaries: 1st contribution to Wso2 Identity Server]]></title>
            <link>https://nimesha-dilini.medium.com/internship-diaries-1st-contribution-to-wso2-identity-server-792688fd0d61?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/792688fd0d61</guid>
            <category><![CDATA[intenship]]></category>
            <category><![CDATA[scim]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[wso2is]]></category>
            <category><![CDATA[wso2]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 11:32:13 GMT</pubDate>
            <atom:updated>2020-11-04T11:32:13.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hvt1PsbXZxrf8o42.jpg" /></figure><p>I had a dream to work for a company like Wso2 and learn a many things and improve my professional skills. Fortunately I have been working as an intern for the past 2 weeks now. I had to start work from home because of the Covid-19 pandemic situation. I was little sad of missing the company premises , But work from home also a really good experience for me. After a week-long orientation program, I had to choose a project and I got two mentors who really supportive. In the 2nd week I went through the Wso2 IS product and learned it. I’m now in the 3rd week of my internship. Before making contributions I had to understand the current product architectures and frameworks. It was a little hard for me. but with the support of my mentors, I was able to understand those things.</p><p>Then I was assigned to an issue in the product-is. Initially I got fully confused because I never work with such enterprise level products. But I got to understand the issue with the guidance and directions of mentors.</p><p>The Issue I was assigned was to write test cases for SCIM2 pagination tests. The SCIM API can be called in order to perform various tasks in the WSO2 Identity Server. For simplicity, cURL commands are used to send CRUD requests to the REST endpoints of Identity Server. WSO2 Identity server supports inbound provisioning based on both SCIM 1.1 and SCIM 2.0. Inbound provisioning means provisions users or groups into the WSO2 Identity Server by an external application. These external applications are referred to as service providers. WSO2 Identity Server supports the ​SCIM​ API and SOAP-based Web service APIstandards for inbound provisioning.First I gone through the SCIM2 documentation and tested SCIM2 REST APIs to get an understanding. (<a href="https://is.docs.wso2.com/en/5.11.0/develop/scim2-rest-apis/">https://is.docs.wso2.com/en/5.11.0/develop/scim2-rest-apis/</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*jPWemxNmNCHjV-a1" /></figure><p>I have gone through the current test implementations and tried to implement new test cases. I had only a simple understanding about test frameworks but I learned a lot from exploring and referring the implementation of those tests. I learned to work with testng and implement better test cases. One time I blocked with an error and I asked from the mentors and my intern colleagues for help. They were so kind enough to spend their time for helping me. The errors I got because of mistakenly added multiple admin configurations for the data provider .So that I couldn’t able to pass my test cases. I finally figured out it and successfully build with test cases. Today I have commit new test cases and send a pull request to product-is. Although this is a small contribution, I am happy to contribute to it and it’s a really amazing experience for me. Again I would like to thank the mentors and my intern colleges, and hope to continue to share my experience as a blog during the 6 months of internship.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=792688fd0d61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Licensing]]></title>
            <link>https://nimesha-dilini.medium.com/software-licensing-3f0256c1610f?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f0256c1610f</guid>
            <category><![CDATA[software-licensing]]></category>
            <category><![CDATA[licensing]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 12:18:58 GMT</pubDate>
            <atom:updated>2020-09-08T12:18:58.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LssBgI4Q7enVAk86.jpg" /></figure><h3>What is Software Licensing?</h3><p>Software licensing describes the legal rights pertaining to the authorized use of digital material. Failure to adhere to software license agreement terms often incurs criminal charges related to licensed intellectual property (IP) and copyrighted material.</p><p>Simply that is an agreement between you and the owner of a software program that allows you to do certain things that would otherwise be an infringement of copyright law.</p><p>The software license usually answers questions such as,</p><ul><li>Where and how and how often can you install the program?</li><li>Can you copy, modify, or redistribute it?</li><li>Can you look at the underlying source code?</li><li>Duration? etc.</li></ul><h3>Types of Licenses</h3><p>The spectrum of rights granted by various licenses is shown in the following diagram by Mark Webbink, ex-General Counsel at Red Hat:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yvw8CPGSb_-ZLz0n.png" /></figure><p><strong><em>1.Trade Secret</em></strong></p><p>A trade secret is a valuable form of intellectual property that is used when an owner seeks protection that is provided by other forms of property rights, such as those bestowed by a patent, but does not want the components of the property made public. In most cases, a trade secret provides the owner with a competitive advantage over other companies or individuals.</p><p>Although often referred to as a patent, because, as is often the case with a patent, they protect a process, trade secrets are not a patent, and thus a trade secret agreement does differ from a patent.</p><p>Categories in a trade secret agreement are :</p><ul><li>License terms</li><li>Payment terms</li><li>General terms</li></ul><p><strong><em>2. Proprietary License / End User License Agreement (EULA):</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/0*uPbAiQifSQBeI5sP.jpg" /></figure><p>EULA stands for an End-user License Agreement (also called Software License Agreement (SLA ), or Licensed Application End-User Agreement). Generally, EULA is a legally binding agreement between the owner of a product (often software) and the end-user , more specifically a contract between the licencor of a product and the licensee.</p><p>One of the most widely known proprietary software pieces are Microsoft Windows, macOS, iTunes.</p><p><strong><em>3.Protective FOSS (Free and Open Source Software)License / Copyleft</em></strong></p><p>A software could be called free and open source in case its source code is publicly available and distributed for free for any field of endeavor.</p><p>protective licenses force the author of derivatives or re-distributor of the software to open the modified code.Such licenses oblige the derivatives of copyleft license to be placed under copyleft too.</p><p>Most popular copyleft licence are:</p><ul><li>GPL-General Public License</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*UNrP7bL7qci9Gz4l.png" /></figure><p>It is the most commonly used free software license. It was written by Richard Stallman of Free Software Foundation for GNU Project. This license allows software to be freely used, modified, and redistributed by anyone. WordPress is also released under the GPL license, which means that WordPress is an open source software that can be used, modified, and extended by anyone.</p><ul><li>Mechanical</li><li>Eclipse Public License 1.0</li><li>Mozilla Public License 2.0</li><li>Open Software Licence 3.0</li></ul><p><strong><em>4. Non-protective FOSS License</em></strong></p><p>These licenses do not protect the code from being used in non-open source apps and apply no restrictions on the derivatives. Some of them, however, require attribution. Permissive licenses have larger compatibility than protective ones, which cannot be blindly combined and mixed.<br>Here are a few examples of non-protective licenses, which could be safely used for development purposes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*ffts_Id_onZg1mgy.png" /><figcaption>The MIT License</figcaption></figure><p>The MIT license is a free software license created by the MIT(Massachusetts Institute of Technology). Being a permissive license, it puts very limited restrictions on reuse, which means it has great license compatibility.</p><p><em>Examples of software under this license:</em> Angular, Sass, Bootstrap, JQuery, InfluxDB, NodeJS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*mA4ZuEvFeB6z_ra-.png" /><figcaption>The BSD License</figcaption></figure><p>The BSD license is imposing minimal restrictions on the use and redistribution of covered software. Unlike the copyleft licenses, with reciprocity share-alike requirements, the BSD license is a simple license that merely requires all code licensed under the BSD license to be licensed under the BSD license if redistributed in source code format.</p><p><em>Examples of software under these licenses:</em> Django, ReactJS, Scala, Go, Falcon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*rROiWLR2Jrpb6KEW.png" /><figcaption>The Apache 2.0 License</figcaption></figure><p>It is written by the Apache Software Foundation, also allows freedom in use and distribution of software under it, with the preservation of copyright notice and disclaimer. It also allows the user of the software the freedom to use the software for any purpose, modify it, and distribute the modified versions of the software, under the terms of the license, without concern for royalties.</p><p><em>software under this license:</em> Apache products, Android OS, Docker, BeanShell, Kotlin.</p><p><strong><em>5. Public Domain License</em></strong></p><p>Public domain equivalent license belongs to the licenses that grant public-domain-like rights or/and act as waivers. They are used to make copyrighted works usable by anyone without conditions while avoiding the complexities of attribution or license compatibility that occur with other licenses.(Wikipedia)</p><p>Examples for public domain like license are:</p><ul><li>Zero/public domain (CC0):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*6zV1UT8cE_1IKblN.png" /></figure><p>It’s a copyright wavier and public-domain-like license. CC0 was created to boost the compatibility with legal domains which have no concept of dedicating to the public domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*dGT3kiKkuE_olmny.png" /></figure><p>WTFPL license , a public-domain-like license</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*6c6abymPH-NVckrK.png" /></figure><p>Unlicense, a copyright waiver and public-domain-like license</p><p>Managing your licenses efficiently with your customers leads to understanding your customers better, which then helps you grow your revenue as a software developer. It also protects your product against losses occurred from piracy.</p><p>There are, however, different types of licenses available and that’s where it can get more complicated. Using a dedicated Software Licensing service can help you to focus on building great products, manage the type of license you want to offer, and protect your intellectual property.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f0256c1610f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethical whistle-blowing]]></title>
            <link>https://nimesha-dilini.medium.com/ethical-whistle-blowing-ccc95c3108de?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc95c3108de</guid>
            <category><![CDATA[whistleblower]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[whistleblowing]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 19:00:03 GMT</pubDate>
            <atom:updated>2020-07-24T19:00:03.915Z</atom:updated>
            <content:encoded><![CDATA[<p>What you can do when you found something wrongdoing in your company ❓</p><p>🤔I need to do something. 💡 whistle-blowing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*RxtdSo3YNAErHa08.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RF6klnWwBD9E4CPN.jpg" /></figure><p>Simply whistleblowing is the term used when a person passes on information on wrongdoing such as corruption. It also referred to as “blowing the whistle” or “making a disclosure”.</p><p>A person associated with an organization(maybe an employee, supplier, or customer) becomes a whistle blower when they observe behavior or actions that they believe to be misconduct, illegal and not in line with the company’s code of conduct and report that suspicion as a whistleblowing matter.</p><p><strong><em>Types of Whistleblowing</em></strong></p><ol><li><em>Internal whistleblowing</em>: is made to someone within the organization</li><li><em>Personal whistleblowing</em>: is blowing the whistle on the offender. Here the charge is not against the organization or system but one individual.</li><li><em>External whistleblowing</em>: for an external issue not directly affecting one as an individual.</li></ol><p><strong><em>When to Blow the whistle </em></strong>🤔 ❓</p><ul><li>Knowledge of inappropriateness. Ex: making pro-priority software available to the public, booby-trap in code, misuse of funds, etc.</li><li>Bad claims. Ex: Unrealistic date projection, Advertising hype.</li><li>Knowledge of impending doom</li></ul><h3>Elements of Ethical Whistle blowing 🎲</h3><ol><li><strong><em>Ensure the Anonymity of the whistle blower</em></strong> : Potential whistle-blowers need to be assured there will be no workplace repercussions, including informal ones, and anonymity is the surest way to achieve that.</li><li><strong><em>Make reporting easy</em></strong> : This may be something like a hotline or helpline with a toll free number that is prominently included in the workers’ orientation and routine communications with the organization.</li><li><strong><em>Establish consistent protocols across all departments</em></strong><em> </em>: Every unit in the organization should be on the same page regarding fraud reporting. It is useful to have a single manager who is identified as a fraud prevention leader.</li><li><strong><em>Be prepared to act when fraud is detected </em></strong>: If you determine that it is likely that fraud occurred you should have a plan for responding that includes who should receive the report and what steps they take to determine a response.</li><li><strong><em>Report to authorities appropriately</em></strong> : Legal authorities should be involved when appropriate and in a consistent way dictated by policy guidelines.</li><li><strong><em>Set up recording and tracking processes</em></strong> : Each reported fraud should trigger a case file or incident report that collects relevant objective information and retains it in the system. Progress of each case from report to resolution should be included in the records.</li></ol><h3>Steps for Whistle-Blowing 🚪</h3><ol><li><strong><em>Hire a powerful attorneys:</em></strong> Hire a skilled lawyer with experience in handling whistle blower claims can advice legally to gather evidence against the employer and protect professional reputation.</li><li><strong><em>Make sure you have evidence :</em></strong> The government will not pay you a reward for bringing them questionable gossip of misdeeds, but rather specific proof, such as emails, internal studies, billing records, test results, names, contact information of involved parties, and other forms of documentary evidence.</li><li><strong><em>File a complaint</em></strong> : Whistleblowers must file a complaint in court and submit it to the federal government with a Disclosure Statement that details the suspected misconduct.</li><li><strong><em>Play the waiting game :</em></strong> If the government should decide to proceed forward with your case, it is important to be patient.</li><li><strong><em>Prepare to be “outed” </em></strong>: You have to prepare yourself to be “outed” and the consequences that it may bring. It’s recommended to search for a new job as soon as possible after filing a whistle blower claim.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/0*JKGpAhkzxJTaPOAq.jpg" /></figure><p>6.<strong><em> Be prepared to testify:</em></strong> If the government decides to take action against your employer based on the results of its investigation, you may be asked to testify at a grand jury proceeding or during trial. You must be prepared to reveal your identity, since your testimony may have a considerable impact on the outcome of the case.</p><p>At last, we have to improve and encourage whistleblowing within an organization by protecting them. Therefore, companies should give strong support to them by continuously monitor the whistleblower’s welfare, encourage the whistleblower to report any retaliation against him or her as well as ensure their job security.</p><p><strong>References</strong>: 📚📚📚</p><ul><li><a href="https://www.mondaq.com/whistleblowing/783628/what-is-whistleblowing">https://www.mondaq.com/whistleblowing/783628/what-is-whistleblowing</a></li><li><a href="https://blog.lowersrisk.com/whistle-blower-program/">https://blog.lowersrisk.com/whistle-blower-program</a>/</li><li><a href="https://www.attorneymahoney.com/blog/2016/july/a-guide-to-whistleblowing-claims-in-washington-d/">https://www.attorneymahoney.com/blog/2016/july/a-guide-to-whistleblowing-claims-in-washington-d</a>/</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc95c3108de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three-tier Architecture with Flutter]]></title>
            <link>https://nimesha-dilini.medium.com/three-tier-architecture-with-flutter-f8878dc9a6dc?source=rss-c720843ddb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8878dc9a6dc</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[layers]]></category>
            <category><![CDATA[file-structure]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Nimesha Dilini]]></dc:creator>
            <pubDate>Sun, 22 Dec 2019 11:53:40 GMT</pubDate>
            <atom:updated>2019-12-22T12:06:46.516Z</atom:updated>
            <content:encoded><![CDATA[<p>Three-tier architecture is one of the mainly used architecture for developing applications. This architecture is also known as N-tier architecture or multi architecture.</p><p>Developers use this method to keep the processing, data management, and presentation functions physically and logically separated. So that these different functions can be stored in separated host servers. This is very useful when scaling the application. In early days we have to copy whole application in every host machine to scale up it. But with this architecture different tiers can be hosted in separated machine to scale up the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*_jUa_Eq0InytKUJfmg64zA.jpeg" /><figcaption>How to scale up an application with 3 tier architecture</figcaption></figure><p>In three tier architecture these are the main layers,</p><ol><li><strong>Presentation tier : </strong>User Interface is implemented here. It is the top most layer. The function of this layer is to translate tasks and results into a form of that user can understand it. Ex: Console , GUI(Graphical User Interface)</li><li><strong>Logic tier:</strong> Also known as the domain layer. This tier contains all the business logic of the the application. Algorithms, Data manipulations are implemented here.</li><li><strong>Data tier: </strong>This tier store and retrieve data from database or file system. The data from this tier are send to logic layer for processing. API calls are also implemented in this tier</li></ol><p>The main Advantage of this architecture is , if we do a change in a tier then it is not affecting to other tiers.</p><h3><strong>Let’s look at how we can use this Three-tier architecture in Flutter application Development</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*TUcJm8eVdDcGadttW3bsMA.png" /><figcaption>Sample File Structure with three-tier architecture</figcaption></figure><p><strong><em>Presentation layer</em></strong> having the implementation of <strong><em>Widgets</em></strong>, <strong>Pages </strong>and <strong>Presentation Logic holders</strong> like BLoC , ChangeNotifiers etc;</p><p><strong>The domain layer</strong> consist of</p><ol><li><strong>usecases: </strong>The use cases consist of classes encapsulated the business logic of a particular business logic of application.</li><li><strong>entities: </strong>classes of business entities. Entities are vary from the models in data layer. Entities having the pure implementation of a class data. But in models it may contain some other methods like toJson , fromJson methods. Therefore model and entities should be kept separated.</li><li><strong>repository </strong>: The repository should be implemented in both the domain layer as well as the data layer. Because the repository interact with both of those layers.</li></ol><p><strong>The data layer</strong> consists of ,</p><ol><li><strong>Repository </strong>: to connect with the domain layer.</li><li><strong>Models : </strong>to handle json,xml data from the data sources. Convert those type of data to a form of class.</li><li><strong>DataSources: </strong>Interact with the databases and API. All the http requests ,handling cached data are performed here. This accepts raw data from different resources and send that raw data through a the model.</li></ol><p>By using this architecture flutter application can be scale up easily. It is easy when writing the test cases for each features.</p><p>Here is a simple flutter application implemented with clean architecture and Test driven development,</p><p><a href="https://github.com/EANimesha/flutter_clean_architecture_tdd">EANimesha/flutter_clean_architecture_tdd</a></p><p>It is very helpful for me to improve my knowledge if you can give me some feedback on this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8878dc9a6dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>