<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: OLUWAYEMI FISAYO NATHANIEL</title>
    <description>The latest articles on DEV Community by OLUWAYEMI FISAYO NATHANIEL (@fishi).</description>
    <link>https://dev.to/fishi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F811920%2Fec0f6cd9-2765-4c63-9dad-debf4cce88e4.png</url>
      <title>DEV Community: OLUWAYEMI FISAYO NATHANIEL</title>
      <link>https://dev.to/fishi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fishi"/>
    <language>en</language>
    <item>
      <title>How We Predicted Drug Quantities in Healthcare Using Machine Learning — And Why It Matters</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Wed, 18 Jun 2025 21:05:58 +0000</pubDate>
      <link>https://dev.to/fishi/how-we-predicted-drug-quantities-in-healthcare-using-machine-learning-and-why-it-matters-3dbi</link>
      <guid>https://dev.to/fishi/how-we-predicted-drug-quantities-in-healthcare-using-machine-learning-and-why-it-matters-3dbi</guid>
      <description>&lt;p&gt;In healthcare systems, small inefficiencies lead to big problems. One such inefficiency we faced recently involved how drug quantities were being requested, approved, and dispensed across pharmacies and Health Maintenance Organizations (HMOs).&lt;/p&gt;

&lt;p&gt;Sometimes patients received too much medication. Other times, too little. This inconsistency created financial waste, delayed treatments, and friction between stakeholders. So, we asked a simple question:&lt;/p&gt;

&lt;p&gt;Can we predict how much of a drug should be dispensed — before anyone manually reviews the request?&lt;/p&gt;

&lt;p&gt;With the power of ML.NET and historical fulfillment data, we built a predictive engine that made this possible. Here’s how we did it — and why it’s transforming our operations.&lt;/p&gt;

&lt;p&gt;🚑 The Business Problem&lt;br&gt;
In many healthtech environments, prescription fulfillment goes something like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A patient is prescribed medication.&lt;/li&gt;
&lt;li&gt;The health care organization/company submits the request to a partner pharmacy.&lt;/li&gt;
&lt;li&gt;The pharmacy dispenses based on the prescription — often guessing or relying on past habits.&lt;/li&gt;
&lt;li&gt;health care organization/company manually review some cases, often overriding the quantity.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This process introduces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delays in care due to manual reviews&lt;/li&gt;
&lt;li&gt;Over-dispensation, which increases operational costs&lt;/li&gt;
&lt;li&gt;Under-dispensation, which leads to poor patient outcomes&lt;/li&gt;
&lt;li&gt;Data inconsistencies, making it hard to track trends or audit decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We needed a solution that brought data-driven consistency into the process — fast, scalable, and reliable.&lt;/p&gt;

&lt;p&gt;🧠 Our ML-Based Solution&lt;br&gt;
We used ML.NET to build a machine learning model that predicts the quantity of drugs to be dispensed, based on historical prescription data.&lt;/p&gt;

&lt;p&gt;Instead of guessing or manually overriding, the system now gives a smart prediction — instantly — based on similar past transactions.&lt;/p&gt;

&lt;p&gt;Our model was trained on thousands of past records that included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The drug’s dosage&lt;/li&gt;
&lt;li&gt;Frequency and duration&lt;/li&gt;
&lt;li&gt;Drug strength&lt;/li&gt;
&lt;li&gt;The specific name of the drug&lt;/li&gt;
&lt;li&gt;Its dosage form (tablet, injection, syrup, etc.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These fields gave us a rich foundation for pattern recognition. The only field we did not provide the model during prediction was the quantity — that’s what we asked it to predict.&lt;/p&gt;

&lt;p&gt;🧠 Our ML-Based Journey&lt;br&gt;
🔹 Starting with AutoML&lt;br&gt;
I initially explored this problem using ML.NET AutoML, which simplified the process of selecting the best algorithm and hyperparameters. With minimal code, I was able to train models on historical data and evaluate their performance quickly.&lt;/p&gt;

&lt;p&gt;This approach gave me early insights into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What features contributed most to prediction accuracy&lt;/li&gt;
&lt;li&gt;How regression models responded to healthcare-specific data&lt;/li&gt;
&lt;li&gt;The baseline performance I could expect&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AutoML was incredibly helpful for prototyping and learning, but I eventually needed more control and flexibility — especially around how features were transformed and how the model integrated with our system.&lt;/p&gt;

&lt;p&gt;🔹 Moving to the ML.NET API&lt;br&gt;
To take full control, I transitioned to using the ML.NET API manually. This allowed me to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose and configure the exact model&lt;/li&gt;
&lt;li&gt;Define custom pipelines for feature engineering&lt;/li&gt;
&lt;li&gt;Handle data preprocessing, model training, and evaluation step-by-step&lt;/li&gt;
&lt;li&gt;Save and load the model easily for use in our production API&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🔹 Why Poisson Regression?&lt;br&gt;
I selected LbfgsPoissonRegression, a regression algorithm well-suited for count prediction problems — such as predicting quantities (whole numbers) rather than continuous values.&lt;/p&gt;

&lt;p&gt;Poisson regression worked particularly well because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The target (Quantity) is always a positive count&lt;/li&gt;
&lt;li&gt;It handles skewed distributions in data better than standard linear regression&lt;/li&gt;
&lt;li&gt;It’s optimized for scenarios where the output is based on frequency/intensity — a perfect fit for healthcare dispensing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📊 The Dataset&lt;br&gt;
We trained our model on thousands of historical records containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dose&lt;/li&gt;
&lt;li&gt;Frequency&lt;/li&gt;
&lt;li&gt;Strength&lt;/li&gt;
&lt;li&gt;Duration&lt;/li&gt;
&lt;li&gt;DrugName&lt;/li&gt;
&lt;li&gt;DosageForm&lt;/li&gt;
&lt;li&gt;And the Quantity dispensed (our label)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To prepare the data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We removed incomplete or duplicate records&lt;/li&gt;
&lt;li&gt;Standardized fields like dosage and drug names&lt;/li&gt;
&lt;li&gt;One-hot encoded categorical variables (e.g., drug name, dosage form)&lt;/li&gt;
&lt;li&gt;Split data into training and testing sets&lt;/li&gt;
&lt;li&gt;The Quantity column was not used during prediction — it was the value we wanted the model to learn and forecast.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⚙️ The Engine Behind the Prediction&lt;br&gt;
While the internal implementation involved advanced machine learning (we used a Poisson Regression model — great for count-based predictions), we intentionally designed the system to be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fast: Trains on new data in seconds&lt;/li&gt;
&lt;li&gt;Portable: Can run inside any .NET service&lt;/li&gt;
&lt;li&gt;Accessible: Exposed via a simple web API&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two API endpoints were created:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;GET /api/drugquantityprediction/train — trains the model on updated fulfillment data&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;POST /api/drugquantityprediction/predict — accepts drug details and returns the predicted quantity&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This allowed other internal tools — like HMO admin dashboards — to request predictions in real-time.&lt;/p&gt;

&lt;p&gt;📊 Results and Business Impact&lt;br&gt;
After integrating this solution into our fulfillment workflow, we saw immediate benefits:&lt;/p&gt;

&lt;p&gt;✅ Reduced manual reviews by over 60%&lt;br&gt;
✅ Improved pharmacy compliance — pharmacists now had a clear reference&lt;br&gt;
✅ Increased trust from HMO partners due to transparent predictions&lt;br&gt;
✅ Lower error rates in dispensation, improving patient outcomes&lt;br&gt;
✅ Enabled data-backed auditing of past drug quantity decisions&lt;/p&gt;

&lt;p&gt;💬 What Makes This Powerful?&lt;br&gt;
No more guesswork: Instead of relying on memory or inconsistent pharmacy habits, we use historical data to guide decisions.&lt;/p&gt;

&lt;p&gt;Smart scaling: The API is stateless and scalable, making it easy to roll out across new partners or platforms.&lt;/p&gt;

&lt;p&gt;Localized intelligence: Because we train the model on our own fulfillment history, the predictions are uniquely tailored to our ecosystem.&lt;/p&gt;

&lt;p&gt;Simplicity for users: Clinicians and pharmacy staff don’t need to understand machine learning — they just get a recommended quantity, right when they need it.&lt;/p&gt;

&lt;p&gt;🔮 What’s Next?&lt;br&gt;
This solution is just the beginning. Here's what we're working on next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deploying to Azure App Service for public API consumption&lt;/li&gt;
&lt;li&gt;Building a feedback loop to retrain the model as new fulfillment patterns emerge&lt;/li&gt;
&lt;li&gt;Adding confidence scoring to flag low-certainty predictions&lt;/li&gt;
&lt;li&gt;Enabling multi-drug predictions for combo prescriptions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🤝 Final Thoughts&lt;br&gt;
This project is proof that machine learning doesn’t have to be a buzzword. When applied thoughtfully, it can solve deeply practical problems — like how much medicine someone should receive — and unlock real efficiency for businesses.&lt;/p&gt;

&lt;p&gt;It’s also a win for the healthcare ecosystem:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Patients get exactly what they need.&lt;/li&gt;
&lt;li&gt;Pharmacies operate with clarity.&lt;/li&gt;
&lt;li&gt;HMOs reduce waste and build trust.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building for healthtech in Africa or exploring ML.NET for business problems, I’d love to connect.&lt;/p&gt;

&lt;p&gt;Let’s build smarter, faster, and more reliable systems — together.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>healthcare</category>
      <category>healthsolutions</category>
    </item>
    <item>
      <title>Mastering ML.net API: How I Leveraged It for High-Performance Model Training &amp; Deployment</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Mon, 17 Mar 2025 17:04:21 +0000</pubDate>
      <link>https://dev.to/fishi/mastering-mlnet-api-how-i-leveraged-it-for-high-performance-model-training-deployment-nhj</link>
      <guid>https://dev.to/fishi/mastering-mlnet-api-how-i-leveraged-it-for-high-performance-model-training-deployment-nhj</guid>
      <description>&lt;p&gt;In my last post, I shared how AutoML outperformed my manually implemented ML.NET model in prediction accuracy. But instead of stopping there, I dug deeper.&lt;/p&gt;

&lt;p&gt;What if you could achieve even better results while maintaining full control over your model?&lt;/p&gt;

&lt;p&gt;That’s exactly what I did. Instead of relying solely on AutoML, I used its insights to train and optimize a high-performance model using ML.NET API and then deployed it as an API for real-world use.&lt;/p&gt;

&lt;p&gt;Why ML.NET API Still Gives You an Edge Over AutoML&lt;br&gt;
While AutoML is great for quickly generating models, the ML.NET API SDK gives you the ability to:&lt;br&gt;
Customize feature engineering – Tailor data transformations for better predictions.&lt;br&gt;
 Manually fine-tune hyperparameters – Go beyond AutoML’s automatic adjustments for deeper optimization.&lt;br&gt;
 Select the right model evaluation metrics – Focus on performance measures that align with real business needs.&lt;br&gt;
 Deploy models as APIs for real-time predictions – Making ML solutions practical for enterprise applications.&lt;/p&gt;

&lt;p&gt;I applied these principles while working on a healthcare ML solution for accurate drug quantity dispensation for HMOs. Instead of letting AutoML handle everything, I used its insights to strategically fine-tune my ML.NET API implementation—and the difference was huge.&lt;/p&gt;

&lt;p&gt;From Model Training to Deployment: The Real-World Impact.&lt;br&gt;
Rather than stopping at model optimization, I exposed the ML.NET model as an API to integrate it into a larger system. This enabled:&lt;br&gt;
Real-time predictive analytics – Ensuring optimal drug dispensation for patients.&lt;br&gt;
 Scalability and flexibility – The ML model can be updated and improved without disrupting the system.&lt;br&gt;
 Enterprise-ready AI – A structured ML deployment pipeline that integrates seamlessly with healthcare applications.&lt;/p&gt;

&lt;p&gt;Key Takeaways for ML Engineers &amp;amp; Developers&lt;br&gt;
 AutoML is a great starting point, but understanding ML.NET API lets you optimize beyond its defaults.&lt;br&gt;
 Fine-tuning ML models manually gives you control over performance, accuracy, and scalability.&lt;br&gt;
 Deploying ML models as APIs makes AI practical and production-ready for enterprise applications.&lt;/p&gt;

&lt;p&gt;As I continue my ML.NET journey, I’m excited about how machine learning can drive innovation across industries. If you're passionate about ML.NET, AI in production, or deploying scalable ML models, let’s connect!&lt;br&gt;
 Follow for more insights on ML.NET, AI, and .NET development.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>api</category>
      <category>csharp</category>
    </item>
    <item>
      <title>Why Did AutoML Beat My ML.NET Model? The Answer Surprised Me!"</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Mon, 24 Feb 2025 15:49:08 +0000</pubDate>
      <link>https://dev.to/fishi/why-did-automl-beat-my-mlnet-model-the-answer-surprised-me-lej</link>
      <guid>https://dev.to/fishi/why-did-automl-beat-my-mlnet-model-the-answer-surprised-me-lej</guid>
      <description>&lt;p&gt;Last week, I shared my journey using ML.NET to build predictive models, highlighting some key challenges and learnings. (Missed it? Check it out &lt;a href="https://www.linkedin.com/feed/update/urn:li:activity:7297761239970021376/" rel="noopener noreferrer"&gt;https://www.linkedin.com/feed/update/urn:li:activity:7297761239970021376/&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;But something interesting happened... 🤔&lt;/p&gt;

&lt;p&gt;Despite using the same algorithm (L-BFGS Poisson Regression) in both ML.NET API and AutoML, the AutoML-generated model outperformed my manually implemented one—by a lot.&lt;/p&gt;

&lt;p&gt;So, I dug into the AutoML-generated code to uncover what was really happening behind the scenes. Here’s what I found:&lt;/p&gt;

&lt;p&gt;While working on a machine learning solution to optimize resource allocation, I implemented L-BFGS Poisson Regression using ML.NET. Initially, my manually implemented model didn’t achieve the expected prediction accuracy.&lt;/p&gt;

&lt;p&gt;However, when I tested AutoML-generated models, I noticed a significant difference—better predictions, improved generalization, and optimized hyperparameters.&lt;/p&gt;

&lt;p&gt;Curious about this disparity, I analyzed the AutoML-generated code and uncovered key differences in how model evaluation and optimization are handled behind the scenes.&lt;/p&gt;

&lt;p&gt;Key Takeaways from My Analysis:&lt;/p&gt;

&lt;p&gt;AutoML Does More Than You Think: Unlike the ML.NET API, AutoML optimizes hyperparameters, evaluates multiple models, and fine-tunes configurations, which significantly impacts prediction accuracy.&lt;/p&gt;

&lt;p&gt;Flexibility vs. Automation: The ML.NET API gives full control over model selection, hyperparameter tuning, and data preprocessing, but AutoML automates these steps, making it easier to get high-performing models with minimal effort.&lt;/p&gt;

&lt;p&gt;Experience Matters: While AutoML gives great results out of the box, understanding the ML.NET API helps you fine-tune models beyond AutoML’s defaults, unlocking even greater performance tailored to your dataset.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;🔹 AutoML isn’t just a shortcut—it fills in the gaps that most developers wouldn’t optimize manually.&lt;/p&gt;

&lt;p&gt;🔹 But knowing how AutoML works under the hood gives you an edge, letting you push ML.NET even further.&lt;/p&gt;

&lt;p&gt;🔹 A hybrid approach—leveraging AutoML while refining with the ML.NET API—can deliver highly efficient, production-ready models.&lt;/p&gt;

&lt;p&gt;What’s your experience with ML.NET and AutoML? Have you noticed similar differences in model performance? Let’s discuss!&lt;/p&gt;

&lt;p&gt;Follow for more ML.NET insights as I continue exploring real-world machine learning applications!&lt;/p&gt;

&lt;h1&gt;
  
  
  MLNET #MachineLearning #AutoML #DotNet #ArtificialIntelligence #AI #DataScience #DeepLearning #BigData #NeuralNetworks #PredictiveAnalytics #ML #MLInProduction #SoftwareEngineering #TechInnovation #DataDriven #CloudComputing #Azure #DevOps #AIInnovation #AICommunity #FutureOfTech #CareerGrowth #OpenToOpportunities #TechnologyTrends
&lt;/h1&gt;

</description>
      <category>machinelearning</category>
      <category>automl</category>
      <category>mlnet</category>
    </item>
    <item>
      <title>Leveraging ML.NET to Solve Real-World Problems</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Fri, 21 Feb 2025 00:56:39 +0000</pubDate>
      <link>https://dev.to/fishi/leveraging-mlnet-to-solve-real-world-problems-lhp</link>
      <guid>https://dev.to/fishi/leveraging-mlnet-to-solve-real-world-problems-lhp</guid>
      <description>&lt;p&gt;Over the past six weeks, I’ve been on a transformative learning journey with ML.NET, diving deep into how machine learning can be leveraged to solve real-world problems across various industries—all while staying within the powerful .NET ecosystem.&lt;/p&gt;

&lt;p&gt;As a .NET engineer, I’ve always been driven by the challenge of solving complex problems with innovative solutions. ML.NET has not only enhanced my technical skill set but has also opened my eyes to the potential of machine learning in applications ranging from healthcare and finance to logistics and retail.&lt;/p&gt;

&lt;p&gt;One of the most rewarding challenges I tackled was developing a solution in the healthcare space—focused on accurate drug quantity dispensation to HMOs for end users. The solution I built uses predictive models to ensure that drug quantities are dispensed accurately and efficiently, significantly improving operational processes.&lt;/p&gt;

&lt;p&gt;Challenges &amp;amp; Learnings Along the Way&lt;br&gt;
As part of the solution, I experimented with various ML algorithms in ML.NET, working through multiple challenges to achieve optimal accuracy in predicting drug quantities. A few notable challenges included:&lt;br&gt;
Tuning Hyperparameters: Ensuring accurate predictions by adjusting models to get the best Root Mean Squared Error (RMSE) and R-squared (R²) values for different ranges of data sets.&lt;br&gt;
Model Selection: Choosing between algorithms like Regression and Decision Trees, testing their performance on both small and large datasets, and ensuring generalization without overfitting.&lt;br&gt;
Cross-validation: Implementing cross-validation to evaluate model performance across different subsets of data, ensuring robustness and minimizing bias.&lt;br&gt;
A screenshot of the current healthcare solution I deployed shows real-time usage of the ML.NET model—further validating how ML.NET can truly drive impactful solutions.&lt;/p&gt;

&lt;p&gt;This project was just the beginning. As I continue to experiment and learn, I’ll be sharing my hands-on experiences in ML.NET, including:&lt;br&gt;
Best practices for working with ML.NET models&lt;br&gt;
Real-world use cases across various industries&lt;br&gt;
Solutions to common challenges like data preprocessing, model training, and evaluation metrics&lt;/p&gt;

&lt;p&gt;🔔 Stay tuned! Every week, I’ll be sharing fresh insights, challenges, and success stories from my ML.NET exploration. Whether you're a recruiter, fellow engineer, or machine learning enthusiast, let’s connect and discuss how ML.NET is transforming industries!&lt;br&gt;
Let’s build and innovate together! &lt;/p&gt;

&lt;h1&gt;
  
  
  MLNET #MachineLearning #DotNet #AI
&lt;/h1&gt;

&lt;h1&gt;
  
  
  DataScience #PredictiveAnalytics #HealthcareInnovation #SDCA #FastForestRegression #LbgfsPoissonRegression #CareerGrowth #OpenToOpportunities #ML #RMSE #RSquared #HyperparameterTuning #CrossValidation #DataScienceEngineering #MLInProduction
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frpkkwy64rayu80lbl1px.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frpkkwy64rayu80lbl1px.jpg" alt="Image description" width="800" height="1066"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
    <item>
      <title>how to deploy smart contract to the blockchain using scripting</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Tue, 05 Nov 2024 12:36:23 +0000</pubDate>
      <link>https://dev.to/fishi/how-to-deploy-smart-contract-to-the-blockchain-using-scripting-2mc9</link>
      <guid>https://dev.to/fishi/how-to-deploy-smart-contract-to-the-blockchain-using-scripting-2mc9</guid>
      <description>&lt;p&gt;here are steps on how you can deploy your smart contracts using foundry with scripts&lt;br&gt;
N.B : you must have foundry installed in your local machine&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run Anvil : command for running anvil is - "anvil"&lt;/li&gt;
&lt;li&gt;Copy the localhost and paste in command below after --rpc-url&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;forge script script/DeployContract.s.sol --rpc-url http://127.0.0.1:8545 --broadcast --private-key {PRIVATE_KEY}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;our script file will be something like this:&lt;/p&gt;

&lt;p&gt;`// SPDX-License-Identifier: SEE LICENSE IN LICENSE&lt;br&gt;
pragma solidity ^0.8.18;&lt;/p&gt;

&lt;p&gt;import {Script} from "forge-std/Script.sol";&lt;br&gt;
import {Counter} from "../src/Counter.sol";&lt;/p&gt;

&lt;p&gt;contract DeployCounter is Script {&lt;br&gt;
    function run() external returns (Counter) {&lt;br&gt;
        vm.startBroadcast();&lt;br&gt;
        Counter counter = new Counter();&lt;br&gt;
        vm.stopBroadcast();&lt;br&gt;
        return counter;&lt;br&gt;
    }&lt;br&gt;
}`&lt;/p&gt;

&lt;p&gt;Your smart contract should now be deployed to the onchain link&lt;/p&gt;

</description>
      <category>solidity</category>
      <category>smartcontract</category>
      <category>blockchain</category>
      <category>web3</category>
    </item>
    <item>
      <title>Usage of onTap function in a listTile with Drawer</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Thu, 03 Mar 2022 11:45:58 +0000</pubDate>
      <link>https://dev.to/fishi/usage-of-ontap-function-in-a-listtile-with-drawer-3p70</link>
      <guid>https://dev.to/fishi/usage-of-ontap-function-in-a-listtile-with-drawer-3p70</guid>
      <description>&lt;p&gt;When making use of an onTap function in a ListTile widget in flutter: Use it this way:&lt;br&gt;
&lt;code&gt;Widget buildListTile(String text, IconData icon, Function() tapHandler) {&lt;br&gt;
    return ListTile(&lt;br&gt;
      leading: Icon(&lt;br&gt;
        icon,&lt;br&gt;
        size: 26,&lt;br&gt;
      ),&lt;br&gt;
      title: Text(&lt;br&gt;
        text,&lt;br&gt;
        style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),&lt;br&gt;
      ),&lt;br&gt;
      onTap: tapHandler,&lt;br&gt;
    );&lt;br&gt;
  }&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and not  this way:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Widget buildListTile(String text, IconData icon, Function tapHandler) {&lt;br&gt;
    return ListTile(&lt;br&gt;
      leading: Icon(&lt;br&gt;
        icon,&lt;br&gt;
        size: 26,&lt;br&gt;
      ),&lt;br&gt;
      title: Text(&lt;br&gt;
        text,&lt;br&gt;
        style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),&lt;br&gt;
      ),&lt;br&gt;
      onTap: tapHandler,&lt;br&gt;
    );&lt;br&gt;
  }&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;N.B&lt;/strong&gt; : Look how i defined the function in both&lt;/p&gt;

&lt;p&gt;the second way would run your code into errors while your code would be without errors in the first&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Expanded Vs Flexible in Flutter</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Fri, 25 Feb 2022 03:33:48 +0000</pubDate>
      <link>https://dev.to/fishi/expanded-vs-flexible-2a92</link>
      <guid>https://dev.to/fishi/expanded-vs-flexible-2a92</guid>
      <description>&lt;p&gt;Both Creates a widget that controls how a child of a [Row], [Column], or [Flex] flexes.&lt;/p&gt;

&lt;p&gt;If you come from a CSS background, this is related to flexbox&lt;/p&gt;

&lt;p&gt;The only difference between Expanded and Flexible is Expanded is Flexible that doesnt have a fit property&lt;/p&gt;

&lt;p&gt;Example&lt;/p&gt;

&lt;p&gt;Flexible:&lt;br&gt;
&lt;code&gt;Flexible(&lt;br&gt;
flex: 3,&lt;br&gt;
                fit: FlexFit.tight,)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Expanded:&lt;br&gt;
`Expanded(&lt;br&gt;
flex: 3&lt;br&gt;
                //fit: FlexFit.tight,)&lt;/p&gt;

&lt;p&gt;The fit property in Expanded is commented.&lt;/p&gt;

&lt;p&gt;Both use flex the property&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Using Fold method in dart</title>
      <dc:creator>OLUWAYEMI FISAYO NATHANIEL</dc:creator>
      <pubDate>Fri, 25 Feb 2022 03:24:21 +0000</pubDate>
      <link>https://dev.to/fishi/using-fold-method-in-dart-1878</link>
      <guid>https://dev.to/fishi/using-fold-method-in-dart-1878</guid>
      <description>&lt;p&gt;The fold method in dart is used for:&lt;br&gt;
Reducing a collection to a single value by iteratively combining each element of the collection with an existing value&lt;/p&gt;

&lt;p&gt;Uses [initialValue] as the initial value, then iterates through the elements and updates the value with each element using the [combine] function, as if by:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;var value = initialValue;&lt;br&gt;
for (E element in this) {&lt;br&gt;
  value = combine(value, element);&lt;br&gt;
}&lt;br&gt;
return value;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;fold&lt;/strong&gt; method in dart just acts like the &lt;strong&gt;reduce&lt;/strong&gt; method in javascript&lt;/p&gt;

&lt;p&gt;Another example of the fold method in dart :&lt;br&gt;
&lt;code&gt;double get totalNetSpend {&lt;br&gt;
    return groupedTransactionData.fold(0.0, (sum, item) {&lt;br&gt;
      return sum + (item['amount'] as double);&lt;br&gt;
    });&lt;br&gt;
  }&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
