avatarFred Grott

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

4126

Abstract

d over the phone like I was?</p><p id="da3a" type="7">How about this: Try to picture Ivanka, the object of her creepy father’s even creepier lust, punching a time clock! That will happen around the same time I start flying jets.</p><p id="709d">Maybe I’m being overly sensitive. I mean, if I could make my own sea salt while basking under the Mediterranean sun, wouldn’t I bleat about it later? Shit, no. I would not.</p><p id="1c29">So you know, the column’s focus was on scent and how it evokes particular memories. Here is the passage that set me off:</p><p id="d741"><i>When I was in Spain this summer, we sun-dried our own sea salt in Majorca, then went to a little shop near where we ate dinner to buy flor de sal harvested from the same Ses Salines salt flats. When I popped open the can — later back at home, my kids shouted, “it smells like Majorca!”</i></p><p id="c3f4">“Gee, kids! How cool is that? Know what? Get outta here”</p><p id="d35c">For those of us who don’t vacation in Majora, <i>flor de sal</i> means Salt Flower. Now, is it me, or is this type of self-important strutting gag-worthy?</p><p id="0c73">I’m not so offended by the message as much as I am by the way it was conveyed. As if the messenger had no clue of the disparity around her and the reality that people are struggling to make ends meet, for God’s sake. Struggling to feed themselves and their families. Working for minimum wage.</p><p id="051d">I get that this magazine is about beauty, not our country’s economy but all I can say is, the salaries must be pretty damned good.</p><p id="22b4">We, as writers, understand that words are powerful and the <i>way</i> in which we say things is as important, or maybe more so, as <i>what</i> we’re putting out into the world. I’ve learned this particular lesson the hard way. More than once.</p><p id="d5bd">Admittedly, I’m particularly sensitive in that I haven’t received an actual paycheck in almost two years. And I’m better than that. Much better, yet I can’t seem to catch a break. So, where someone else might read the editorial and think of it as “aspirational,” I think, “WTF?” Just as I do when I see TV commercials touting luxury automobiles as holiday gifts. What world are we living in?</p><p id="8d58">This is what doesn’t compute: While the editor raves about her kids raving about Majorca, there are other, less privileged children starving in this country. Their parents would love to afford a bus ticket, let alone a first-class airline ticket to Spain.</p><p id="f2ee">A little empathy for others, folks. That’s all I’m asking.</p><p id="184a">According to <i>nokidhungry.org</i>, in the United States, one in seven children lives with hungry. The bigger picture: According to the U.S. Department of Agriculture (USDA), more than eleven hundred children in our country live in “food insecure homes,” which means the family members don’t get enough to eat in order to live in a manner that’s deemed “healthy.”</p><p id="7845">Maybe the editor should set her cannister of DIY sea salt aside and chew on these stats:</p><p id="1300"><b>Over 4.5 million U.S. kids live in food deserts and lack access to grocery stores with fresh fruits and vegetables.</b></p><p id="742e"><b>On average, children in rural areas are more likely to experience food insecurity and lack access to quality health services.</b></p><p id="7f6a"><b>Close to 1 in 3 American children are overweight or obese, and obesity in children has more than tripled over the past 35 years, putting children at higher risk for serious, even life-threatening health problems.</b></p><p id="a02e"><b>In communities where Save the Children works, an average of 59 percent of children do not have access to fresh, healthy foods; in some areas, it’s as much as 98 percent.</b></p><p id="bc2d">Here’s more self-satisfied bunk from the editorial:</p><p id="c1b6"><i>In (country), last summer, my daughter and I treated ourselves one afternoon to tea at the (uber-luxe) hotel. Now, the scent of not only jasmine tea but also jasmine fragrances brings me half a world away to that fancy dining room, nibbling on tiny sandwiches

Options

and cakes.</i></p><p id="0408">Again, maybe I’m being unfair and bristly. But the manner in which this was written is offensive, in my humble opinion. Plus, the older I get, the less idiocy I can tolerate.</p><p id="712b">Maybe if she’d included some type of giveaway to the first fifty readers who wrote back via email, describing their favorite scents and what they evoked for them. Jasmine fragrance oil could be the giveaway. I don’t know.</p><p id="7d81">Perhaps this editor should stick to writing about lip conditioners and designer perfumes and the wonders of glycolic acid. Meanwhile, if the craving for a “tiny cake” should come upon her, she could always shove a Twinkie up her bum.</p><p id="444c">I’d like to thank <a href="undefined">Helen Cassidy Page</a> for her input here. She gave me the virtual slap upside the head that I needed. But, sweetly.</p><p id="6d7e"><i>Sherry McGuinn is a slightly-twisted, longtime Chicago-area writer and award-winning screenwriter. Her work has appeared in The Chicago Tribune, Chicago Sun-Times and numerous other publications. Sherry’s manager is currently pitching her newest screenplay, a drama with dark, comedic overtones and inspired by a true story.</i></p><p id="2284">As always, I appreciate your reading. If you’re up for more:</p><div id="974d" class="link-block"> <a href="https://readmedium.com/haiku-how-to-51d0685c1ad6"> <div> <div> <h2>Haiku How-To</h2> <div><h3>A primer for the sexually inquisitive.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*yQwyx3SGkE3-oZlWW1dC9g.jpeg)"></div> </div> </div> </a> </div><div id="654f" class="link-block"> <a href="https://readmedium.com/did-i-fail-my-mother-3323d4907780"> <div> <div> <h2>Did I Fail My Mother?</h2> <div><h3>All the things I should have said, and didn’t.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*IBboE8lKu9O0Q4Ga0aEGhQ.jpeg)"></div> </div> </div> </a> </div><div id="9067" class="link-block"> <a href="https://readmedium.com/the-hot-women-of-medium-c66515ba6bbe"> <div> <div> <h2>The Hot Women of Medium</h2> <div><h3>Smart, funny, gutsy and SMOKIN’!</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*sUDy3LYDjjZKQqXsMfyptQ.jpeg)"></div> </div> </div> </a> </div><div id="1a63" class="link-block"> <a href="https://readmedium.com/ive-never-received-1k-claps-b1dd0d9c56b9"> <div> <div> <h2>I’ve Never Received 1K Claps</h2> <div><h3>Wounded…and wondering.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*zAfXUminR_ELCNKW8Ppsgw.jpeg)"></div> </div> </div> </a> </div><div id="11fc" class="link-block"> <a href="https://readmedium.com/its-official-i-m-an-a-hole-347624d73cd7"> <div> <div> <h2>It’s Official: I’m an A-Hole</h2> <div><h3>“Medium Madness” has me by the throat.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*r4v7h4lCPyj7liblwp-GNQ.jpeg)"></div> </div> </div> </a> </div></article></body>

Functional Programming In Flutter, Sandbox Your Functions

Dart, like Kotlin and Swift, is a mixed language with equal parts of OOP and FP. The first step in implementing and using Functional Programming is to sandbox some functions.

Pure VS Non-Pure Functions

Pure functions are called pure functions because they do not have any unintended effects; i.e. they do not touch things such as system services, etc. Your concern should be all those non-pure functions. As, since they can trigger unintended effects they should be sandboxed so, we get predictable behavior.

The Sandbox Pattern

We can use the type-alias(typedef) pattern to set up a callback type:

Since this is the first step we are not going to mix FP into the middle of these functions at this time. Later on, as you learn more FP, you will translate the try-catch blocks into Either-task constructs.

To use in a non-Future way, it would be:

guardVoided(myVoidedFunction);

Why more than one? Simple, since you are at the beginning of picking up Functional Programming you will not at first be using the default value concept or Either with functions; we keep some training wheels on letting you be flexible in using the patterns you are already familiar with first.

Also, note that since I throw an Exception, one does not have to be fully dependent on the underlying logging infrastructures.

Conclusion

To start using Functional Programming, you should have some training wheels to prevent going down blind paths. This sandboxing of functions utility is a nice part of that toolbox. Upcoming, I show the common patterns n Functional Programming using the Fpdart plugin.

General Flutter and Dart resources:

Flutter Community Resources

Flutter SDK

Android Studio IDE

https://developer.android.com/studio

MS’s Visual Studio Code

Flutter Docs

Dart Docs

Google Firebase Mobile Device TestLab

AWS Device Farm

Code Magic CI-CD

Google LLC owns the trademarks of Dart, Flutter, Noto, Roboto, and Android. Apple Inc owns the trademarks of iOS, MacOSX, Swift, SF-Pro, SF-Compact, SF-Mono, New York Typeface, and Objective-C. JetBeans Inc owns the trademarks of JetBeans, Kotlin, and IntelliJ. Oracle Inc owns the trademarks of Java and Solaris. Microsoft owns the trademarks of MS Windows and PowerShell. Gradle owns the trademark to Gradle. The Git project owns the trademark to Git. The Linux Foundation owns the trademark of Linux. Smartphone OEM’s trademarks to their mobile phone product names. Samsung owns the trademark to Tizen.

About Me, Fred Grott

I am a reformed Android, Java, Kotlin, and Front-End developer. I am a reformed ADHD’er and Code and Design Cowboy. Not only that, but I am organically creating my Flutter Developer Book chapters via Medium article writing, which is at:

Code for the book series is being worked at a raw playground of:

The more formalized almost ready for book code is at:

and my GitHub profile is at

And I can be DM’ed at:

Flutter
iOS
Android
Functional Programming
Software Development
Recommended from ReadMedium