<?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 Ketan Bhavsar on Medium]]></title>
        <description><![CDATA[Stories by Ketan Bhavsar on Medium]]></description>
        <link>https://medium.com/@atketan?source=rss-ff9f59c73103------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qRv9DpKTpX13HJ1cQQhCmg.jpeg</url>
            <title>Stories by Ketan Bhavsar on Medium</title>
            <link>https://medium.com/@atketan?source=rss-ff9f59c73103------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 16:37:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atketan/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[REACH: Responsible Enterprise AI for Conversational Harmony — A Unified RAG Framework for ChatBots]]></title>
            <link>https://pub.towardsai.net/reach-responsible-enterprise-ai-for-conversational-harmony-a-unified-rag-framework-for-chatbots-01607150c237?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/01607150c237</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <category><![CDATA[marketing-technology]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Mon, 15 Apr 2024 18:02:07 GMT</pubDate>
            <atom:updated>2024-04-15T18:02:07.210Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>REACH: Responsible Enterprise AI for Conversational Harmony — A Unified RAG Framework for Enhanced User Experiences in ChatBots</strong></h3><p>I have been working on marketing technology solutions for more than a year now, and one of the most amazing parts of it is the speed at which technology adoption happens within the domain. Customer engagement has seen the fastest change in the last decade, starting from the advent of Call Centres to IVRs and rule-based ChatBots to WhatsApp Business. The next big thing in this area is AI-enabled engagement assistants — helping users to search, navigate, understand and navigate with ease the products and/or services landscape at any company. Although we know the benefits of this modern L3 support, it is still in a nascent stage and struggling to get mainstream for 2 reasons — data protection &amp; privacy and response correctness (brand language, tonality, non-offensiveness, inclusivity, hallucination, etc.). Based on my experience in the past year and after going through some amazing architectures, here I present a framework that could be used to mitigate these issues and build a dependable conversational experience powered by AI, christened REACH, an acronym for Responsible Enterprise AI for Conversational Harmony. It could be used to either build or buy conversational AI ChatBots that help with marketing, customer engagement, servicing and a lot more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_E_u6myqU2OEXCyH" /><figcaption>Photo by <a href="https://unsplash.com/@santesson89?utm_source=medium&amp;utm_medium=referral">Andrea De Santis</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the leagues of digital transformation, enterprises are increasingly introducing conversational AI’s to engage with their customers. However, all of them either call it an early adoption or a beta, and the user experiences reported are kind of similar. The responses have mixed feedback, and in most cases, the engagement is found to lack the human touch of empathy, trust, and transparency, which ultimately results in a lack of confidence in the brand and frustration. All of this could be avoided by implementing systems that push for privacy, fairness and transparency in the interactions. One way to do this is by calling out knowledge limitations, having the right persona, and providing clear answers.</p><p>REACH tries to address these concerns by building on the concepts of enterprise RAG to avoid hallucinations with an orchestrated layer of LLMs fine-tuned to ensure an inclusive, fair and engaging human-like conversation experience.</p><h3>Building Blocks for the REACH Framework —</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5quzKqDjUpeOTEJVXRedkg.png" /><figcaption><em>Figure 1. REACH Framework — Building Blocks for Enterprise Conversational Solutions</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QYn-RA-371oI0PPr" /><figcaption>Photo by <a href="https://unsplash.com/@soundtrap?utm_source=medium&amp;utm_medium=referral">Soundtrap</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>1. Engagement/UI Layer</strong></h3><p>The Engagement Layer serves as the interface between users and solutions built with REACH framework. It hosts of options available to engage with customers through either chat or voice interfaces hosted on owned platforms like Mobile Apps and website, or social media platforms like WhatsApp and Messenger.</p><p><strong>Components of the engagement interface –</strong><br><strong>a) Natural Language Understanding (NLU)</strong> — this helps in making the interactions feel more intuitive and conversational.</p><p><strong>b) Multi-Modal Support</strong> — with the growth of voice interfaces, it has become important to provide a way to engage with text and voice both on any customer support system. This helps with improving accessibility and accommodates rising user preferences.</p><p><strong>c) Context Aware</strong> — one of the reasons IVRs or dialog based ChatBots lose their appeal is the lack of maintaining context. By building on conversation history capabilities helps with keeping the chat context aware and the engagement cohesive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cZvdQCnQJB_bjEPd" /><figcaption>Photo by <a href="https://unsplash.com/@hannahwrightdesigner?utm_source=medium&amp;utm_medium=referral">Hannah Wright</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>2. Multilingual Conversation Module</strong></h3><p>Building for the world, truly means localising for multiple languages. This is especially true while building for a diverse country like India. To support this diversity of language interactions, while ensuring responsible and inclusive communication, REACH recommends this Multilingual Conversation Module as the second layer of engagement in the system.</p><p><strong>Key considerations for this module are </strong>—</p><p><strong>a) Language Diversity Adaptation</strong> — support for multiple languages means navigating the diversity of syntaxes, semantics and cultural nuances. The conversation system needs to ensure it can understand and respond appropriately in varying linguistic contexts.</p><p><strong>b) Improving Inclusivity in Language Processing</strong> — with the diversity and need to be more inclusive, REACH recommends techniques like language detection, language-specific models, and cross-lingual knowledge transfer to improve accuracy and cultural sensitivity.</p><p><strong>c) Seamless Integration for Cohesive Conversations</strong> — the Multilingual Conversation Support Module facilitates effortless communication across languages to uphold a consistent UX. It adapts responses to cultural nuances, promoting understanding and empathy in cross-cultural interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*34Mxc-EJ1ulNe1nt" /><figcaption>Photo by <a href="https://unsplash.com/@timmossholder?utm_source=medium&amp;utm_medium=referral">Tim Mossholder</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>3. Data Queries Planner</strong></h3><p>Another major part of a REACH powered conversational experience is its ability to answer any and all queries to the extent of its knowledge. This module is responsible for breaking down the input message into actionable data requests for the querying system. This will in turn ensure retrieval of relevant and accurate information.</p><p>There are 3 main aspects to the query planner, viz. — Accuracy, Efficiency and Privacy &amp; Fairness. Accuracy ensures reliable information, efficiency reduces latency, and privacy considerations safeguard user data and promote fairness.</p><p><strong>Strategies to optimize data retrieval while building queries for privacy and fairness </strong>—</p><p>a) <strong>Query Optimisation</strong>: Techniques such as query rewriting, indexing, and caching enhance the efficiency of data retrieval by minimizing redundant operations and maximizing the use of pre-computed results.</p><p>b) <strong>Privacy-preserving Data Retrieval</strong>: Methods such as differential privacy, data anonymization, and encryption are employed to protect sensitive information during data retrieval operations. These techniques ensure that user privacy is preserved without compromising the utility of retrieved data.</p><p><strong>Several real-world examples illustrating the effectiveness of the Data Queries Planner </strong>—</p><p>a) <strong>Personalized Recommendations</strong>: By optimizing data retrieval and incorporating user preferences, we can deliver personalized recommendations tailored to individual users’ interests and preferences. This enhances user satisfaction and engagement with the AI system.</p><p>b) <strong>Contextual Information Retrieval</strong>: The planner facilitates the retrieval of contextually relevant information based on the ongoing conversation, ensuring cohesiveness in conversations.</p><p>c) <strong>Privacy-preserving Data Access</strong>: In any public-facing interfaces, it is important to enable privacy-preserving techniques to retrieve information from sensitive data sources, such as personal user data or proprietary company information, without compromising confidentiality or data security. This ensures that users can interact with the AI system confidently, knowing that their privacy is protected.</p><p>The queries planner module helps align with the principles of responsibility and conversational harmony by prioritizing user privacy, ensuring data integrity, and promoting fairness in the retrieval system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZmWKQHyuC0GQ1K9Q" /><figcaption>Photo by <a href="https://unsplash.com/@hubistavern?utm_source=medium&amp;utm_medium=referral">нυвιѕ тανєяη</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>4. Knowledge Base (Vector Store) built for RAG</strong></h3><p>This is the heart of the REACH framework. This is where the magic happens and a perfectly harmonious conversational AI solution comes together. The knowledge base is nothing but a vector store that serves as a repository of structured and unstructured data both. It can have data ranging from text articles/pages, to audio podcasts and YouTube videos. The possibilities are endless.</p><p>The knowledge base is what enhances the overall effectiveness of the conversational AI system by leveraging the concepts of Retrieval Augmented Generation, aka RAG. Vector store helps with efficient data retrieval, and form responses or actions based on verified data sources, largely limiting the chances of hallucination.</p><p>Designing an efficient knowledge base, can be achieved by adhering to a few helpful principles. First — a dual retrieval mechanism; this will help to blend traditional keyword-based search with context-aware retrieval using pre-trained language models like BERT or GPT, eventually ensuring comprehensive coverage and relevance. Second — data representation using contextual embeddings; this could capture rich semantic information and help towards accurate matching. Third — computing semantic similarity; this could allow nuanced and contextually relevant retrieval by considering relationships between words and phrases. This is especially important to make the conversation sound more relevant.</p><p>Overall knowledge base implementation revolves around efficient indexing and storage, for effective retrieval. These practices help optimize data access, enable on-the-fly response generation, and suggest the presentation of the most informative passages to users.</p><p><strong>Enterprise use cases for building with RAG </strong>—</p><p>a) <strong>Information Retrieval in Customer Support:</strong> In a customer support scenario, the Knowledge Base with RAG helps retrieve relevant troubleshooting guides, product manuals, and support articles based on user queries. By leveraging semantic similarity and context-aware retrieval, the system delivers accurate and timely assistance to users, enhancing their overall support experience.</p><p>b) <strong>Knowledge Sharing in Enterprise Collaboration:</strong> In an enterprise collaboration setting, RAG system facilitates knowledge sharing and information dissemination among employees. By indexing and retrieving relevant documents, presentations, and training materials, this framework enhances productivity and fosters a culture of continuous learning within the organization.</p><p>c) <strong>Content Recommendations in E-commerce:</strong> Within an e-commerce platform, the Knowledge Base with RAG powers personalized product recommendations and informative content suggestions. By analyzing user preferences and browsing history, RAG-based solution retrieves product descriptions, reviews, and related articles that match the user’s interests, leading to increased engagement and sales conversion rates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TN6xgalUjaAf9iqr" /><figcaption>Photo by <a href="https://unsplash.com/@timmossholder?utm_source=medium&amp;utm_medium=referral">Tim Mossholder</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>5. Data Privacy and Protection Layer</strong></h3><p>Data privacy and protection are the single most important thresholds for any conversational AI solution to breach in order to become generally available. In today’s world, enterprises need to navigate a complex web of laws, regulations and ethical guidelines to ensure responsible use of data &amp; protect user privacy. Enterprises today are holding back, just waiting for a solution on these. In the REACH framework, we propose a way to mitigate the risks involved to a certain extent by incorporating a dedicated data protection layer powered by specially fine-tuned LLMs to ensure respect for the code of conduct in an enterprise brand landscape.</p><p><strong>Regulatory compliances in Enterprise AI </strong>—</p><p>a) <strong>Data Protection Regulations:</strong> Compliance with data protection regulations such as GDPR (General Data Protection Regulation) and CCPA (California Consumer Privacy Act) is essential for enterprises operating in global markets. These regulations impose strict requirements on data collection, processing, and storage, with hefty penalties for non-compliance.</p><p>b) <strong>Fairness and Bias:</strong> Ensuring fairness and mitigating bias in AI systems is crucial for promoting equitable outcomes and avoiding discriminatory practices. Ethical AI frameworks emphasize the need to identify and address biases in data and algorithms to uphold principles of fairness and social justice.</p><p>c) <strong>Transparency and Accountability:</strong> Transparency and accountability are foundational principles of responsible AI. Enterprises must be transparent about their data practices and accountable for the decisions made by AI systems. This includes providing clear explanations of how data is collected, used, and protected, as well as mechanisms for addressing user concerns and grievances.</p><p><strong>Ways to ensure responsible use of data </strong>—</p><p>a) <strong>Data minimization</strong>: Only ask for what’s absolutely necessary — minimize collection and retention of personal data as much as possible. This will help reduce the risk of unauthorized access or misuse of sensitive information.</p><p>b) <strong>Data Anonymisation</strong>: Employ techniques like data masking and tokenization to ensure sensitive information is de-identified before storage or processing. This protects user privacy while still allowing for meaningful analysis and utilisation of data.</p><p>c) <strong>Granular Consents</strong>: Granular consent management for data collection, processing and sharing activities provides users with explicit control over their data. It builds trust with the users and ensures legal compliance as well. 3rd party tools can be employed to further nurture trust in the system.</p><p><strong>Enterprise scenarios where having the privacy layer could bolster trust and adoption with users </strong>—</p><p>a) <strong>Healthcare Assistant</strong>: Confidentiality of patient data is of utmost important for enabling any type of conversations in a healthcare setup. This could be implemented using privacy layers as prescribed in REACH framework, by implementing robust privacy-preserving mechanisms. This eventually leads to fostering trust, which is paramount for an open dialogue about sensitive health issues, thereby improving patient outcomes.</p><p>b) <strong>Financial Advisory</strong>: Finance is the second most private area for any user and mandates additional privacy. Having a defined privacy layer enables users to share sensitive financial data with confidence, knowing that their data is protected while providing personalized recommendations and guidance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XW2P-w69djdUIWmQ" /><figcaption>Photo by <a href="https://unsplash.com/@hdbernd?utm_source=medium&amp;utm_medium=referral">Bernd 📷 Dittrich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>6. <strong>Language Model (LLM) Integration</strong></h3><p>Finally the magic potion enabling natural conversations in enterprise systems — LLM integrations. LLMs provide to build on the following key principles for reliable conversational systems —</p><p>i) <strong>Understanding Context:</strong> Language models are trained to understand the context of user queries and generate responses that are contextually relevant and coherent. We leverage these language models to interpret user intents accurately and provide informative and engaging responses.</p><p>ii) <strong>Promoting Inclusivity:</strong> Language models are fine-tuned to promote inclusivity and diversity in communication by recognizing and accommodating linguistic variations and cultural nuances. Enterprise AI frameworks ensure that language models are trained on diverse datasets to capture a broad spectrum of language usage.</p><p>iii) <strong>Mitigating Bias:</strong> Language models are rigorously evaluated and audited to identify and mitigate biases in language generation. It is imperative employs techniques such as debiasing algorithms and fairness-aware training to ensure that language models produce unbiased and equitable responses.</p><p>Summarising the key techniques to consider for enhancing the frameworks conversational abilities. First, we can streamline the process by tidying up and breaking down user input for easier comprehension. Then, integrating advanced language models like BERT and GPT to elevate the AI’s understanding. Lastly, fine-tuning the responses using methods such as response ranking and paraphrasing to ensure they resonate with users.<br> <br>These enhancements could potentially transform the ChatBot’s conversational prowess. Interactions will feel more natural and seamless, akin to chatting with a friend. Moreover, the system could continually learn from these interactions, refining its understanding and responses over time. It’s an exciting journey towards potentially creating more engaging and intuitive conversations for our users.</p><p><strong>Experiments for assessing the Effectiveness of LLM Integration in conversational AI interfaces —</strong></p><p><strong>a) Usability Testing</strong>: User studies are one of the best ways to evaluate the usability and effectiveness of conversational AI. Participants perform tasks and engage in conversations with the system, and their experiences and feedback are analyzed to identify areas for improvement.</p><p><strong>b) Performance Evaluation</strong>: Technical experiments measure the performance of conversational AI systems in terms of language understanding, generation accuracy, and response coherence. Furthermore, metrics such as intent classification accuracy, language model perplexity, and user satisfaction scores are used to evaluate performance.<br> <br><strong> c) A/B Testing</strong>: Randomizing users to use different versions of the system, recording their interactions and collating their feedback, helps assess user satisfaction and engagement. This strategy also helps with evaluating integrity and efficiency of the conversational system. <br> <br>These testing strategies provide valuable insights into the effectiveness of conversational AI systems and implications for data privacy &amp; conversational harmony.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FGxMOE1Ns0fdy4bfhf6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fgithub-devops-requirements-GxMOE1Ns0fdy4bfhf6&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExenlicmd6dHdoY2Fsbzl4OTl6NHJ0MHRneGlneDJiZHJrODV5Y2l6NSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FGxMOE1Ns0fdy4bfhf6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8c5385e02ccbf0b555c4f30ae1aad2f/href">https://medium.com/media/e8c5385e02ccbf0b555c4f30ae1aad2f/href</a></iframe><h3>Conclusion:</h3><p>REACH framework is a solid step towards building responsible enterprise conversational AI systems within the marketing technology space to enhance customer engagement experience. By ensuring data privacy and protection and by being transparent about it, the framework helps build trustful interactions, which is the basis of any human-like conversation. The fine-tuned language models ensure inclusivity and a code of conduct within the responses, further pushing the boundaries of Human Machine Interfaces. Conversational AI systems are a complex space in a nascent stage, and having frameworks like REACH helps early adopters stay aligned with the enterprise&#39;s expectations. From enhancing conversational experiences to championing ethical AI practices, I believe, frameworks like REACH stand as a beacon for responsible innovation and harmony in digital communication.</p><p>So, how are you building your enterprise conversational AI systems? :)<br>Let’s talk.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01607150c237" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/reach-responsible-enterprise-ai-for-conversational-harmony-a-unified-rag-framework-for-chatbots-01607150c237">REACH: Responsible Enterprise AI for Conversational Harmony — A Unified RAG Framework for ChatBots</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Advanced Flutter Widgets for Building Complex User Interfaces]]></title>
            <link>https://medium.com/@atketan/10-advanced-flutter-widgets-for-building-complex-user-interfaces-dd15bff7b953?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd15bff7b953</guid>
            <category><![CDATA[flutter-web]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 03:47:14 GMT</pubDate>
            <atom:updated>2023-07-05T03:47:14.698Z</atom:updated>
            <content:encoded><![CDATA[<p>Rounding up the widgets that are helping take cross-platform app development to the next level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_Lu5XIFnOvGNgCd8" /><figcaption>Photo by <a href="https://unsplash.com/@halacious?utm_source=medium&amp;utm_medium=referral">Hal Gatewood</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a seasoned Flutter developer with over 4 years of experience developing hybrid applications, I have had the opportunity to work on deploying applications for multiple platforms, including Android, iOS, and the web, from a single codebase. During this time, I have come across several advanced Flutter widgets that have proven to be incredibly useful in designing cross-platform applications. In this article, I’m sharing few of the top advanced widgets that made my job so much easier.</p><h3>Flutter</h3><p>Flutter is a popular open-source framework for building cross-platform mobile applications. One of its key strengths is the large collection of customisable widgets that make it easy to create beautiful and functional user interfaces.</p><p>To know about setting it up, get started <a href="https://docs.flutter.dev/get-started/install">here</a>.</p><p>Let us explore ten advanced Flutter widgets that can help you build complex and dynamic user interfaces.</p><h4>1. AnimatedContainer</h4><p>The AnimatedContainer widget is a convenient way to animate the properties of a container, such as its size, padding, and color. To use this widget, simply wrap it around another widget and specify the properties you want to animate. Here’s an example that animates the width of a container over 500 milliseconds:</p><pre>AnimatedContainer(<br>  duration: Duration(milliseconds: 500),<br>  width: _width,<br>  child: Container(<br>    color: Colors.red,<br>  ),<br>);</pre><h4>2. Stack</h4><p>The Stack widget is a powerful layout widget that allows you to stack widgets on top of each other. You can specify the alignment and position of each child widget within the stack, making it a great choice for creating layered user interfaces. Here’s an example that stacks two containers vertically and centers them within the parent stack:</p><pre>Stack(<br>  alignment: Alignment.center,<br>  children: [<br>    Container(<br>      width: 100,<br>      height: 100,<br>      color: Colors.red,<br>    ),<br>    Container(<br>      width: 50,<br>      height: 50,<br>      color: Colors.blue,<br>    ),<br>  ],<br>);</pre><h4>3. Expanded</h4><p>The Expanded widget is used to control the distribution of space within a Flex layout. You can use it to make one widget take up more space than the others within the same row or column. Here’s an example that creates a row with two Expanded widgets and a Text widget, where the first Expanded widget takes up 2 times more space than the other:</p><pre>Row(<br>  children: [<br>    Expanded(<br>      flex: 2,<br>      child: Container(<br>        color: Colors.red,<br>      ),<br>    ),<br>    Expanded(<br>      child: Container(<br>        color: Colors.blue,<br>      ),<br>    ),<br>    Text(&quot;Hello World&quot;),<br>  ],<br>);</pre><h4>4. AnimatedOpacity</h4><p>The AnimatedOpacity widget is similar to the AnimatedContainer widget, but it animates the opacity of its child widget. You can use it to fade a widget in or out, for example, when navigating between screens or showing/hiding a menu. Here’s an example that fades in a Container over 500 milliseconds:</p><pre>AnimatedOpacity(<br>  opacity: _opacity,<br>  duration: Duration(milliseconds: 500),<br>  child: Container(<br>    color: Colors.red,<br>  ),<br>);</pre><h4>5. Draggable</h4><p>The Draggable widget is a powerful tool for creating drag-and-drop interactions in Flutter. You can use it to create widgets that can be dragged and dropped within a parent widget or even between different widgets. Here’s an example that creates a Draggable widget that can be dragged within a Container:</p><pre>Draggable(<br>  child: Container(<br>    color: Colors.red,<br>  ),<br>  feedback: Container(<br>    color: Colors.red.withOpacity(0.5),<br>  ),<br>);</pre><h4>6. GestureDetector</h4><p>The GestureDetector widget is used to detect gestures, such as taps, drags, and scaling, on its child widget. You can use it to create interactive widgets that respond to user input. Here’s an example that creates a GestureDetector that responds to taps and changes the background color of a Container:</p><pre>GestureDetector(<br>  onTap: () {<br>    setState(() {<br>      _color = Colors.green;<br>    });<br>  },<br>  child: Container(<br>    color: _color,<br>  ),<br>);</pre><h4>7. Transform</h4><p>The Transform widget allows you to apply transformations, such as rotations, translations, and scalings, to its child widget. You can use it to create complex animations and visual effects. Here’s an example that rotates a Container by 45 degrees:</p><pre>Transform.rotate(<br>  angle: 45,<br>  child: Container(<br>    color: Colors.red,<br>  ),<br>);</pre><h4>8. Hero</h4><p>The Hero widget is used to create smooth animations between two pages in Flutter. You can use it to create a shared element transition, where an element animates from one screen to another. Here’s an example that creates a Hero widget that animates a Container between two screens:</p><pre>Hero(<br>  tag: &quot;hero&quot;,<br>  child: Container(<br>    color: Colors.red,<br>  ),<br>);</pre><h4>9. ClipRRect</h4><p>The ClipRRect widget is used to clip its child widget to a rounded rectangle. You can use it to create rounded corners, for example, on images or containers. Here’s an example that creates a ClipRRect widget that clips a Container to a rounded rectangle:</p><pre>ClipRRect(<br>  borderRadius: BorderRadius.all(Radius.circular(10)),<br>  child: Container(<br>    color: Colors.red,<br>  ),<br>);</pre><h4>10. AnimatedSwitcher</h4><p>The AnimatedSwitcher widget is used to switch between different widgets with an animation. You can use it to create dynamic and interactive user interfaces, for example, when switching between different screens or data. Here’s an example that creates an AnimatedSwitcher widget that switches between two Containers:</p><pre>AnimatedSwitcher(<br>  duration: Duration(milliseconds: 500),<br>  child: _isRed ? Container(key: UniqueKey(), color: Colors.red) : Container(key: UniqueKey(), color: Colors.blue),<br>);</pre><h3>Conclusion</h3><p>In conclusion, these ten advanced Flutter widgets can help you build complex and dynamic user interfaces with ease. By combining them with other Flutter widgets and tools, you can create beautiful, interactive, and performant mobile applications. Happy coding!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FNytMLKyiaIh6VH9SPm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FNytMLKyiaIh6VH9SPm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FNytMLKyiaIh6VH9SPm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/41739462a4c904b6b40b3cd0183c442a/href">https://medium.com/media/41739462a4c904b6b40b3cd0183c442a/href</a></iframe><p>I hope this article helped you in brushing up on a few advanced Flutter widgets. Let me know your experiences and thoughts about the widgets listed. Have you used any of them in your projects? Did you face challenges or have tips to share? Which other advanced Flutter widgets do you think we should include in the list? Your feedback and experiences benefit the Flutter community. Share them in the comments below. Thank you! :)</p><p>My <a href="https://www.linkedin.com/in/ketanbhavsar20">LinkedIn</a> is open for connections and discussions.</p><p>Read more about Advanced Flutter and Declarative Programming —</p><ul><li><a href="https://betterprogramming.pub/streaming-flutter-events-with-mosquitto-mqtt-broker-28998a3b81c2">Streaming Flutter Events With Mosquitto MQTT Broker</a></li><li><a href="https://betterprogramming.pub/the-burger-analogy-for-imperative-vs-declarative-styles-of-programming-3caf026fd553">The Burger Analogy: For Imperative vs. Declarative Styles of Programming</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd15bff7b953" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter and ChatGPT: Revolutionising App Development while Ensuring IP Compliance]]></title>
            <link>https://pub.towardsai.net/flutter-and-chatgpt-revolutionising-app-development-while-ensuring-ip-compliance-1d947227bbd4?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d947227bbd4</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 18:01:50 GMT</pubDate>
            <atom:updated>2023-04-11T18:01:50.117Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital era, mobile and web applications have become a crucial part of our lives. Building these applications is a complex process that involves multiple stages and requires a significant amount of time, effort, and resources. However, with the advancement of AI-assisted development tools, we can now create high-quality applications in less time and with greater ease.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wabkMrHQhLWew3UE" /><figcaption>Photo by <a href="https://unsplash.com/@agk42?utm_source=medium&amp;utm_medium=referral">Alex Knight</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>As a developer, I’m always on the lookout for new tools and technologies that can help me be more productive and efficient. Recently, I started exploring the possibilities of AI-assisted development with Flutter, a popular cross-platform framework for building mobile and web applications. In this article, I’ll share my experience and learnings from building a sample app with Flutter and ChatGPT.</p><p>Before we dive into it, let’s talk about why I chose to use AI tools for this project. As a practice head in a large organization, I’m always looking for ways to improve our development processes and make them more efficient. AI-assisted development is one such way that can help us save time and effort by automating repetitive tasks and suggesting code snippets based on context. In this project, I wanted to explore how AI tools can help me speed up development with Flutter.</p><p>Flutter, a cross-platform framework that enables developers to build high-quality mobile and web applications with a single codebase that can run on Android, iOS, Web, Mac, Windows, and Linux. In this article, we will discuss how AI-assisted development with Flutter can benefit developers and organizations.</p><p>I will cover 3 things in this article -</p><ul><li>Benefits of AI-assisted Development with Flutter</li><li>Considerations for Choosing AI Tools in an IP-Sensitive Organisation</li><li>Demo with Flutter and ChatGPT</li></ul><h3>Benefits of AI-assisted Development with Flutter</h3><h4>Cross-Platform Capabilities</h4><p>Flutter’s cross-platform capabilities enable developers to create one codebase that powers applications across multiple platforms. This feature significantly reduces development time and costs and ensures that the application works seamlessly across different devices.</p><h4>Faster Development Cycles</h4><p>AI-assisted development with Flutter provides a faster development cycle. Developers can use pre-built widgets and tools to create visually appealing and responsive applications quickly. This feature saves time and allows developers to focus on other aspects of the application, such as user experience and functionality.</p><h4>Improved Quality and Performance</h4><p>Flutter’s pre-built widgets and tools provide a consistent and robust user experience across different platforms. Additionally, Flutter’s fast development cycles enable developers to quickly test and debug their applications, ensuring high-quality and high-performance applications.</p><h4>Customization</h4><p>Flutter allows developers to customize their applications according to their specific needs. This feature enables developers to create unique and visually appealing applications that stand out from the competition.</p><h3>Considerations for Choosing AI Tools in an IP-Sensitive Organisation</h3><p>While AI-assisted development with Flutter provides several benefits, it is essential to consider certain factors when choosing an AI tool for an IP-sensitive organization.</p><p>Some of these considerations include:</p><h4>Security and Privacy</h4><p>The AI tool should have robust security features to protect sensitive data and code from unauthorized access, modification, or theft.</p><h4>IP Ownership</h4><p>Ensure that the AI tool’s terms of service and licensing agreement align with the organization’s IP ownership policies. The tool should not claim ownership or control over any IP generated using it.</p><h4>Compliance</h4><p>Verify that the AI tool complies with relevant regulations and industry standards, such as GDPR, HIPAA, and ISO 27001.</p><h4>Transparency</h4><p>Look for AI tools that provide clear explanations of their algorithms and decision-making processes, as well as any limitations or biases in their outputs.</p><h4>Scalability</h4><p>Consider the scalability of the AI tool, both in terms of its ability to handle large amounts of data and its compatibility with the organization’s existing tech stack.</p><h4>Vendor Support</h4><p>Evaluate the vendor’s reputation, experience, and customer support capabilities, as well as their ability to provide timely updates and bug fixes.</p><h4>Customisability</h4><p>Determine the degree to which the AI tool can be customized and integrated into the organization’s existing workflows and development processes.</p><h4>Cost</h4><p>Consider the cost-benefit analysis of using the AI tool, factoring in the potential benefits of increased efficiency, reduced development time, and improved outcomes, as well as any licensing or subscription fees.</p><h3>Demo — Flutter with ChatGPT</h3><p>To better illustrate the benefits of AI-assisted development with Flutter, let’s create code from ChatGPT that displays a list of articles. The application will have a home screen that shows a pre-populated list of articles and a search feature that allows users to search for articles by keyword.</p><p>So, when I asked ChatGPT to share code for the above prompt, it quickly generated a complete snippet of the Home Screen with a sample pre-populated list of articles.</p><p><strong>Snippet 1</strong> — Home Screen with search icon button on the app bar and a list</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b8889d2976b034b8a079d1993feee64/href">https://medium.com/media/9b8889d2976b034b8a079d1993feee64/href</a></iframe><p>This code has literally everything we need to get started on the page. I have just augmented it a bit to implement the navigation to the ArticleDetailsPage and fix some lint issues like the use of const, etc.</p><p><strong>Snippet 2</strong> — SearchDelegate for the articles list</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f966add7d79c5de03688362d67d73606/href">https://medium.com/media/f966add7d79c5de03688362d67d73606/href</a></iframe><p><strong>Snippet 3</strong> — ArticleDetailsPage</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38302d73d4469ca2df8bcb2e02c940db/href">https://medium.com/media/38302d73d4469ca2df8bcb2e02c940db/href</a></iframe><p>I am amazed by how great this details page turned out! It flawlessly adheres to the design guidelines for font weights and colors for all screen elements, giving it a professional and polished look that makes it seem almost ready for deployment.</p><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*pVJNNXuolJKXuc-uYZIiGA.gif" /><figcaption>Built with Flutter and coded by ChatGPT</figcaption></figure><p>This would have taken me a couple of hours to build on my own, but with the help of ChatGPT, I was able to create it in less than 10 minutes! The code generation was so fast, it was even quicker than setting up the Flutter project and testing it on the Simulator! Incredible!</p><p>Although this was a simpler use case, ChatGPT does wonders with other complicated aspects of the development as well. On another tryout, I was able to create a fully functional Firebase Mobile Authentication flow through it. I will soon share findings from that exploration as well in my next articles!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pSFF4RxG4jhlw2id" /><figcaption>Photo by <a href="https://unsplash.com/@eric_masur?utm_source=medium&amp;utm_medium=referral">Eric Masur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Conclusion</h3><p>Overall, I found that using AI tools such as ChatGPT was a great way to speed up the development process and reduce the amount of boilerplate code that I had to write. However, it’s important to keep in mind that AI tools are not a replacement for human developers and should be used as a complement to their skills.</p><p>In conclusion, I hope this article has given you a glimpse into the possibilities of AI-assisted development with Flutter. By using AI tools to automate repetitive tasks and suggest code snippets, we can save time and effort and focus on building high-quality, user-friendly applications. AI-assisted development with Flutter will completely be transforming the way we build mobile and web applications.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FNytMLKyiaIh6VH9SPm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FGitHub-ok-thumbs-up-thumb-NytMLKyiaIh6VH9SPm&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMzQ0YzE3YzdlMDg1Zjc2ZDVkYzk3OGNkZjA3Y2Y4YWJlZDc4NmIzZSZjdD1n%2FNytMLKyiaIh6VH9SPm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/f55201e4b7f6c0d885eaa24256c2c891/href">https://medium.com/media/f55201e4b7f6c0d885eaa24256c2c891/href</a></iframe><p>As a fellow AI enthusiast, I would love to hear your views and experiences around AI-assisted development! What is it that you were able to achieve? How has it helped you speed up your development and delivery? Let’s have a conversation about some opportunities.</p><p>My <a href="https://www.linkedin.com/in/ketanbhavsar20">LinkedIn</a> is open for connections and discussions.</p><p><strong>Disclaimer</strong>: Please note that all views and opinions expressed in this article are my own and do not reflect the views or commitments of my organization. This disclaimer is intended to keep my personal views separate from those of the organization and to prevent any legal complications that may arise from misinterpretation or misrepresentation. Thank you for understanding.</p><ul><li><a href="https://pub.towardsai.net/quick-take-on-text-to-image-conversion-with-ai-using-stable-diffusion-a3dee12efb">Quick Take on Text to Image Conversion with AI — using Stable Diffusion</a></li><li><a href="https://betterprogramming.pub/the-burger-analogy-for-imperative-vs-declarative-styles-of-programming-3caf026fd553">The Burger Analogy: For Imperative vs. Declarative Styles of Programming</a></li></ul><p>Thank you for reading! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d947227bbd4" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/flutter-and-chatgpt-revolutionising-app-development-while-ensuring-ip-compliance-1d947227bbd4">Flutter and ChatGPT: Revolutionising App Development while Ensuring IP Compliance</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Reasons Why Your Mobile App Startup Needs CI/CD Pipelines and Ways to Maximise Benefits]]></title>
            <link>https://medium.com/@atketan/4-reasons-why-your-mobile-app-startup-needs-ci-cd-pipelines-and-ways-to-maximise-benefits-2592a37c4785?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/2592a37c4785</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 05:44:49 GMT</pubDate>
            <atom:updated>2023-02-16T05:44:49.511Z</atom:updated>
            <content:encoded><![CDATA[<p>Planning on a mobile app startup? Here is why you need to have CI/CD pipelines setup from day one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yuJ2gsRL6hN9O56U" /><figcaption>Photo by <a href="https://unsplash.com/ko/@marcsm?utm_source=medium&amp;utm_medium=referral">Marc Sendra Martorell</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the fast-paced world of mobile app development, it is essential to keep up with the latest technology and tools that can help you deliver better apps in less time. One such tool is Continuous Integration/Continuous Deployment (CI/CD) pipelines.</p><blockquote>CI/CD pipelines boost mobile app development with automation, faster releases, improved quality, reduced risk &amp; better collaboration.</blockquote><p>I rely on CI/CD pipelines to automate the build and release of our app. This saves us hours of repetitive signing stages required by AppStore and PlayStore and ensures that a defined number of tests are conducted before creating any build for release. This helps us catch any misses beforehand and makes it a must-have for any software development team, especially when working remotely.</p><p>CI/CD pipelines are automated workflows that enable developers to build, test, and deploy mobile apps with ease. They provide several benefits to mobile app development, including faster releases, improved quality, reduced risk, and better collaboration. In this article, we’ll dive into these benefits in more detail, provide tips on how to maximize them, and list some of the most popular CI/CD tools available in the market.</p><h4>Faster releases</h4><p>The automated nature of CI/CD pipelines allows developers to release new features and fixes more quickly, improving the time-to-market for your app. This means that your app will be updated more frequently, which can result in increased user engagement and higher customer satisfaction.</p><h4>Improved quality</h4><p>Automated testing is a crucial component of CI/CD pipelines. By catching bugs early in the development process, developers can reduce the need for manual testing and improve the overall quality of the app. This can lead to fewer user complaints and fewer support requests, freeing up valuable time for developers to focus on new features.</p><h4>Reduced risk</h4><p>Automated builds and tests reduce the risk of human error and provide a consistent and repeatable process. This helps to ensure that your app is always in a stable state, reducing the risk of crashes and other issues that can impact the user experience.</p><h4>Better collaboration</h4><p>CI/CD pipelines make it easier for teams to collaborate on code and ensure that everyone is working from the same codebase. This helps to eliminate confusion and ensure that everyone is on the same page, leading to a more efficient and effective development process.</p><h3>Ways to maximize the benefits of CI/CD pipelines</h3><ol><li><strong>Integrate early</strong>: Integrating CI/CD pipelines early in the development process can help ensure that they are used effectively throughout the entire development lifecycle.</li><li><strong>Automate thoroughly</strong>: The more you automate, the faster and more efficient your pipeline will be. Automating as much of the build and test process as possible will reduce the risk of human error and improve the overall quality of your app.</li><li><strong>Monitor and optimize</strong>: Regularly monitoring and optimizing your pipeline can help you identify areas for improvement and make necessary changes. This can lead to faster builds, better collaboration, and improved app quality.</li><li><strong>Keep security in mind</strong>: Security is a critical aspect of any development process. Ensure that your pipeline is secure and that sensitive information is protected.</li><li><strong>Continuously improve</strong>: CI/CD pipelines are not a one-time implementation. They need to be continuously improved over time to keep pace with the changing needs of your app and your team.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cDVwPp2ZU6eZ6M_M" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now, let’s take a look at some of the most popular CI/CD tools available in the market:</p><ol><li><strong>Jenkins</strong>: Jenkins is an open-source automation server that can be used to automate various stages of the software development life cycle. It provides hundreds of plugins to support building, deploying, and automating any project.</li><li><strong>Travis CI</strong>: Travis CI is a cloud-based continuous integration and deployment platform that integrates with Github. It is widely used for testing and deploying open-source projects and provides a seamless integration experience for developers.</li><li><strong>CircleCI</strong>: CircleCI is a cloud-based CI/CD platform that provides a fast and scalable solution for building, testing, and deploying software. It supports multiple languages, including Java, Ruby, and Python, and provides a simple and intuitive user interface.</li><li><strong>GitLab CI/CD</strong>: GitLab CI/CD is a built-in continuous integration and deployment solution that is part of the GitLab platform. It provides a unified solution for managing the entire development process, from code to deployment.</li><li><strong>AWS CodeBuild</strong>: AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy. It supports multiple programming languages and provides a scalable and secure solution for automating builds.</li></ol><h3>Conclusion</h3><p>CI/CD pipelines are a valuable tool for mobile app development, providing faster releases, improved quality, reduced risk, and better collaboration. To maximize the benefits of CI/CD pipelines, it is important to integrate early, automate thoroughly, monitor and optimize, keep security in mind, and continuously improve over time. By using one of the popular CI/CD tools available in the market, you can streamline your development process and deliver better apps in less time.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F4n8I4KcHjV7hob4M9J%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F4n8I4KcHjV7hob4M9J%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F4n8I4KcHjV7hob4M9J%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/e441e12aa0fa3dfa5167a04acf217498/href">https://medium.com/media/e441e12aa0fa3dfa5167a04acf217498/href</a></iframe><p>As a fellow mobile app developer, I would love to hear your thoughts and experiences on CI/CD tools! Please share in the comments which CI/CD tool you use and how it has helped streamline your development process. Your contributions to this conversation are valuable, and I appreciate your insights. If you find this information helpful, don’t forget to give it a few claps!</p><p>My <a href="https://www.linkedin.com/in/ketanbhavsar20">LinkedIn</a> is open for connections and discussions.</p><ul><li><a href="https://betterprogramming.pub/the-burger-analogy-for-imperative-vs-declarative-styles-of-programming-3caf026fd553">The Burger Analogy: For Imperative vs. Declarative Styles of Programming</a></li><li><a href="https://betterprogramming.pub/streaming-flutter-events-with-mosquitto-mqtt-broker-28998a3b81c2">Streaming Flutter Events With Mosquitto MQTT Broker</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2592a37c4785" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step by Step Guide to Writing a Simple Solidity Contract: The SimpleBank Smart Contract]]></title>
            <link>https://medium.com/coinmonks/step-by-step-guide-to-writing-a-simple-solidity-contract-the-simplebank-smart-contract-9df807d898c5?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/9df807d898c5</guid>
            <category><![CDATA[remix]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 15:08:36 GMT</pubDate>
            <atom:updated>2023-02-07T15:08:36.677Z</atom:updated>
            <content:encoded><![CDATA[<p>A Beginner-Friendly Tutorial: Learn to Write Your First Solidity Contract with Ease</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zwGei5PzM_fFbGxf" /><figcaption>Photo by <a href="https://unsplash.com/@michael_f?utm_source=medium&amp;utm_medium=referral">Michael Förtsch</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have recently started working with Solidity to create and deploy Smart Contracts on the EVM and <em>boy am I amazed</em>! This simplifies so many things in unimaginable ways and opens up an pandora of possibilities. While I am experiencing this Web3 rush, I am sharing hereby a few of my learnings in the process. This article is a part of the series I am doing around my learnings with Blockchain and Smart Contracts. Be amazed!</p><h3>Introduction</h3><h4>Solidity</h4><p>Solidity is a high-level, contract-oriented programming language used for writing smart contracts on the Ethereum blockchain. Smart contracts are self-executing contracts that automatically enforce the terms of an agreement between parties. They run on the blockchain, ensuring that the code is immutable, transparent, and secure.</p><p>Check out the Solidity language documentation <a href="https://docs.soliditylang.org/">here</a>.</p><h4>Remix IDE</h4><p>Remix is a web-based Integrated Development Environment (IDE) for writing, testing, and deploying smart contracts. It provides a friendly interface for writing and testing smart contracts, and it supports many popular programming languages, including Solidity. In this guide, we will use Remix to write, test, and deploy our SimpleBank contract.</p><h3>Step 1: Setting up Remix IDE</h3><p>To get started with Remix, go to <a href="https://remix.ethereum.org/">https://remix.ethereum.org</a> in your web browser. You will be greeted with the Remix IDE home screen. From here, you can create a new contract by clicking the “+” button in the file explorer on the left-hand side of the screen. Give your contract a name, such as “SimpleBank,” and select the Solidity programming language.</p><h3>Step 2: Writing the Contract</h3><p>Now that you have created a new contract, it is time to start writing the code. The code for the SimpleBank contract is shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/750c369fcd55e2f03af7ff986a650d20/href">https://medium.com/media/750c369fcd55e2f03af7ff986a650d20/href</a></iframe><p>Let’s go through the code step by step.</p><p>The first line of the contract declares the version of the Solidity compiler that should be used to compile the contract. This is done using the pragma directive. In this case, we are using version 0.8.0 of the Solidity compiler.</p><p>The contract starts with two public variables, owner and balance. owner is an address type that stores the address of the owner of the contract. balance is a uint type that stores the current balance of the contract.</p><p>The contract also defines two events, Deposit and Withdrawal. Events are used to log changes to the state of the contract, and they can be used to track the deposit and withdrawal transactions. The Deposit event logs the address of the user who made the deposit and the amount of ether deposited. The Withdrawal event logs the address of the user who made the withdrawal and the amount of ether withdrawn.</p><p>The constructor is a special function that is executed when the contract is deployed. It sets the owner variable to the address of the user who deployed the contract. This is done using the msg.sender variable, which is a predefined Solidity variable that stores the address of the user who sent the current message (in this case, the address deploying the contract). The constructor also sets the initial value of the balance variable to zero. The constructor is executed only once, when the contract is first deployed. After the contract has been deployed, the constructor will not be executed again, even if the contract is called or interacted with.</p><p>The deposit function is used to deposit ether into the contract. It is declared as public payable, which means that it can be called by anyone and that it can receive ether. The function starts by checking that the sender of the message is the owner of the contract using the require statement. This is done to ensure that only the owner can deposit funds into the contract. The next require statement checks that the value of the message (the amount of ether sent) is greater than zero. If either of these require statements fails, the transaction will be rejected and no changes will be made to the contract state.</p><p>If both require statements pass, the balance variable is updated by adding the value of the message, and the Deposit event is emitted with the address of the sender and the value of the deposit.</p><p>The withdraw function is used to withdraw ether from the contract. It takes one argument, _value, which is the amount of ether to withdraw. Like the deposit function, it starts by checking that the sender of the message is the owner of the contract. It then checks that the value of _value is greater than zero and less than or equal to the current balance of the contract. If either of these require statements fails, the transaction will be rejected and no changes will be made to the contract state.</p><p>If both require statements pass, the balance variable is updated by subtracting the value of _value, and the msg.sender.transfer(_value) statement is used to transfer the withdrawn ether back to the sender. The Withdrawal event is then emitted with the address of the sender and the value of the withdrawal.</p><h3>Step 3: Deploying the Contract</h3><p>Once you have written the contract, you can deploy it to the Ethereum network using Remix. To do this, navigate to the Run tab on the right-hand side of the screen. In this tab, you will find the Deploy button.</p><p>Before deploying the contract, you will need to have some ether in your Remix environment. You can obtain this by using the built-in JavaScript VM, which is a simulation of the Ethereum network that runs locally on your computer. To do this, select the JavaScript VM option from the Environment drop-down menu and then click the Deploy button.</p><p>Once you have deployed the contract, you will see the Contract Address field populated with the address of your deployed contract. You can interact with your contract by calling its functions, such as deposit and withdraw.</p><h3>Step 4: Interacting with the Contract</h3><p>To interact with the contract, you can call its functions from the Remix IDE. To deposit funds, call the deposit function and specify the amount of ether to deposit. To withdraw funds, call the withdraw function and specify the amount of ether to withdraw.</p><p>In addition to calling functions, you can also observe the events generated by the contract. To do this, navigate to the Logs tab on the right-hand side of the screen. This tab displays a log of all events generated by the contract.</p><h3>Conclusion</h3><p>In this guide, I have shown you how to write and deploy a simple Solidity contract using Remix. The SimpleBank contract is a basic example of how to write a smart contract, but it can be modified and expanded to support more complex functionality. With this basic understanding of Solidity and Remix, you can begin exploring the exciting world of smart contracts and decentralised applications. Happy Blockchain’ing!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F8eXGl3BlCjutGCUhcm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F8eXGl3BlCjutGCUhcm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F8eXGl3BlCjutGCUhcm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/3cb821a657a78fd706b418747bf339e1/href">https://medium.com/media/3cb821a657a78fd706b418747bf339e1/href</a></iframe><p>I hope this guide on writing a simple Solidity contract was helpful. If you have any questions or comments about the code, or if you have any experiences to share, please let me know in the comments below. Your feedback and experiences will be valuable to others in the Solidity community. Thank you for reading!</p><p>My <a href="https://www.linkedin.com/in/ketanbhavsar20">LinkedIn</a> is open for connections and discussions.</p><p><a href="https://medium.com/coinmonks/7-building-blocks-of-blockchain-the-decentralised-digital-ledger-and-its-top-applications-3cdd1707e5b8">7 Building Blocks of Blockchain — The Decentralised Digital Ledger and its Top Applications</a></p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a> on <a href="https://medium.com/coinmonks/crypto-exchange-dd2f9d6f3769">best crypto exchanges</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9df807d898c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/step-by-step-guide-to-writing-a-simple-solidity-contract-the-simplebank-smart-contract-9df807d898c5">Step by Step Guide to Writing a Simple Solidity Contract: The SimpleBank Smart Contract</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Building Blocks of Blockchain — The Decentralised Digital Ledger and its Top Applications]]></title>
            <link>https://medium.com/coinmonks/7-building-blocks-of-blockchain-the-decentralised-digital-ledger-and-its-top-applications-3cdd1707e5b8?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cdd1707e5b8</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[decentralization]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 07:47:21 GMT</pubDate>
            <atom:updated>2023-01-24T07:47:21.515Z</atom:updated>
            <content:encoded><![CDATA[<h3>7 Building Blocks of Blockchain — The Decentralised Digital Ledger and its Top Applications</h3><p>Briefing out what constitutes a blockchain, and its top applications in various domains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-OsdsTZiNUY4Z_-4" /><figcaption>Photo by <a href="https://unsplash.com/@theshubhamdhage?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What is a Blockchain?</h3><p>Imagine a super cool digital ledger that’s like the ultimate “who’s who” of all the transactions that have ever happened in the world! This ledger is called a blockchain, and it’s like a chain of blocks (get it? blockchain?) that are all linked together.</p><p>Each block is like a page in the ledger, and it’s filled with all sorts of juicy information like financial transactions and smart contract executions. But here’s the best part: the ledger is decentralized, which means there’s no one person or organization in charge of it. Instead, it’s run by a bunch of awesome computers or nodes that work together to keep the ledger up-to-date and accurate.</p><p>And to make sure that everything is on the up-and-up, the nodes use something called a consensus algorithm to agree on the state of the blockchain. It’s like a digital handshake that makes sure all the nodes are on the same page. And to add a new block to the chain, the nodes have to do some super cool problem-solving using a process called mining. It’s like a digital treasure hunt, and whoever finds the solution first gets to add the block to the chain.</p><p>So, in short, blockchain is like a super secure, super cool, and decentralized digital ledger that’s taking over the world! 🌎</p><h3>7 Building Blocks of Blockchain</h3><p>A simple blockchain is made up of several building blocks, including:</p><ol><li>Blocks: These are the basic units of a blockchain and are similar to pages in a ledger. Each block contains a number of transactions, a timestamp, and a reference to the previous block in the chain.</li><li>Transactions: These are the individual pieces of data that are stored in a block. They can include things like financial transactions, smart contract executions, or other types of data.</li><li>Nodes: These are the computers or devices that make up the network and participate in the consensus process. They can be used to validate transactions, create new blocks, and maintain the blockchain.</li><li>Mining: This is the process of creating new blocks and adding them to the blockchain. It is typically done by nodes on the network that use specialised software to solve complex mathematical problems.</li><li>Consensus algorithm: This is the mechanism by which the network agrees on the state of the blockchain. It ensures that all nodes have the same copy of the blockchain and that new blocks are added to the chain in a consistent and secure manner.</li><li>Hash: It’s a unique digital signature that is used to identify and link each block in the blockchain. It’s created by combining the data in a block with a cryptographic algorithm.</li><li>Digital signature: It’s used to ensure that only authorized parties can add transactions to the blockchain, it’s created by combining the private key of the sender with the transaction data.</li></ol><p>These are the basic building blocks of a simple blockchain. However, different blockchain platforms may use slightly different variations of these building blocks, and the implementation can vary depending on the use case and the specific requirements of the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lEhWDotqGHnWJpzw" /><figcaption>Photo by <a href="https://unsplash.com/@visualbywahyu?utm_source=medium&amp;utm_medium=referral">Visual Karsa</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Blockchain Applications</h3><p>Blockchain technology has a wide range of potential applications across various domains. Some of the top applications of blockchain include:</p><ol><li>Finance: Blockchain can be used for secure and efficient financial transactions, including digital payments, remittances, and smart contract-based lending and insurance.</li><li>Supply Chain Management: Blockchain can be used to track the movement of goods and materials through the supply chain, providing transparency, and efficiency for all stakeholders.</li><li>Healthcare: Blockchain can be used to securely store and share patient data, enabling better coordination of care and more efficient clinical trials.</li><li>Real Estate: Blockchain can be used to create a secure and transparent record of property ownership and transactions, reducing fraud and simplifying the buying and selling process.</li><li>Government: Blockchain can be used to create more efficient and transparent public services, such as voting systems, digital identity systems and public record management.</li><li>Gaming and Entertainment: Blockchain can be used to create decentralized platforms for buying and selling digital assets, such as in-game items, and to create peer-to-peer marketplaces for the exchange of creative works.</li><li>Energy and Utilities: Blockchain can be used to create decentralized systems for the trading of energy and other resources, and to create more efficient and secure systems for metering and billing.</li><li>Cybersecurity: Blockchain can be used to create more secure systems for data storage and sharing, and to create decentralized systems for identity and access management.</li></ol><p>This is not an exhaustive list, as blockchain is a relatively new technology, there are many other domains that are being explored for the application of blockchain technology.</p><h3>The Blockchain Movement</h3><blockquote>“Blockchain is not just a technology, it’s a movement.”</blockquote><p>Blockchain technology is not just about creating new and innovative solutions, but it’s also about creating a new way of thinking about how we conduct business, govern societies and interact with each other. The blockchain movement encompasses a set of values that include decentralisation, transparency, immutability, and trust. It’s not just about the technology, but it’s also about the cultural and societal shift that it represents.</p><h3>Next?</h3><p>I am starting a Blockchain series where I would be discussing its applications, explore a few implementations, create private blockchains, and the various use cases ranging from Smart Contracts to NFTs and more.</p><p>Do let me know in comments if you’d like me to cover anything in specific.</p><p>Happy Blockchain’ing!</p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a> on <a href="https://medium.com/coinmonks/crypto-exchange-dd2f9d6f3769">best crypto exchanges</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cdd1707e5b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/7-building-blocks-of-blockchain-the-decentralised-digital-ledger-and-its-top-applications-3cdd1707e5b8">7 Building Blocks of Blockchain — The Decentralised Digital Ledger and its Top Applications</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyderabad — The 30th AWS Region and What It Means for Indian FinTech]]></title>
            <link>https://medium.com/@atketan/hyderabad-the-30th-aws-region-and-what-it-means-for-indian-fintech-76eb50770a9f?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/76eb50770a9f</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Wed, 30 Nov 2022 11:32:57 GMT</pubDate>
            <atom:updated>2022-12-02T12:45:05.097Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hyderabad — The 30th AWS Region and What It Means for Indian FinTechs</h3><p>Amazon Web Services made their 30th AWS Region, Asia Pacific (Hyderabad) Region, available for use with three Availability Zones and the ap-south-2 API name on 21st Nov’22, making it the second AWS region in India after Mumbai. But what does it mean for Indian FinTech system design?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vKqa-ZjM3ABLkP3l" /><figcaption>Photo by <a href="https://unsplash.com/@purzlbaum?utm_source=medium&amp;utm_medium=referral">Claudio Schwarz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Data Localisation and the Rising Data Storage Norms</h3><p>Reserve Bank of India (RBI) is rounding up the data regulations in the country and pushing for storage of customer data within India under its Data Localisation policies. This has been burdensome for the new age FinTech firms who highly rely on Cloud, the heart of digital transformation, for storage and analysis of data.</p><p>In April 2018, RBI released a circular titled ‘<a href="https://rbidocs.rbi.org.in/rdocs/notification/PDFs/153PAYMENTEC233862ECC4424893C558DB75B3E2BC.PDF">Storage of Payment Systems Data</a>’ which mandated every digital institution in the Indian payment ecosystem to move and store their payment systems data on a system only in India, within 6 months of time and report compliance of the same to RBI.</p><h3>Business impact of Network Downtime</h3><p>When we move to Cloud, one of the major assurance we receive is of a maximum uptime. While all of the cloud service providers claim of a 99.99% of uptime, this may still be affected by a hardware or a software failure, or adverse environmental conditions such as power outages, flooding or temperature changes. This is one of the most undesired situations in case of Financial Systems and can cripple a digital organisation completely reliant on a single data centre. One of the ways to address this situation is by building highly resilient and fault tolerant systems using concepts of High Availability for disaster recovery.</p><h3>High Availability in Cloud Systems</h3><p>High availability (HA) refers to a systems’ ability to have continuous uptime without failure. HA works to ensure that the system provides agreed upon operational performance at all times. High availability is ensured by following 3 principles: elimination of single point of failures, reliable crossover or failover points, and failure detection capabilities.</p><p>A distributed system achieves this with multiple nodes connected as a cluster, where each node is capable of failure detection and recovery.</p><h3>AWS Regions and Availability Zones</h3><p>The AWS Cloud infrastructure is build around Regions and Availability Zones. AWS Region is a physical location in the world where AWS has multiple Availability Zones. Each of these Availability Zones consist of one or more discrete data centres, each with their own redundant power, networking and connectivity, housed in separate facilities. These Availability Zones offer customers to operate production applications and databases which are more highly available, fault tolerant and scalable than would be possible with a single data center.</p><p>Every customer has a choice of AWS Region where their content would be stored. In India until now, AWS Cloud Services were exclusively provided by Asia Pacific (Mumbai) Region for all entities with on-shore data requirements. Once a region is chosen, data stays there and is not moved out until customer chooses to. This means, a 100% dependency on one single — Mumbai — AWS Region and its ability to be highly available.</p><h3>What it means to have a 2nd AWS India Region?</h3><p>In a nutshell, Indian FinTech’s can now build even better future ready AWS cloud native systems by distributing their load across multiple AWS Regions, which will inherently make their systems better handle faults and ensure continued service even when an entire AWS Region goes down. It also means lower latency and better user experience on the platforms.</p><p>Building region agnostic systems is now possible due to the availability of a two AWS Regions, while continuing adherence to RBI’s Data Localisation policies.</p><h3>Conclusion</h3><p>FinTech’s with data-residency requirements arising from statutes, regulations, and corporate policy can now run workloads and securely store data in India while serving end users with even lower latency.</p><p>The data localisation norms are from hereon to get even stricter as Government of India also plans on updating policies for every domain. In all of this, building better, larger, and resilient systems on AWS Cloud now becomes possible by having multiple Regions for on-shore data storage needs.</p><p>This will also speed up the cloud migration ambitions for not just BFSI but also other traditional monolithic organisations from various domains with AWS as an option. We may also see many international players now moving their data into India through the AWS route. The future of cloud looks brighter in India, and with the enormous startups spurring in the region, data-residency is only going to grow from here.</p><h4>References:</h4><ul><li>Launch announcement for the <a href="https://aws.amazon.com/blogs/aws/now-open-the-30th-aws-region-asia-pacific-hyderabad-region-in-india/">30th AWS Region — Asia Pacific (Hyderabad) Region in India</a></li><li><a href="https://rbidocs.rbi.org.in/rdocs/notification/PDFs/153PAYMENTEC233862ECC4424893C558DB75B3E2BC.PDF">RBI Circular for Storage of Payment Systems Data, April 2018</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76eb50770a9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Take on Text to Image Conversion with AI — using Stable Diffusion]]></title>
            <link>https://pub.towardsai.net/quick-take-on-text-to-image-conversion-with-ai-using-stable-diffusion-a3dee12efb?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3dee12efb</guid>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[generative-art]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 13:00:44 GMT</pubDate>
            <atom:updated>2022-09-16T13:00:44.286Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quick Take On Text to Image Conversion With AI — Using Stable Diffusion</h3><p>While the conversion tools have been there for years, Stable Diffusion literally makes it possible for <strong><em>anyone</em></strong> to create photorealistic art!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6Tq_M1mcamw4etZqeiBpQ.png" /><figcaption>Courtesy: <a href="https://stability.ai/blog/stable-diffusion-public-release">Stable Diffusion</a></figcaption></figure><h3>What is text to image conversion model?</h3><p>Simplistically, it’s a model which produces matching images to the provided text description as closely as possible. It falls under the domain of generative AI and is one of the use cases for deep learning.</p><h3>Generative AI</h3><p>Artificial intelligence, although in its nascent stage, has come a long way to penetrate the way we interact, engage and express. Generative AI is one facet of this evolution that allows algorithms to imagine words and voices into pictures and expressions. It creates unbiased results, which generally result from human thoughts and experiences.</p><blockquote>Generative AI refers to artificial intelligence models that can use existing content like text, audio files, or images to create new believable content.</blockquote><p>Generative AI models are mostly based on techniques such as generative adversarial networks (GANS), transformers, and variational autoencoders.</p><h3>AI in art</h3><p>Although I do not understand much when it comes to art, I am definitely fascinated by the idea of an AI doing it for me!</p><p>Recently there was a lot of buzz around an AI-generated art winning an international competition. Although such arts will never surpass the legacy and era of various artists around the globe over history, I believe it will definitely make art more accessible to the masses and carve its own niche.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GAiePIXDrckXJYcwlOnfPQ.jpeg" /><figcaption>Jason Allen’s A.I.-generated work, “Théâtre D’opéra Spatial,” took first place in the digital category at the Colorado State Fair. Image Courtesy: NYTimes &amp; Jason Allen</figcaption></figure><p>Read the complete article at <a href="https://www.nytimes.com/2022/09/02/technology/ai-artificial-intelligence-artists.html">NYTimes</a>.</p><blockquote>This artwork by Mr. Allen was created with Midjourney, another artificial intelligence program that turns text into hyper-realistic graphics.</blockquote><h3>What is Stable Diffusion, and how it works?</h3><p>Text-to-image converters have been out there for quite some time now, but tools released this year (2022) — like DALL-E 2, Imagen, Midjourney, and Stable Diffusion — make it possible for almost anyone to create photorealistic works just by typing in some text.</p><p>While there are multiple programs out there that support text-to-image conversion, in this article, we explore Stable Diffusion as one of the models. <em>No specific reason of choice as such — but just because I found it simple for a first try out! :D</em></p><blockquote>Build your own art by providing prompts at the public demonstration space for <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion">Stable Diffusion</a> model.</blockquote><p><em>How does it work?</em> From a user&#39;s perspective, that’s pretty straightforward. You type in your imagination in words, and the model will churn out interesting art. It uses a complex process of “diffusion” to turn text into images.</p><p>In the case of text-to-image conversion, the model tries to learn the underlying pattern of the input and then uses that info to generate close-fit images. It may not always produce a new image, rather, it tries to reach the closest outcome by mixing and matching the images it already has.</p><h3>Infinite possibilities</h3><p>I tried giving a few prompts to the Stable Diffusion model, and this is how it stunned me —</p><h4>“Cat wearing sunglasses in the bar.”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*vopefvauzeImELt0161buQ.png" /><figcaption>Created at: <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion">Stable Diffusion Public Space</a></figcaption></figure><h4>“Colourful horizon in the Indian Ocean. A ship cruising beside a pack of dolphins.”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Ir5M_DyHoLDOktlHKHgFzw.png" /><figcaption>Created at: <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion">Stable Diffusion Public Space</a></figcaption></figure><h4>“Carrot in a karate belt.”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*1KPAEQ5R1Q-eToQvcKWSYw.png" /><figcaption>Created at: <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion">Stable Diffusion Public Space</a></figcaption></figure><blockquote>P.S.: The art only gets better with the expressiveness of your imagination in words. So, write better! 😁</blockquote><h4>Some user-generated images from Stable Diffusion blogs —</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8DI9Vbd9UZ7uLnerk1XjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*rh26jsQxOxsysKZ7AsACmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*5GZ1-EdR7P7c8FFj-xMZTQ.png" /></figure><p>Courtesy: <a href="https://stability.ai/blog/stable-diffusion-public-release">https://stability.ai/blog/stable-diffusion-public-release</a></p><h3>Challenges — Mainstream Blockers</h3><p>Most models are trained by web scraping images at large and therefore undergo no scrutiny. As of today, while writing of this article, this can lead to potential misuse, unpredictable outcomes, and other ethical problems with the widespread use of this technology.</p><p>Although we are not far from a stage where AI becomes capable of doing the majority of human chores, the challenge of modeling ethics into its’ core remains an unsolved puzzle.</p><h3>Conclusion</h3><p>Generative AI is one domain that is fast rising to the mainstream as we speak. With its ever-increasing use cases like text-to-image conversion, image-to-image conversion, image resolution enhancements, face aging, photos to emojis, audio synthesis, sentiment analysis, and trend evaluation, it’s a boon to us.</p><p>The advances are likely to increase, and generative design techniques are likely to empower the machines to do more than just manual labor and take up creative tasks.</p><h3>Wrapping it up</h3><p>Do share in the comments 💬 your thoughts about this super cool generative art model, its future, and how you would like to use this further.</p><p>Also do share with me the interesting art you generate with <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion">Stable Diffusion</a>. 😃</p><ul><li>👏 — send a few claps if this quick round-up helped you in ways</li><li>🔗 — do share this article with curious folks looking to explore</li><li>➕ — press <strong>follow</strong> to tune up on more such simplified stuff around <em>cloud</em>, <em>technology, and science</em></li></ul><p>Connect with me on <a href="https://www.linkedin.com/in/ketanbhavsar20/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3dee12efb" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/quick-take-on-text-to-image-conversion-with-ai-using-stable-diffusion-a3dee12efb">Quick Take on Text to Image Conversion with AI — using Stable Diffusion</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serialise AWS DynamoDB JSON into Python dict with CerealBox]]></title>
            <link>https://itnext.io/serialise-aws-dynamodb-json-into-python-dict-with-cerealbox-63c62bd5ba1a?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/63c62bd5ba1a</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[boto3]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Thu, 01 Sep 2022 18:30:45 GMT</pubDate>
            <atom:updated>2022-09-01T18:30:45.717Z</atom:updated>
            <content:encoded><![CDATA[<p>Here we discuss a quick walkthrough and reference code for simplifying DynamoDB JSON serialisation process for your next AWS application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kiDTcAo81auBUiJkRbmCcw.jpeg" /></figure><h3>Where is the fuzz?</h3><p>When I started with DynamoDB, I loved how easy it was to set it up and get started with no worries about scalability, extendibility or usability. Everything seemed sorted until I landed up on this JSON serialisation bummer while creating data models on the client app.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6MbbwX2g2GA4MUus%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o6MbbwX2g2GA4MUus%2Fgiphy.gif%3Fcid%3Decf05e473scn1h0ryv4ewnnrk7bwypoqyht0krv7oj9uq4iy%26rid%3Dgiphy.gif%26ct%3Dg&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3o6MbbwX2g2GA4MUus%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="329" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe4a2f69e1c725ca99bb38543ee752f1/href">https://medium.com/media/fe4a2f69e1c725ca99bb38543ee752f1/href</a></iframe><p><em>“Things would have been so simple had you just stuck with the commons, isn’t it?”</em></p><p>Well that is not the case when it comes to one of our favourite AWS solutions, the DynamoDB database, and this is where it fuzzes.</p><h4>Data types</h4><p>Inherently DynamoDB supports 3 data types — String, Number &amp; Binary — and the remaining general data types are a simple derivative of these basic types. If we try to map them with the generic Java data types, we get a map as follows -</p><blockquote><strong>Java type</strong> vs <strong>DynamoDB type</strong><br><em>All number types -&gt; </em><em>N (number type)<br>Strings -&gt; </em><em>S (string type)<br>Boolean -&gt; </em><em>BOOL (Boolean type), 0 or 1<br>ByteBuffer -&gt; </em><em>B (binary type)<br>Date -&gt; </em><em>S (string type), stored as ISO-8601 formatted strings<br></em><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html"><em>Set</em></a><em> collection types -&gt; </em><em>SS (string set) type, </em><em>NS (number set) type, or </em><em>BS (binary set) type</em></blockquote><p>Java mapper reference: <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.DataTypes.html">Amazon DynamoDB Developer Guide</a></p><h3>Our setup</h3><p>To understand the problem and demonstrate the solution let us setup a DynamoDB table with some random data about animated movies (just because I like them).</p><p><strong>Step 1</strong>: Create dynamodb table ‘movies’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpgHiW2Tzbpz_CxLilZW0A.png" /><figcaption>Create dynamodb table ‘<strong>movies</strong>’ with ‘<strong>title</strong>’ as PartitionKey and ‘<strong>genre</strong>’ as SortKey</figcaption></figure><p><strong>Step 2</strong>: Add sample record/s with varied data types</p><blockquote>This can be done in either of the 2 ways — using the Form view or the JSON view provided under Create item option of DynamoDB table</blockquote><p>For example sake, let’s add a record for movie “The Sea Beast” with certain assumptions -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cKvRKzYR93vqJpwHyF4LIQ.png" /><figcaption>Data types for movies table item constituents</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anQeUh_P2fcFSpq04A7IMg.png" /><figcaption>Sample movie record added with multiple data types</figcaption></figure><p><strong>Step 3</strong>: Client side code setup</p><p>Now comes the Python client side of things — let’s set it up in a structure of 3 classes which can be further extended to provide additional features in the future -</p><ul><li>DatabaseHelper — handler for our DynamoDB queries</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5223a2f329be96a826a482c5dcff472c/href">https://medium.com/media/5223a2f329be96a826a482c5dcff472c/href</a></iframe><ul><li>MovieModel — database calls and response formatting manager</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3b22e3b692d9ce468b77913259936ba/href">https://medium.com/media/a3b22e3b692d9ce468b77913259936ba/href</a></iframe><ul><li>Main — this is where the execution flow is managed, think of it as the user interface which will request for movie details</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad6e8508df5e5dc7d26e19cb1a44d1c1/href">https://medium.com/media/ad6e8508df5e5dc7d26e19cb1a44d1c1/href</a></iframe><h3>The problem</h3><p>Generally to convert any response object as a manageable json formatted stream in Python we use json.dumps(), and that’s what we try to do with the DynamoDB response in the <em>Regular Approach</em> commented inside MovieModel class.</p><h4>Deserialisation attempt</h4><p>To understand the type conversion issues with DynamoDB json, uncomment the <em>Regular Approach</em> inside MovieModel class and comment the <em>CerealBox Approach</em>. Now run the main file —</p><p>$ python3 main_movie_dynamodb_example_runner.py</p><h4>Observations and exceptions</h4><p>This results in an error at the <em>languages</em> field —</p><p>TypeError: Object of type set is not JSON serializable</p><p>This problem occurs because the input data type of StringSet is not recognisable as a regular Java data type resulting in serialisation failure.</p><h3>The solution</h3><p>This exact serialisation problem is managed by the CerealBox library which comes with out of the box support for DynamoDB JSON. 😎</p><p>As per their official brief —</p><blockquote>CerealBox is a blazingly fast Zero Dependency generic Serializer / Deserializer for python dictionaries. It has an extendable architecture that allows custom serializers to be built through config. The module also includes built in implementations of serializing common data types to a JSON compatible dictionary or DynamoDB JSON.</blockquote><p>Reference to the library: <a href="https://github.com/a2d24/cerealbox">https://github.com/a2d24/cerealbox</a></p><h4>Serialisation using CerealBox library</h4><p>Now in the same example above, try running the main program while <em>CerealBox Approach</em> is uncommented and <em>Regular Approach</em> is commented in the MovieModel class. This will now serialise the response in correct format and also print the movie details on console —</p><p>&gt;&gt; {‘languages’: [‘Spanish’, ‘French’, ‘English’], ‘userRating’: ‘4.8’, ‘isReleased’: True, ‘releaseYear’: ‘2022’, ‘genre’: ‘Adventure’, ‘title’: ‘The Sea Beast’}<br>&gt;&gt; Movie not found in the database.</p><p>We can now build data models out of this serialised response data and use it further like a regular JSON within our application.</p><p>CerealBox uses the following map to serialise DynamoDB json to a Python dict —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kv_3OHD--KsYggKlMwyfNA.png" /><figcaption>DynamoDB JSON to Python Dict mapping done by CerealBox</figcaption></figure><h3>Conclusion</h3><p>So, while working with AWS DynamoDB has its own upsides and downsides, CerealBox makes it super easy to steer through the application data level intricacies during migrating/adopting to cloud. ❤️</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FHmH4NDFfp04wjVNmNF%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FHmH4NDFfp04wjVNmNF%2Fgiphy.gif%3Fcid%3Decf05e47zc1gznntbfobjoj4hu6kye04svw2hckdslib1yqi%26rid%3Dgiphy.gif%26ct%3Dg&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FHmH4NDFfp04wjVNmNF%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/153cfe1b3ab6bd740387227e6356de89/href">https://medium.com/media/153cfe1b3ab6bd740387227e6356de89/href</a></iframe><h3>Wrapping it up</h3><p>Do share in the comments 💬 your encounters with such low level design problems and the times when the elephant went through, and you got stuck itching your head on pushing through that tail end. 😄</p><ul><li>👏 — send a few claps if this quick round up helped you in ways</li><li>🔗 — do share this article with curious folks looking for answers</li><li>➕ — press <strong>follow</strong> to tune up on more such simplified stuff around <em>cloud</em>, <em>mobile app development</em> and <em>systems</em></li></ul><ul><li><a href="https://betterprogramming.pub/the-burger-analogy-for-imperative-vs-declarative-styles-of-programming-3caf026fd553">The Burger Analogy: For Imperative vs. Declarative Styles of Programming</a></li><li><a href="https://betterprogramming.pub/streaming-flutter-events-with-mosquitto-mqtt-broker-28998a3b81c2">Streaming Flutter Events With Mosquitto MQTT Broker</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63c62bd5ba1a" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/serialise-aws-dynamodb-json-into-python-dict-with-cerealbox-63c62bd5ba1a">Serialise AWS DynamoDB JSON into Python dict with CerealBox</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streaming Flutter Events With Mosquitto MQTT Broker]]></title>
            <link>https://medium.com/better-programming/streaming-flutter-events-with-mosquitto-mqtt-broker-28998a3b81c2?source=rss-ff9f59c73103------2</link>
            <guid isPermaLink="false">https://medium.com/p/28998a3b81c2</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Ketan Bhavsar]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 15:57:21 GMT</pubDate>
            <atom:updated>2022-08-05T15:57:21.108Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring the power of MQTT messaging protocol in Flutter through the counter app example program</h4><figure><img alt="Tools used for setting up local MQTT messaging system: Flutter, Mosquitto MQTT Broker, MQTT X Desktop Client" src="https://cdn-images-1.medium.com/max/1024/1*BQcaaWJQ7V3tBpIQLVZdGw.png" /><figcaption>Components of the MQTT event streaming setup</figcaption></figure><p>For quite a long time, we have debated the real-time event streaming abilities provided by various network protocols and their real-life use cases. So, here we explore a mobile application of one such protocol brought to the limelight in recent years by the advent and extensive adoption of the Internet of Things — MQTT, i.e., Message Queue Telemetry Transport. 📬</p><blockquote>The system discussed here forms the basis of a larger real world problem of having a lightweight messaging protocol that scales with the cross platform framework, works across devices, and boasts of a reliable and secure communication, which MQTT provides out of the box.</blockquote><h3>Prerequisites</h3><p>This article builds on an assumption that we know Flutter&#39;s and MQTT&#39;s basics. If you don’t, you can look at these “getting started” guides:</p><ul><li>Flutter — <a href="https://docs.flutter.dev/get-started/test-drive">https://docs.flutter.dev/get-started/test-drive<br></a><strong>Note</strong>: We will be enhancing the same example discussed above to demonstrate event streaming using MQTT</li><li>MQTT — <a href="https://mqtt.org/getting-started/">https://mqtt.org/getting-started/</a></li></ul><p>We would rely on Mosquitto MQTT Broker to facilitate messaging between Flutter App running on Android emulator and MQTT X Desktop Client.</p><p>To setup both of these on your systems, browse the following:</p><ul><li>Mosquitto MQTT Broker — <a href="https://mosquitto.org/download/">https://mosquitto.org/download/</a></li><li>MQTT X Desktop Client — <a href="https://mqttx.app/">https://mqttx.app</a></li></ul><h3>Our Setup</h3><figure><img alt="MQTT system design for mobile publisher and multiple receivers" src="https://cdn-images-1.medium.com/max/634/1*vZgHfCy4DRhu70Q0eogT3w.png" /><figcaption>Domain level system design for Publisher/Subscriber setup using Mosquitto</figcaption></figure><p>In our case, we would use a simple local setup of MQTT publisher and receiver, where our mobile app would be the publisher and MQTT X Desktop Client would be the receiver. I have configured the Mosquitto Broker to run in its default configuration on port 1883.</p><blockquote>Note: Remember to allow anonymous connections on local network for MQTT clients, since the access management part is out of scope for this article. This configuration can be made through the <em>mosquitto.conf</em> file present under the installation folder for the broker based on your OS.</blockquote><p>Just adding the following lines would do the job:</p><pre>listener 1883 0.0.0.0<br>allow_anonymous true</pre><p>We will need to restart the broker if already running for the above configuration to take effect and, this time, run the broker by providing the path to mosquitto.conf file in the command. For me, the command looks like the below (on macOS):</p><pre>mosquitto -c /usr/local/opt/mosquitto/etc/mosquitto/mosquitto.conf</pre><h3>Flutter Code</h3><p>For our application to connect with the local MQTT broker, we will use the pub mqtt_client, which can be found on <a href="https://pub.dev/">pub.dev</a> with installation instructions here — <a href="https://pub.dev/packages/mqtt_client">https://pub.dev/packages/mqtt_client</a>.</p><p>Further, let’s create an MQTTClientManager.dart class to help us with the various operations we would like to run in our mobile client. It contains the connect, disconnect, subscribe, publish, and other helper methods required to communicate with the broker.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/acdbd38830625706c33ced56110aa537/href">https://medium.com/media/acdbd38830625706c33ced56110aa537/href</a></iframe><p>Next, we will modify the MyHomePage class, which comes as a part of the getting started counter app example by Flutter on creating a new Flutter project. We would like to publish the increment counter messages on a “test/counter” topic to which the MQTT X desktop client would be subscribed. Before subscribing and publishing on any of these topics, we need to call the connect() method to establish a connection with the local broker on port 1883.</p><blockquote>Note: In case of Android emulator localhost will not resolve while connecting to the broker since it would be running inside a VM. This will throw a connection error. Therefore, we will use host address 10.0.2.2 instead, while connecting to the broker.</blockquote><p>Modify the MyHomePage class to contain the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e8b6ef9a4a2630452771f70caea1829/href">https://medium.com/media/1e8b6ef9a4a2630452771f70caea1829/href</a></iframe><p>We have added two new method calls under initState() here:</p><ul><li>setupMqttClient(): helps establish a connection with the broker and subscribe to the same publishing topic</li><li>setupUpdatesListener(): helps in setting up a listener stream on messages received over the subscribed topics and prints them on the console</li></ul><h3>MQTT X Desktop Client Setup</h3><p>Setting up MQTT X is way simple! Once installed, run the app and create a new connection. There are four mandatory details under the General section that we will need to establish a connection with our local Mosquitto broker successfully, rest of the details under the Advanced and Last Will and Testament sections can be left at their respective defaults.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ca81_4UmH6-J8TJcbnqxtQ.png" /><figcaption>Example <em>General</em> section details for a new connection on MQTT X Desktop Client</figcaption></figure><p>Once the connection is created, you can check if it successfully connects with the broker on the home screen by selecting the newly created connection. Post successful connection, add a New Subscription for the test topic. Let’s use the same topic that we are using in our Flutter app to publish the counter events, “test/counter” with “QoS: 1.”</p><h3>Result — Click Events in Action</h3><p>Each time you press the increment button on the emulator, an event is published via our MQTT setup and received inside the desktop client as a stream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zY3laJZApmFvrSBmdaNuug.gif" /></figure><h3>Conclusion and Use Cases</h3><p>Streaming live events from a mobile application has endless use cases, from performance monitoring to user activity tracking and behavior-based targeting. We can scale up to feed this data directly into Cloud Analytics tools as input data streams and apply various ML algorithms and analysis tools to build real-time systems.</p><p>That said, combining the super cool cross-platform abilities of Flutter with the ultra-chic low latency and low bandwidth messaging protocol of MQTT, we are looking at a solution that can scale across mobile, web, desktop, and eventually embedded devices alike!</p><p>This flexibility is enough to make us say, “awesome,” right? 🙃</p><h3>Wrapping Up</h3><p>Thank you for reading through, and do let me know how MQTT helps you scale your next Flutter project!</p><p>See you in the following article about how MQTT doubles into a Flutter Web Push Notifications management system — and how to enable AWS Analytics on mobile data streams through a makeshift AWS IoT Core setup.</p><pre><strong>Want to Connect?</strong></pre><pre>You can reach out to me via <a href="https://www.linkedin.com/in/ketanbhavsar20/">LinkedIn</a>.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28998a3b81c2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/streaming-flutter-events-with-mosquitto-mqtt-broker-28998a3b81c2">Streaming Flutter Events With Mosquitto MQTT Broker</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>