<?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 Innocent Munyadziwa on Medium]]></title>
        <description><![CDATA[Stories by Innocent Munyadziwa on Medium]]></description>
        <link>https://medium.com/@vhlnd?source=rss-c60d6c295296------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sHPUgJF5dhkBfiX6BSqnQw.png</url>
            <title>Stories by Innocent Munyadziwa on Medium</title>
            <link>https://medium.com/@vhlnd?source=rss-c60d6c295296------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:33:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vhlnd/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[Data Sovereignty and AI: The Case for Self-Hosted Language Models]]></title>
            <link>https://medium.com/@vhlnd/data-sovereignty-and-ai-the-case-for-self-hosted-language-models-0b1c6f6093cf?source=rss-c60d6c295296------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b1c6f6093cf</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[enterprise-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Innocent Munyadziwa]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 08:06:01 GMT</pubDate>
            <atom:updated>2026-06-29T08:06:01.008Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_NXut4fBoiwjAJy-XvzwQ.png" /><figcaption>Banner image</figcaption></figure><h3><strong>Introduction</strong></h3><ul><li><strong>The Shift:</strong> AI adoption is accelerating, but the initial rush to public cloud APIs has left many enterprises exposed.</li><li><strong>The Tension:</strong> Organizations face a trilemma: they need the competitive edge of AI, but struggle with privacy, compliance, and unpredictable cloud inference costs.</li><li><strong>The Thesis:</strong> The future of enterprise AI isn’t entirely cloud-based. With breakthroughs in smaller, highly capable open-weight models, running AI where your data resides is now both viable and a strategic advantage.</li></ul><h3>Why Enterprises Are Adopting Self-Hosted AI</h3><ul><li><strong>Data Privacy &amp; IP Protection:</strong> You can feed a local model your entire proprietary codebase or customer database without it becoming someone else’s training data.</li><li><strong>Regulatory &amp; GDPR Compliance:</strong> Sensitive customer data never crosses regional boundaries or leaves your VPC.</li><li><strong>Cost Control &amp; Vendor Lock-In:</strong> Predictable CapEx (hardware) vs. unpredictable OpEx (API token billing).</li><li><strong>Hyper-Personalization:</strong> The ability to fine-tune open-weight models specifically for niche business domain needs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TxMQDAsWYq0VHIvzfyyl6A.png" /><figcaption>GDPR</figcaption></figure><h3>Enterprise Use Cases for Self-Hosted Language Models</h3><ul><li><strong>Internal Operations:</strong> Service desk automation and internal knowledge assistants (RAG).</li><li><strong>Domain-Specific:</strong> Fraud monitoring, secure document processing, and automated auditing.</li><li><strong>Engineering:</strong> A business domain engine and programming assistants running securely on sensitive internal codebases.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kc2x6rr9cSZrZVHw7dquqw.png" /><figcaption>AI Usage</figcaption></figure><h3>Why 1B–30B Open-Weight Models Are Changing Enterprise AI</h3><p>You don’t need a massive multi-GPU cluster for every task. The 1B–30B parameter tier can run efficiently on consumer GPUs or edge devices while matching the performance of much larger models from a year ago.</p><ul><li><strong>Gemma 4 (12B &amp; 27B):</strong> Excellent for multimodal tasks and strong single-GPU performance.</li><li><strong>Qwen 3 (14B &amp; 30B):</strong> Highly capable for coding and reasoning tasks.</li><li><strong>Llama 4 Scout (17B):</strong> Strong reasoning with long-context capabilities.</li><li><strong>GPT-OSS (20B):</strong> Configurable reasoning built for private infrastructure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LqqW3m3Ks-gxbN-dksdvOg.png" /><figcaption>Enterprise-grade AI on self-hosted infrastructure.</figcaption></figure><h3>Deploying Self-Hosted AI: Infrastructure and Operational Considerations</h3><ul><li><strong>The Tech Stack:</strong> Setting up Vector databases and robust Retrieval-Augmented Generation (RAG) pipelines.</li><li><strong>Operations:</strong> MLOps maturity, monitoring model drift, and managing security controls.</li><li><strong>The Reality Check:</strong> Infrastructure costs are front-loaded, hardware procurement takes time, and specialized talent is required to maintain the systems.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cIgQZzHxkhqh4Xr4WyQBqQ.png" /></figure><h3>Choosing the Right AI Deployment Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIwzX_1A3SHkzrzo232ODw.png" /></figure><h3>The Future of Enterprise AI Is Hybrid</h3><p>AI is becoming a standard enterprise workload, not something separate or experimental.</p><p>In practice, most organizations will land on a hybrid setup: cloud AI for general, low-risk tasks, and self-hosted models for sensitive or high-value workloads where data control, compliance, or cost matter more.</p><p>With modern open-weight models, running AI inside your own infrastructure is no longer a niche option, it’s a practical part of how enterprise systems will be built.</p><h3>Next article</h3><p>“How to build and deploy your first self-hosted enterprise model.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b1c6f6093cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Think First. Then Ask AI.]]></title>
            <link>https://medium.com/@vhlnd/think-first-ai-second-f5072f1b8286?source=rss-c60d6c295296------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5072f1b8286</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[critical-thinking]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Innocent Munyadziwa]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 08:36:00 GMT</pubDate>
            <atom:updated>2026-03-30T16:19:12.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZtaLLCFnw4h1VGT6UR36A.jpeg" /><figcaption>Photo by Tara Winstead</figcaption></figure><p>Artificial intelligence is rapidly becoming part of everyday life. From writing emails to building software, it’s changing how we think, work, and solve problems.</p><p>This isn’t a warning against AI. It’s a reflection on how it’s shaping us.</p><h4><strong>The Upside: Intelligence, Accelerated</strong></h4><p>AI has made knowledge and capability more accessible than ever.</p><p>You can:</p><ul><li>Ask almost any question and get an instant answer</li><li>Build products faster than ever before</li><li>Learn, test, and execute ideas at speed</li></ul><p>In many ways, AI is the evolution of search, faster, smarter, and more interactive.</p><h4><strong>The Trade-Off: Thinking Less</strong></h4><p>But there’s a hidden cost.</p><p>When we rely on AI to solve problems:</p><ul><li>We stop engaging deeply</li><li>We shortcut the thinking process</li><li>We begin to trust external answers over our own reasoning</li></ul><p>The human brain grows through effort.<br> Struggle, problem-solving, and independent thought build new connections.</p><p>If AI removes that process, what are we losing?</p><h4><strong>Losing the Basics</strong></h4><p>We’re already seeing it.</p><p>People don’t need to:</p><ul><li>Write emails</li><li>Think through structure</li><li>Apply grammar rules</li></ul><p>AI can do it instantly.</p><p>But when you stop practicing the fundamentals, you lose more than skill you lose clarity of thought and personal expression.</p><p>At some point, it’s not about writing better emails.<br> It’s about whether you can think clearly without assistance.</p><h4><strong>Creativity at Risk</strong></h4><p>AI is trained on existing data. It predicts and recombines, it doesn’t truly originate.</p><p>If everyone relies on the same systems:</p><ul><li>Ideas become more similar</li><li>Creativity becomes curated, not created</li></ul><p>The risk isn’t that AI creates bad ideas. It’s that humans stop creating original ones.</p><h4><strong>The Truth Problem</strong></h4><p>AI is not a perfect source of truth.</p><p>As more AI-generated content fills the internet:</p><ul><li>Systems may train on inaccurate or recycled information</li><li>The quality of knowledge may degrade over time</li></ul><p>This creates a deeper issue:<br><strong>What do we trust?</strong></p><p>If the source of truth becomes unstable, it doesn’t just affect knowledge, it affects society.</p><h4><strong>The Efficiency Illusion</strong></h4><p>AI makes everything faster, but not everything needs to be optimized.</p><p>We’re starting to:</p><ul><li>Ask AI questions we could answer instantly ourselves</li><li>Seek validation for simple decisions</li></ul><p>Why spend a minute prompting AI for something your brain can solve in seconds, especially if the answer may be wrong?</p><p>Convenience can quietly replace judgment.</p><h4><strong>This Is Not Anti-AI</strong></h4><p>AI is not the problem.</p><p>It has the potential to:</p><ul><li>Expand education</li><li>Accelerate innovation</li><li>Improve lives at scale</li></ul><p>The real issue is <strong>misuse</strong>.</p><p>If we use AI to replace thinking, we weaken ourselves.<br>If we use it to enhance thinking, we become more powerful.</p><h4><strong>A Better Way to Use AI</strong></h4><p>There’s a simple rule:</p><p><strong>Think first. Use AI second.</strong></p><ul><li>Solve the problem yourself</li><li>Form your own perspective</li><li>Then use AI to refine, expand, or execute</li></ul><p>This keeps you:</p><ul><li>Independent in thought</li><li>Creative in approach</li><li>Responsible for decisions</li></ul><p>AI should be a tool, not a crutch.</p><h4><strong>Final Thought</strong></h4><p>AI will shape the future. That’s inevitable.</p><p>But the real question is:</p><p><strong>What will we stop doing because of it and what will that cost us?</strong></p><p>We can either:</p><ul><li><em>Depend on systems to think for us</em></li></ul><p>Or:</p><ul><li><em>Use them to become sharper, faster, and more capable</em></li></ul><p>The difference is how we choose to use them.</p><h4>What’s Next</h4><p>This is just the beginning.</p><p>As AI continues to evolve, understanding how it works becomes just as important as knowing how to use it. In upcoming articles, we’ll break down some key concepts shaping the space:</p><ul><li><strong>LLM tokens: </strong>how AI actually processes language, input/output tokens.</li><li><strong>Quantization: </strong>making models smaller and faster. e.g 4-bit, 8-bit</li><li><strong>Running LLMs locally: </strong>privacy, control, and performance.</li><li><strong>Small language models: </strong>why bigger isn’t always better.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5072f1b8286" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Future of communication (Phone)]]></title>
            <link>https://medium.com/@vhlnd/future-of-communication-phone-8ff4480b7b57?source=rss-c60d6c295296------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ff4480b7b57</guid>
            <category><![CDATA[neuralink]]></category>
            <category><![CDATA[phone]]></category>
            <category><![CDATA[human-brain-interface]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Innocent Munyadziwa]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 18:06:51 GMT</pubDate>
            <atom:updated>2022-12-20T18:06:51.490Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqGwcbNtmmWC1fBG26c2Ig.png" /><figcaption>Image by GarryKillian on Freepik</figcaption></figure><h3>Introduction</h3><p>The future of communication is a topic that has garnered increasing attention in recent years, as technology continues to advance at an unprecedented rate. With the proliferation of smartphones and the widespread adoption of social media and messaging apps, the way we communicate has already undergone significant transformation in just a few short decades.</p><p>However, this is only the beginning, as new technologies and platforms are constantly emerging that are changing the way we interact with one another. In this article, we will explore some of the trends that are shaping the future of communication and consider how they may impact the way we connect with others in the years to come.</p><h3>A brief history of cellphones</h3><p>The history of cellphones, or mobile phones, dates back to the 1940s, when researchers first began developing wireless communication technology. However, it wasn’t until the 1970s that the first portable, handheld cellphone was invented. The first portable cellphone was created by Motorola and was called the DynaTAC 8000X. It was released in 1983 and was about the size of a brick, weighing about two pounds. It was also very expensive, costing around $4,000 in today’s dollars.</p><p>In the following years, cellphones became smaller and more affordable, leading to widespread adoption. In the 1990s, cellphones began to include features such as text messaging and internet access, further increasing their popularity. In the 2000s, smartphones, which are essentially mini computers with cellphone capabilities, became widespread. These devices allowed users to access the internet, send emails, and download apps, among other things.</p><p>Today, cellphones are an integral part of daily life for many people around the world. They come in a variety of sizes and shapes, and offer a wide range of features and capabilities.</p><h3>Dreaming about our future</h3><p>We all dream about what the future will hold. For many of us, those dreams include owning a cutting-edge smartphone.</p><p>There are many ideas floating around about what the future of smart phones may hold. Some believe that they will become more like miniature computers, while others think that they will retain their current form but with greatly enhanced capabilities.</p><p>Regardless of what the future holds, there is no doubt that smart phones are here to stay and will continue to revolutionize the way we communicate and interact with the world around us.</p><p>One of the most promising technologies of recent years is Brain Computer Interface technology (BCI) i.e. <a href="https://neuralink.com/"><strong>Neural Link</strong></a>. This very futuristic and sci-based approach to brain machine interfacing has yielded many devices that can be used to transmit ‘thoughts’ wirelessly between computers and brains, or indeed any other device with a transmitter on board which can receive the messages sent out by our thick cortices.</p><p>Brain interfaces have the potential to revolutionize the way we communicate with one another. By allowing direct communication between the brain and a computer or other device, brain interfaces could enable people to communicate more quickly and easily than they can with other methods. This could have a wide range of benefits, both for individuals and for society as a whole.</p><p>One of the biggest advantages of brain interfaces is that they could allow people to communicate more quickly and efficiently. Traditional forms of communication, such as speaking or typing, can be slow and cumbersome. In contrast, brain interfaces would allow people to transmit thoughts and ideas directly to one another, potentially at the speed of thought. This could be especially useful in situations where time is of the essence, such as in emergency response situations or during high-stakes negotiations.</p><h4>In the workplace.</h4><p>In addition to the benefits for individuals, brain interfaces could also have positive effects on society as a whole. For example, brain interfaces could facilitate more efficient and effective collaboration, allowing people to work together more seamlessly on complex tasks. This could have important implications for fields such as science, engineering, and business, where collaboration is often critical to success.</p><h4>Concerns.</h4><p>Of course, the widespread adoption of brain interfaces for communication would also raise a number of challenges and potential drawbacks. For example, there are concerns about privacy and security, as well as the potential for misuse of the technology. Additionally, there are also technical challenges that would need to be overcome, such as the development of reliable and user-friendly brain-computer interfaces.</p><p>Overall, while there are certainly challenges and potential drawbacks to the use of brain interfaces for communication, the potential benefits are significant. As the technology continues to advance, brain interfaces could play an increasingly important role in the way we communicate with one another.</p><h3>Potential applications.</h3><p><strong>Cyber Security: E</strong>xcited for the future of antivirus technology. Another important aspect of security will be protecting against malware that can manipulate a person’s actions, like making them dance for 24 hours. To fully protect ourselves online, we may also need brain-computer interface (BCI) ad blockers to block malicious ads.</p><p><strong>Advertisement and Marketing</strong>: Receiving Ads based on your behavior collected directly from your brain, allowing for more personalized and targeted advertising experiences.</p><p><strong>Gaming Industry</strong>: What if you could play a game while wearing a device that stimulates your brain with chemical and electrical impulses, creating an immersive virtual reality experience? Is it still just a game, or something more?.</p><p><strong>Artificial intelligence industry</strong>: Sharing of information between artificial brain (deep neural networks) and human brain. This could potentially allow humans to access and process vast amounts of data and information in real-time, enhancing our cognitive abilities and enabling us to perform tasks and make decisions more efficiently.</p><p><strong>Language Translation</strong>: In the future, people will be able to understand someone speaking a different language in real-time.</p><h3>Conclusion</h3><p>It is possible that in the near future, we will be able to communicate information and ideas through thoughts alone, without the need for written or spoken language. This could potentially revolutionize the way we share and access information, leading to a world where articles and other forms of written communication may no longer be necessary.</p><p>Additionally, it is possible that technology will advance to the point where the line between real and artificially created reality becomes blurred. Perhaps a technological singularity?</p><h4>References</h4><p><a href="https://en.wikipedia.org/wiki/History_of_mobile_phones">History of mobile phones - Wikipedia</a></p><p><a href="https://neuralink.com/applications/">https://neuralink.com/applications/</a></p><p><a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3497935/">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3497935/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ff4480b7b57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Existing .NET 5 Project with Docker to AWS Lambda]]></title>
            <link>https://awstip.com/deploying-existing-net-5-project-with-docker-to-aws-lambda-a7e0d8f1382b?source=rss-c60d6c295296------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7e0d8f1382b</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[net5]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Innocent Munyadziwa]]></dc:creator>
            <pubDate>Sun, 05 Jun 2022 20:03:04 GMT</pubDate>
            <atom:updated>2022-07-23T16:00:55.744Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploying Existing .NET 5 Project with Docker to AWS Lambda</h3><h3>Introduction.</h3><p>In this article we will be demonstrating how to deploy an existing .Net 5 project to AWS Lambda as container <a href="https://docs.amazonaws.cn/en_us/lambda/latest/dg/images-create.html">image</a>. With AWS Lambda, you upload your code and run it without thinking about servers. Many customers enjoy the way this works, but if you’ve invested in container tooling for your development workflows, it’s not easy to use the same approach to build applications using Lambda. To help you with that, you can now package and deploy Lambda functions as container images of up to 10 GB in size. In this way, you can also easily build and deploy larger workloads that rely on sizable dependencies, such as machine learning or data intensive workloads.</p><h3>Dependencies.</h3><h4>Install Docker</h4><p><a href="https://docs.docker.com/get-docker/">Docker </a>is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.</p><h4>Install AWS Visual Studio Plugin</h4><p>The <a href="https://github.com/aws/aws-toolkit-visual-studio">AWS Toolkit for Visual Studio</a> is an extension for Microsoft Visual Studio running on Microsoft Windows that makes it easier for developers to develop, debug, and deploy applications using Amazon Web Services, allowing you to get started faster and be more productive.</p><h4>Install Amazon.Lambda.Tools</h4><p>To be able to deploy the project to AWS, we need to install Amazon.Lambda.Tools using the following command:</p><pre>dotnet tool install -g Amazon.Lambda.Tools</pre><p>If the tool is already installed, be sure to update to the latest version using the following command:</p><pre>dotnet tool update -g Amazon.Lambda.Tools</pre><h3>Files to add</h3><p>Add the following files to your project root folder.</p><h4>Dockerfile</h4><p>A template file for defining your Serverless functions and other AWS resources using AWS CloudFormation Serverless Application Model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fdf406fdddb60fc9d20603c7f0bd685/href">https://medium.com/media/2fdf406fdddb60fc9d20603c7f0bd685/href</a></iframe><h4>serverless.template</h4><p>A template file for defining your Serverless functions and other AWS resources using AWS CloudFormation Serverless Application Model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8522696e0cf72992bf5200df0d32f7d7/href">https://medium.com/media/8522696e0cf72992bf5200df0d32f7d7/href</a></iframe><h4>aws-lambda-tools-defaults.json</h4><p>This file provides default values for the deployment wizard inside Visual Studio and the AWS Lambda commands added to the .NET Core CLI.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b4a6d0daa7ce72c151521d3a19b86fc/href">https://medium.com/media/2b4a6d0daa7ce72c151521d3a19b86fc/href</a></iframe><h4>LambdaEntryPoint.cs</h4><p>Class that derives from Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction. The code in this file bootstraps the ASP.NET Core hosting framework.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/80457cbcdec23c61dcaa848f832b048b/href">https://medium.com/media/80457cbcdec23c61dcaa848f832b048b/href</a></iframe><h4>Before And After.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfEIIoapGJR-HXSWeBj_gQ.png" /></figure><h4>Finally let’s change the project type.</h4><p>We can do so by simply adding the following line of code inside PropertyGroup tag in your .csproj project file.</p><pre>&lt;AWSProjectType&gt;Lambda&lt;/AWSProjectType&gt;</pre><h3>Publish project.</h3><p><strong>To deploy, right click on the project and select Publish to AWS Lambda.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*B2j1d4t9_4eostdLDwKnJg.png" /></figure><p><strong>Fill in the bucket name and stack name if you have not done so already.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRHa8Jot-iFqTlg-SovjRg.png" /></figure><p><strong>If all went smoothly, you should eventually see a command line popup window indicating that your docker image is being pushed to AWS.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6K-xFFDcsYq5DstxBuuJw.png" /></figure><p><strong>Results.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*QJypHVXU4rcfH8zqAibu1g.png" /></figure><h3>Conclusion.</h3><p>In this article, we have demonstrated how to deploy existing .Net 5 project to AWS Lambda. The following resources might helpful, If you want to learn more about AWS Lambda docker and understand more about the subject <a href="https://aws.amazon.com/blogs/developer/exploring-net-5-with-the-aws-toolkit-for-visual-studio/">here</a>.</p><p>Happy Hacking! :)</p><h4>Sources.</h4><p><a href="https://github.com/aws/aws-lambda-dotnet">https://github.com/aws/aws-lambda-dotnet</a> <a href="https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/">https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/</a> <a href="https://aws.amazon.com/blogs/developer/net-5-aws-lambda-support-with-container-images/">https://aws.amazon.com/blogs/developer/net-5-aws-lambda-support-with-container-images/</a></p><p><em>Originally published at </em><a href="https://vhlnd.dev/blog/deploy-net5-docker-to-lambda.html"><em>https://vhlnd.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7e0d8f1382b" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/deploying-existing-net-5-project-with-docker-to-aws-lambda-a7e0d8f1382b">Deploying Existing .NET 5 Project with Docker to AWS Lambda</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implement background process in flutter]]></title>
            <link>https://medium.com/@vhlnd/implement-background-process-in-flutter-48baca297a53?source=rss-c60d6c295296------2</link>
            <guid isPermaLink="false">https://medium.com/p/48baca297a53</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[isolate]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Innocent Munyadziwa]]></dc:creator>
            <pubDate>Mon, 16 May 2022 20:27:45 GMT</pubDate>
            <atom:updated>2022-05-16T20:27:45.900Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TVD61Niaah3R-CYMdsm8g.jpeg" /></figure><h3>Introduction</h3><p>A background process is a computer process that runs behind the scenes and without user intervention. Typical tasks for these processes include logging, system monitoring, scheduling and user notification. The background process usually is a child process created by a control process for processing a computing task, in flutter that would be an Isolate. After creation, the child process will run on its own, performing the task independent of the control process, freeing the control process of performing that task.</p><h3>What is an Isolate?</h3><p>An isolate is a thread that has an event loop that continuously processes events in its own memory space (mini computer with one thread). In effect when the main dart function executes, it executes in an isolate that scans for available events and hangs when none are available, an opportunity for the system to decide to run the garbage collector for example or grab some coffee.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/181/1*35HpH2A9A6HyIlwyUjxwMw.png" /></figure><p>Dart can execute multiple threads by spawning additional isolates.</p><p>Creating more isolates can be useful for heavy computation processing but most Flutter apps do not need spawning additional isolates unless it becomes an issue and impacts the frame rate.</p><p>Languages such as Java, C++ have multi-threading built-in but it comes at performance costs, especially when it comes to garbage collection. With one thread running and a single memory space per garbage collector, it becomes very efficient as predictable (no mutation possible during garbage collection cycles)</p><p>All Dart code runs in an isolate, and code can access classes and values only from the same isolate. Different isolates can communicate by sending values through ports (see ReceivePort, SendPort). Isolates run code in its own event loop, and each event may run smaller tasks in a nested microtask queue.</p><h3>How Event Loop and Isolates Work</h3><p>Most modern devices have multi-core CPUs. To take advantage of all those cores, developers sometimes use shared-memory threads running concurrently. However, shared-state concurrency is error prone and can lead to complicated code. Instead of threads, all Dart code runs inside of isolates. Each isolate has its own memory heap, ensuring that none of the state in an isolate is accessible from any other isolate.</p><p>Because there’s no shared memory, you don’t have to worry about mutexes or locks. Using isolates, your Dart code can perform multiple independent tasks at once, using additional processor cores if they’re available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*V0EUWXg8ffnLzxsYa3kEgg.png" /></figure><p>The items in the queue might represent user input, file I/O notifications, timers, and more.</p><h3>Using Isolates</h3><p>Because the computation time is unpredictable and could take longer than 5s depending on image size, we’ll use isolates to to create sub thread resources to manipulate photos in the background synchronously in the following example.</p><h4>Isolate.spawn</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0763e3240131d1474a721a0af74a1233/href">https://medium.com/media/0763e3240131d1474a721a0af74a1233/href</a></iframe><h4>Compute function</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be090028577fc18274c258733ac8d5dc/href">https://medium.com/media/be090028577fc18274c258733ac8d5dc/href</a></iframe><h3>Conclusion.</h3><p>We briefly discussed what an isolate is, how event loops and isolates work, and how to use isolates in flutter. Hope we demonstrated how to use Isolate.spawn or the calculate function to construct a flutter dart background process. Please see the resources listed below for more information.</p><h4>Sources</h4><p><a href="https://medium.com/flutter-community/thread-and-isolate-with-flutter-30b9631137f3">https://medium.com/flutter-community/thread-and-isolate-with-flutter-30b9631137f3</a> <a href="https://api.flutter.dev/flutter/dart-isolate/Isolate-class.html">https://api.flutter.dev/flutter/dart-isolate/Isolate-class.html</a> <a href="https://dart.dev/guides/language/concurrency">https://dart.dev/guides/language/concurrency</a> <a href="https://hackernoon.com/an-introduction-to-dart-code-and-isolate-em3j34u1">https://hackernoon.com/an-introduction-to-dart-code-and-isolate-em3j34u1</a><br>https://en.wikipedia.org/wiki/Background_process</p><p><em>Originally published at </em><a href="https://vhlnd.dev/blog/implement-background-process-in-flutter.html"><em>https://vhlnd.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48baca297a53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Road to Clean Code]]></title>
            <link>https://medium.com/@vhlnd/the-road-to-clean-code-76745f8884c0?source=rss-c60d6c295296------2</link>
            <guid isPermaLink="false">https://medium.com/p/76745f8884c0</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[coding-principle]]></category>
            <category><![CDATA[better-code]]></category>
            <category><![CDATA[good-coding-practice]]></category>
            <category><![CDATA[coding-guideline]]></category>
            <dc:creator><![CDATA[Innocent Munyadziwa]]></dc:creator>
            <pubDate>Fri, 14 Jan 2022 20:39:06 GMT</pubDate>
            <atom:updated>2022-01-14T21:04:25.629Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwpAqrn3QcdDQCjNBZAN8g.jpeg" /></figure><h3><strong>Introduction</strong>.</h3><p>This post was written as a guideline for writing better code; bookmark it so you can easily refer back to it…. as we all know, clean coding is not a <strong>skill</strong> that can be learned <strong>overnight</strong>.</p><p>Writing clear, comprehensible, and maintainable code is a skill that every developer should have. In this article, we’ll look at some of the <strong>best practices</strong> for improving <strong>code quality</strong>, by writing better <strong>Functions</strong>, <strong>Classes,</strong> <strong>Modules</strong>, and <strong>Comments</strong>, as well as providing code samples for some of these concepts.</p><p><strong>Why Write Clean Code?</strong></p><p>Writing <strong>clean code</strong> is important because it allows you to clearly <strong>communicate</strong> with the next <strong>person</strong> who works with what you’ve written. The more declarative code is, the better it communicates and the easier it is to fix problems when they arise. ~<em>Echobind</em></p><ul><li>Easier for you and others to understand.</li><li>In the long run, clean code will save you time and money.</li><li>Clean code is also maintainable.</li></ul><p><strong>Why should you read this article all the way through? :)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*ag1R8b_gtTQLnn537IU9Bg.png" /></figure><h3>File Structure.</h3><p>A successful file structure organizes your data and code with the goal of repeatability, making it easier for you and your collaborators to revisit, revise and develop your project. File structures are not fixed entities, but rather build a framework that communicates the function and purpose of elements within a project by separating concerns into a hierarchy of folders and using consistent, chronological, and descriptive names. ~<em>George Sun</em></p><h4>Guidelines</h4><ul><li>One language per file.</li><li>Avoid generating another language with another, e.g. writing <strong>xml</strong> or <strong>html</strong> using <strong>TS</strong> or <strong>C#</strong> strings.</li><li>Consider using relative file paths, not absolute paths, to facilitate shareability.</li></ul><p>Remember <strong>Consistency is key</strong></p><h3>Functions || Methods.</h3><p>“If you can extract a function out of your functions, then your function is doing more than two things. rather have bunch of functions with good names”. ~<em>Uncle Bob</em></p><h4>Guidelines</h4><ul><li>Functions should do <strong>one </strong>thing. They should do it well. They should do it <strong>only</strong>. ~<em>Clean Code</em></li><li>Naming guideline, use “<strong>Verbs</strong>” (action words)</li><li>The method/function <strong>Name</strong> says it all.</li><li>Avoid functions with more than <strong>3</strong> levels of indentation.</li><li>Avoid passing more than <strong>3</strong> variables as arguments, if <strong>4+</strong> that may just be a class.</li><li>Avoid passing B<strong>ooleans</strong> into functions, that means there must be an <strong>if</strong> statement</li></ul><p><strong>Validating Function Arguments</strong></p><p>Add guard clauses to <strong>fail</strong> <strong>fast</strong> if the input is invalid as they help separate validation from actual business rules later on in the code. e.g.</p><p><strong>Try return early</strong> in functions</p><pre>function doSomething(price: number) {<br>	if(price &lt;= 0) <br>	throw new ArgumentException(&quot;price must be greater than 0&quot;) </pre><pre>	 // Do something<br>	}</pre><h3>Classes and Interfaces.</h3><p><strong>Naming</strong></p><ul><li>Class <strong>name </strong>guidelines, (<strong>Nouns</strong>, Single responsibility)</li><li>Use Pascal Case for class names</li><li>Start Interface names with <strong>I</strong>, followed by a meaningful name in Pascal case</li></ul><p><strong>Variables</strong></p><ul><li>Strive to create “<strong>Mayfly variables</strong>”. Declare variables close to first use. not at the top all the time. ~<em>Uncle Bob</em></li><li>Remove variables from <strong>scope</strong> as soon as possible.</li></ul><p><strong>Other</strong></p><ul><li>Classes over <strong>100</strong> lines should be thought through, for possible “<strong>separation </strong>of <strong>concerns</strong>”</li></ul><h3>Comments.</h3><p>“A comment is a failure to express yourself in code. If you fail, then write a comment; but try not to fail.” ~<em>Uncle Bob Martin</em>, emphasis on in-house code.</p><p><strong>Self documenting</strong> code uses well chosen <strong>variable names</strong> (and function names) to make the code read as close to English as possible. This should be your <strong>goal</strong>.</p><p><strong>No Need to a Comment Here</strong></p><pre><strong>// Saving user</strong><br>function saveUser(user: User) {<br>									<br>}</pre><ul><li>Clear <strong>Dead Code</strong> or <strong>Zombie code</strong>, double check if its safe to <strong>delete</strong>.</li><li>Dot not leave code in comments: <strong>Please, Do Not</strong>. This one is serious because others who see the code will be<strong> afraid to delete</strong> it because they do not know if it is there for a reason.</li></ul><h3>Clean Code Principles.</h3><p><strong>There are three core principles to remember writing clean code:</strong></p><ul><li>Choose the right<strong> tool</strong> for the job</li><li>Optimize the signal-to-noise ratio</li><li>Strive to write <strong>self-documenting</strong> code</li></ul><p><strong>Other Principles:</strong></p><ul><li><strong>Coding Standards/Conventions</strong> — So we don’t end up having different code with different coding styles among our team.</li><li><strong>SOLID </strong>— Design principles, this is a topic in itself but mastering the S will already help us in a tremendous way.</li><li><strong>Design Patterns</strong> — There are tons of design patterns out there, some people already resolved our problem.</li><li>Refactor as soon as possible.</li></ul><h3>Bonus.</h3><p>“Its not easy to write an algorithm, but once it works, your not done its a sign to clean your code.” ~<em>Uncle Bob</em></p><p>“<strong>Clean code</strong> is <strong>simple </strong>and <strong>direct</strong>. Clean code reads like well-written prose. Clean code never obscures the designer’s intent but rather is full of crisp abstractions and straightforward lines of control. “ ~<em>Grady Booch</em> author of Object Oriented Analysis and Design with Applications</p><p>Try reading your code <strong>Aloud</strong>, it exposes problems.</p><p>Remember <strong>Reading</strong> code is <strong>harder</strong> than <strong>writing</strong>.</p><p>“If you can’t write <strong>unit tests</strong> for your code, you probably doing something <strong>dodgy</strong>.” ~<em>Vhlnd</em>.</p><p>Always <strong>design</strong> first, then <strong>code</strong>. Take time to understand the requirement, discuss with the team, design properly, and then start coding. Do not touch the code until the whole thing has been designed at low level.</p><h3>Conclusion.</h3><p>Writing <strong>clean code</strong>, as previously stated, is not a skill that can be acquired overnight, (unless if you have that fancy brain chip implant) :). its a <strong>habit</strong> that can be formed by keeping these <strong>guidelines</strong> and <strong>principles</strong> in mind when writing <strong>code</strong>. These habits will become second nature sooner or later. These guidelines and principles will not only make you a team player, will also make you feel better when writing your own code. This was just an introduction to writing better code, more is still to come.</p><h4>Sources</h4><p><a href="https://mitcommlab.mit.edu/broad/commkit/file-structure/">https://mitcommlab.mit.edu/broad/commkit/file-structure/</a> <a href="https://blog.echobind.com/why-should-i-write-clean-code-6068548dbd7e">https://blog.echobind.com/why-should-i-write-clean-code-6068548dbd7e</a> <a href="https://www.pluralsight.com/blog/software-development/7-reasons-clean-code-matters">https://www.pluralsight.com/blog/software-development/7-reasons-clean-code-matters</a> <a href="https://arghya.xyz/articles/coding-guidelines">https://arghya.xyz/articles/coding-guidelines</a><br><a href="https://www.arcanys.com/blog/the-importance-of-clean-code">https://www.arcanys.com/blog/the-importance-of-clean-code</a></p><p><em>Originally published at </em><a href="https://vhlnd.dev/blog/road-to-clean-code-post.html"><em>https://vhlnd.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76745f8884c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>