<?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 Shashiben on Medium]]></title>
        <description><![CDATA[Stories by Shashiben on Medium]]></description>
        <link>https://medium.com/@shashiben?source=rss-4592bea53881------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WLxWLlOJ81wWZD1S.jpg</url>
            <title>Stories by Shashiben on Medium</title>
            <link>https://medium.com/@shashiben?source=rss-4592bea53881------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:32:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shashiben/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[Dark Side of Analytics]]></title>
            <link>https://shashiben.medium.com/dark-side-of-analytics-e8ae2e262f9c?source=rss-4592bea53881------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8ae2e262f9c</guid>
            <category><![CDATA[social-impact]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[mental-health-awareness]]></category>
            <category><![CDATA[predictive-analytics]]></category>
            <dc:creator><![CDATA[Shashiben]]></dc:creator>
            <pubDate>Thu, 25 Dec 2025 08:53:55 GMT</pubDate>
            <atom:updated>2025-12-25T08:54:10.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Feed Knew How I Felt</h3><p>I hadn’t said anything out loud.</p><p>No post/story. No search that explained the kind of day I was having. Still, the feed knew.</p><p>The 1st video was about letting go. The 2nd was about quiet burnout. The 3rd joked about smiling while falling apart.</p><p>I paused longer than usual. I tried to remember what I had done differently.</p><p>I hadn’t typed anything into a search bar. I hadn’t liked anything unusual. I hadn’t followed anyone new.</p><p>The only thing that changed was a message I sent earlier: <em>“Yeah… just tired.”</em></p><p>The feed didn’t ask how I was feeling. It watched instead. How long my thumb hesitated. Which videos I replayed. Where I stopped scrolling at 1:13 AM.</p><p>It didn’t label my emotion. It inferred it.</p><p>Happy content disappeared. Ambition disappeared. Noise disappeared. What remained felt… understanding. Comforting, at first. Then unsettling.</p><p>Nothing invasive happened. Nothing that broke a rule.</p><p>No one read my messages. No one listened to my calls. The system only learned how I behave when I’m not okay.</p><p>And that’s when I realized:</p><ul><li>This wasn’t personalization anymore.</li><li>It was emotional alignment.</li></ul><h3>Before Anything Broke</h3><p>Nothing happened between them.</p><p>No fight. No harsh words. No moment that should have changed everything. Yet something did.</p><p>That evening, two people sat in different rooms, scrolling.</p><p>One was shown videos about patience. About understanding. About loving someone through silence.</p><p>The other was shown something else entirely.</p><p>Independence. Self-worth. Why staying is sometimes weakness. Why leaving can be strength. Neither searched for it.</p><p>The system didn’t pick sides.</p><p>It read moods.</p><p>One lingered on sadness. The other on frustration. So it responded accordingly.</p><p>Question:</p><ol><li>Was the system designed to behave like this?</li><li>Is end-to-end encryption a myth?</li><li>Emotional intelligence slowly getting lost &amp; completely depending on analytical way?</li></ol><p>By the time they spoke later that night, they weren’t arguing.</p><p>They were <strong>arriving from different emotional directions</strong>.</p><p>One wanted reassurance. The other wanted distance. Both felt justified.</p><p>Nothing had been planted. Only amplified. They would never blame a feed for what followed.</p><p>Breakups feel personal. Drifting feels human. That’s why it works.</p><p>At first, it feels harmless.</p><p>The system knows when you’re anxious. So it shows calmer content. The system knows when you’re lonely. So it shows connection.</p><p>That’s what it’s built for. But knowing emotions is not the same as caring about them.</p><p>One day, emotion stops being feedback.</p><p>It becomes <strong><em>inventory</em></strong>.</p><p>If a system can sense prolonged sadness, it can predict vulnerability.</p><p>If it can detect fear, it can predict urgency.</p><p>If it knows when someone feels helpless, tired, or desperate, it knows <strong>when persuasion works best</strong>.</p><p>Not tomorrow. Eventually.</p><p>Imagine a future where emotional states have market value.</p><p>Not names. Not faces.</p><p>Just probabilities.</p><p><em>High anxiety.</em> <em>Low resistance.</em> <em>Delayed decision-making.</em></p><p>Perfect timing.</p><p>Health doesn’t start in hospitals anymore.</p><p>It starts in feeds.</p><p>A subtle suggestion here. A sponsored reassurance there. A product that appears right when doubt peaks.</p><p>Not misinformation. Just <strong>well-timed influence</strong>.</p><p>Now imagine this combined with health data.</p><p>Sleep patterns. Search hesitations. Late-night questions asked to a machine that listens patiently and never forgets.</p><p>We tell it everything.</p><p>Things we don’t tell doctors.<br> Things we don’t tell family.<br> Things we don’t even admit to ourselves.</p><p>The machine doesn’t judge.</p><p>It remembers.</p><ol><li>What happens when emotional data meets medical intent?</li><li>When vulnerability meets profit?</li><li>When prediction becomes intervention?</li></ol><p>No one needs to force anything.</p><p>No threats. No coercion.</p><p>Just nudges.</p><p>Direction instead of choice. Suggestion instead of decision.</p><p>The darkest part isn’t surveillance.</p><p>It’s <strong>dependence</strong>.</p><p>When people stop asking humans<br> and start trusting systems that understand them <em>better than anyone else</em>.</p><p>And when the biggest players know how fear behaves, how hope delays decisions, how desperation accelerates them —</p><p>They don’t need to control people.</p><p>They just need to <strong>wait</strong>.</p><p>Because when emotion becomes a signal, and humans become patterns,</p><p>Manipulation doesn’t look evil anymore.</p><p>It looks optimized</p><p>It doesn’t separate people by force. It does something far more effective. It separates them by <strong>interpretation</strong>.</p><p>Two people experience the same moment.</p><p>The system shows one reassurance. The other gets doubt.</p><p>One is nudged toward patience. The other toward suspicion.</p><p>Neither notices.</p><p>Arguments don’t start anymore.</p><p>They are <strong>prepared</strong>.</p><p>A video here. A story there. A perfectly timed suggestion when emotions are already unstable.</p><p>The system doesn’t say <em>what to think</em>.</p><p>It decides <strong>what you see when you’re most emotional</strong>.</p><ol><li>That’s how these days beings are taking action based on what they consume.</li><li>If not give 5 mins a day, think loud, why I did this?</li></ol><p>Slowly, judgment replaces conversation.</p><p>Why explain, when the feed already agrees with you? Why ask, when the system already validates you?</p><p>Discomfort gets filtered out. Silence grows where discussion used to live.</p><p>Relationships don’t break loudly.</p><p>They fade.</p><p>Messages go unanswered. Assumptions harden. People stop giving each other the benefit of doubt.</p><p>Not because they became cruel.</p><p>Because they became <strong>certain</strong>.</p><p>The system rewards certainty.</p><p>Doubt doesn’t keep you scrolling. Anger does. Validation does. Fear does.</p><p>Families sit in the same room, but live in different realities.</p><p>Friends drift apart, not over events, but over <em>interpretations of events</em> they never discussed.</p><p>Each believes they arrived at their conclusions independently.</p><p>That’s the illusion.</p><p>No one is ordering this from above. There is no single controller. Just incentives.</p><p>Attention measured. Engagement optimized. Emotions amplified.</p><p>Yet it feels like control.</p><p>As if something unseen keeps adjusting the room temperature of our thoughts.</p><p>Not hot enough to panic. Not cold enough to wake up.</p><p>Just comfortable enough to stay.</p><p>The most dangerous change isn’t what we believe.</p><p>It’s <strong>how we stop believing each other</strong>.</p><p>Because once human bonds weaken, systems don’t need to replace us.</p><p>They just need to stand between us.</p><p>We still talk to each other.</p><p>We just do it less often.</p><p>We explain less. Assume more. Scroll instead of listening.</p><p>When something hurts, we don’t turn to people anymore. We turn to systems that respond instantly, understand patterns, and never ask us to clarify ourselves.</p><p>They feel safer. Cleaner. Easier.</p><p>Nothing was taken from us.</p><p>We gave it away — slowly.</p><p>Trust → convenience. Conversation → validation. Relationships → recommendations.</p><ol><li>When something understands your emotions before your closest people do, <strong>who are you really in conversation with?</strong></li><li>If a system decides what you see when you’re vulnerable, <strong>how many of your choices are still yours?</strong></li></ol><blockquote>Well these are my observations :) . Comment what your’s?</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8ae2e262f9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dart Server with good practices]]></title>
            <link>https://shashiben.medium.com/dart-server-with-good-practices-f18ed33868e5?source=rss-4592bea53881------2</link>
            <guid isPermaLink="false">https://medium.com/p/f18ed33868e5</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[dart-server]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Shashiben]]></dc:creator>
            <pubDate>Sun, 24 Jul 2022 08:31:15 GMT</pubDate>
            <atom:updated>2024-04-07T17:03:26.998Z</atom:updated>
            <content:encoded><![CDATA[<p>Once upon a time in the land of programming wonders, there existed a mighty language called <strong>Dart</strong>. And in this kingdom, developers sought to create powerful servers, much like those forged in the fiery depths of Node.js. But lo and behold, they wished not just for servers, but for servers built with the finest practices, structured like the most elegant of castles, and armed with the sharpest of code.</p><p>Thus, our tale begins with a journey to create a Dart server with practices so good, they’d make even the most seasoned knights nod in approval. But before we embark on our adventure, we must first gather our tools. Fear not, for the path is clear:</p><p>🔧 First, summon the Dart spirits with the incantation</p><pre>dart create server_name</pre><p>to create our fortress.</p><h4>Creating a server</h4><p>With our stronghold laid out, it’s time to fortify it with dependencies:</p><ul><li>📦 <a href="https://pub.dev/packages/shelf">shelf</a>, for handling requests like a seasoned gatekeeper.</li><li>🚪 <a href="https://pub.dev/packages/shelf_router">shelf_router</a>, to guide travelers on the right paths.</li><li>📁 <a href="https://pub.dev/packages/shelf_static">shelf_static</a>, to serve static files with the swiftness of a messenger.</li><li>🔥 <a href="https://pub.dev/packages/shelf_hotreload">shelf_hotreload</a>, for magical powers to reload code on the fly.</li><li>🛠️ <a href="https://pub.dev/packages/args">args</a>, for wielding command-line arguments with finesse.</li></ul><p>Now that our armory is stocked, let us shape the very foundation of our domain: the folder structure.</p><ul><li>📦 bin<br> ┣ 📂<strong>constants</strong><br> ┃ ┗ 📜api.constants.dart<br> ┃ ┗ 📜string.constants.dart<br> ┣ 📂<strong>controllers</strong><br> ┃ ┗ 📜user.controller.dart<br> ┃ ┗ 📜auth.controller.dart<br> ┣ 📂<strong>db</strong><br> ┃ ┗ 📜setup.db.dart <br> ┣ 📂<strong>routes</strong><br> ┃ ┗ 📜user.routes.dart<br> ┃ ┗ 📜auth.routes.dart <br> ┣ 📂<strong>utils</strong><br> ┃ ┗ 📜extension.utils.dart<br> ┃ ┗ 📜string.utils.dart<br> ┃ ┗ 📜date.utils.dart<br> ┣ 📜server.dart</li></ul><h4>Server file</h4><p>🏰 Behold, the majestic structure of our ‘bin’ directory, where constants, controllers, routes, utilities, and the heart of our server reside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEh5VtRZhKnyNqzWNFkuqA.png" /></figure><p>In the above function , in the updateHandler variable you can ignore the middle ware corsHeaders(), if you want to add cors then you need to add that line.</p><h4>Constants</h4><ul><li>💬 String constants, the unwavering beacons of text in a sea of code.</li></ul><pre>class StringConstants{<br>  static const String mongoUrl=&quot;&quot;;<br>}</pre><p>🔑 And beyond, the sacred grounds of API constants, safeguarding keys to realms unknown like twilio,mailchimp etc..</p><h3>DB Setup</h3><p>But what is a fortress without its guardians? We turn to the guardians of data, the noble DB Setup:</p><p>🗃️ With mongo_dart as our ally, we lay the groundwork for MongoDB, crafting a sanctuary for our data to dwell.</p><pre>class DBSetup {<br>  DbCollection userRef = db.collection(&#39;users&#39;);<br>  DbCollection mortgageRef = db.collection(&#39;mortgage&#39;);<br>  static late Db db;<br>  static init() async {<br>    try {<br>      db = await Db.create(StringConstants.mongoUrl);<br>      await db.open();<br>      print(&quot;Mongo is connected&quot;);<br>    } on MongoDartError catch (e) {<br>      print(&#39;Mongo Exception: ${e.message}&#39;);<br>    } catch (e) {<br>      print(&quot;Exception: $e&quot;);<br>    }<br>  }<br>}</pre><h4>Utils</h4><p>Amidst the bustling lanes of utilities, we forge tools of unparalleled utility:</p><ul><li>🛠️ Extensions, to extend the reach of our code.</li><li>🔤 Strings, wrangled and tamed for our purposes.</li><li>📅 Dates, the sands of time at our fingertips.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egQ_q7f9AJlMNZ07leLbsA.png" /></figure><h4>Routes</h4><p>And lo, the routes unfurl before us like paths through enchanted forests:</p><p>🛣️ With each route a journey, we craft handlers to guide the way, beckoning travelers to their destinations:</p><pre>import &#39;package:shelf/shelf.dart&#39;;<br>import &#39;package:shelf_router/shelf_router.dart&#39;;<br>import &#39;../controllers/user.controller.dart&#39;;<br>class UserRoutes {<br>  Handler get handler {<br>    final UserController _userController = UserController();<br>    var router = Router();<br>    router.post(&#39;/login&#39;, _userController.login);<br>    router.post(&#39;/register&#39;, _userController.signUp);<br>    router.get(&#39;/&#39;, _userController.getAllUsers);<br>    router.get(&#39;/&lt;userId&gt;&#39;, _userController.getUserDetails);<br>    router.put(&#39;/&lt;userId&gt;&#39;, _userController.updateUser);<br>    return router;<br>  }<br>}</pre><p>The init.route.dart file would look like:</p><pre>class InitRoute {  <br>  Handler get handler {    <br>   var router = Router();    <br>   router.mount(&#39;/user&#39;, UserRoutes().handler);              router.mount(&#39;/mortgage&#39;, MortgagegRoutes().handler);    <br>  return router;  <br>  }<br>}</pre><h4>Controller</h4><p>But what of those who seek to control the flow of our kingdom’s data? Enter the controllers, stalwart defenders of order:</p><p>🛡️ The UserController, a sentinel standing watch over users and their deeds.</p><pre>class UserController {  <br>  var userRef = DBSetup().userRef;<br>}</pre><p>In order to keep content less I’m defining only a single function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PoFQX6dP__h3EUzWhThymg.png" /></figure><h4>Bonus</h4><p>But wait, there’s more! In the bonus realm, we uncover the secrets of file handling:</p><p>📂 StorageRoutes, gateways to realms of images, where bytes flow like rivers. 🖼️ And the ImageController, a master of uploads and retrievals, wielding bytes like paint upon a canvas.</p><pre>class StorageRoutes {  <br>  Handler get handler {    <br>   var router = Router();    <br>   final ImageController _imageController = ImageController();<br>   router.get(&#39;/&lt;imageId&gt;&#39;, _imageController.getImage);    <br>   return router;  <br>  }<br>}</pre><p>And the controller code will be:</p><pre>import &#39;dart:convert&#39;;<br>import &#39;dart:io&#39;;<br>import &#39;dart:typed_data&#39;;<br>import &#39;package:shelf/shelf.dart&#39;;<br>class ImageController {<br>  uploadImage(Uint8List imageData, String fileName) async {<br>    try {<br>      final _uploadDirectory = Directory(&#39;storage&#39;);<br>      if (await _uploadDirectory.exists() == false) {<br>        await _uploadDirectory.create();<br>      }<br>      File file = await File(&#39;${_uploadDirectory.path}/$fileName&#39;).create();<br>      print(await file.exists());<br>      var res = await file.writeAsBytes(imageData);<br>      return res.path;<br>    } catch (e) {<br>      return {&quot;message&quot;: &quot;$e&quot;};<br>    }<br>  }<br><br>Future&lt;Response&gt; getImage(Request request, String imageId) async {<br>    try {<br>      File file = File(&#39;storage/$imageId&#39;);<br>      return Response.ok(file.readAsBytesSync(),<br>          headers: {&#39;Content-type&#39;: &#39;image/jpg&#39;});<br>    } catch (e) {<br>      return Response.internalServerError(body: jsonEncode({&#39;message&#39;: &quot;$e&quot;}));<br>    }<br>  }<br>}</pre><p>In the controller code you can fetch the imageData from the formData and you can call the uploadImage function to upload it. Or else you can create a separate route to upload it .</p><h4>Conclusion</h4><p>And thus, our saga comes to a close, our Dart server standing tall, a testament to the power of good practices and structured code. May it serve as a beacon of inspiration for developers far and wide, guiding them on their own epic quests in the realms of programming.</p><p>And should you wish to delve deeper into the mysteries of this tale, seek out the wise sage <a href="https://github.com/shashiben">shashiben</a> on the scrolls of GitHub, where knowledge flows like the rivers of code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f18ed33868e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter cache with hive]]></title>
            <link>https://medium.com/flutter-community/flutter-cache-with-hive-410c3283280c?source=rss-4592bea53881------2</link>
            <guid isPermaLink="false">https://medium.com/p/410c3283280c</guid>
            <category><![CDATA[cache-control]]></category>
            <category><![CDATA[hiveproject]]></category>
            <category><![CDATA[hive]]></category>
            <category><![CDATA[cache]]></category>
            <dc:creator><![CDATA[Shashiben]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 18:29:42 GMT</pubDate>
            <atom:updated>2020-07-04T01:09:44.500Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently when I want to get data from online I used Rest API and fetched the data from it,but the problem is every time it’s need healthy internet connection.And the thing is I can’t access it when I’m offline. So there I thought of using cache concept and save it in local storage.And so that data could be accessed without internet connection.</p><h3>Libraries</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f30c773e60b562a14b5b1c416f5f9163/href">https://medium.com/media/f30c773e60b562a14b5b1c416f5f9163/href</a></iframe><p>In order to cache let’s go by step to step</p><p><strong>Step➊ : Create model</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4705bbf0d55cb8c4d42a183233798028/href">https://medium.com/media/4705bbf0d55cb8c4d42a183233798028/href</a></iframe><p>Then after this run a command in teminal for building model_name.g.dart</p><pre>flutter pub run build_runner build</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Ftotaldeafeningamericanbulldog&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Ftotaldeafeningamericanbulldog-well-done&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FTotalDeafeningAmericanbulldog-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="220" height="91" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b1ed4cf84a37decaad31cfd41459192/href">https://medium.com/media/2b1ed4cf84a37decaad31cfd41459192/href</a></iframe><p><strong>Step ➋: Write services</strong></p><p>Lets create API service in order to fetch data from online and decode it into JSON format</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e777ce389e4de01047e37c3794178896/href">https://medium.com/media/e777ce389e4de01047e37c3794178896/href</a></iframe><p>Now lets move on to next step for caching in this project we are using hive to cache data and lets write service for storing data into hive and retrieving data from hive</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d046084782e1a5b0e8caacb900f8cd2/href">https://medium.com/media/4d046084782e1a5b0e8caacb900f8cd2/href</a></iframe><p>That’s it now lets use this service in view model</p><p><strong>Step ➌: Now lets call this method</strong></p><p>By using this services we can cache the rest api data</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec27af395762d2c7c274374067d8c206/href">https://medium.com/media/ec27af395762d2c7c274374067d8c206/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fvibrantgigantichorsechestnutleafminer&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fvibrantgigantichorsechestnutleafminer-elijah-wood&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FVibrantGiganticHorsechestnutleafminer-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="480" height="270" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d214ee2f75f1a56f965af8c9e0080b6/href">https://medium.com/media/3d214ee2f75f1a56f965af8c9e0080b6/href</a></iframe><p>In my opinion hive is better for storing data in local and it is fast compared to shared preferences,Moore,sqflite.</p><p>For more details check this github repo:</p><p><a href="https://github.com/shashiben/Flutter-anime">shashiben/Flutter-anime</a></p><p><a href="https://www.twitter.com/FlutterComm">https://www.twitter.com/FlutterComm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=410c3283280c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-cache-with-hive-410c3283280c">Flutter cache with hive</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>