<?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 Yousef on Medium]]></title>
        <description><![CDATA[Stories by Yousef on Medium]]></description>
        <link>https://medium.com/@yousefcloud?source=rss-363f7abe6b38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*omoE-C4qx3JAbQH4hbpnXw.jpeg</url>
            <title>Stories by Yousef on Medium</title>
            <link>https://medium.com/@yousefcloud?source=rss-363f7abe6b38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 15:51:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yousefcloud/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[Installing Python 3 in Mac OS]]></title>
            <link>https://medium.com/@yousefcloud/installing-python-3-in-mac-os-e523d5fbd86?source=rss-363f7abe6b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/e523d5fbd86</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python-development]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Yousef]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 01:17:06 GMT</pubDate>
            <atom:updated>2019-10-30T03:45:00.244Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*548bCFPvEH8EzVc3kdFZUQ@2x.jpeg" /></figure><p>We have all been there. Believe me, I get it. I understand you, and I’m with you. I’ll stay with you every step of the way, and we will get through it together.</p><ol><li>run python --version and you’ll find that it is some version of python 2.7 then run pip -version and you’ll find that it is some version of python 2.7 pip. Unless you are on Mac OS 10.15 Catalina, <a href="https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes">which does without any default scripting languages.</a></li><li>Install the best package manager for Mac OS, <a href="https://brew.sh/">Homebrew</a>. I like it for many reasons, but the key reasons are that it doesn’t clutter your machine, it keeps all your installations in one directory, brew cask manages your GUI app installs, brew doctor helps ensure your machine has the right permissions, and it is easy to uninstall packages and clean up.<br>run /usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</li><li>run brew install python3</li><li>run brew postinstall python3 in order to install pip3 the latest package manager</li><li>Lets make sure that when you run the python command or the pip command, your Mac uses python3 and pip3 respectively. All we have to do is add the following symlinks to your .bash_profile</li><li>Using vim or your favorite editing tool, open your .bash_profile and add the following to the beginning of your PATH<br>export PATH=/usr/local/opt/python/libexec/bin:$PATH</li><li>run python -m pip install --upgrade setuptools</li><li>For the time being, I do not recommend running the following command python -m pip install --upgrade pip as there is a known issue preventing pip3 from working properly when you do so. Some information about that can be found in issue <a href="https://github.com/Homebrew/homebrew-core/issues/43867">43867</a> and <a href="https://discourse.brew.sh/t/pip-install-upgrade-pip-breaks-pip-when-installed-with-homebrew/5338">here</a>. Sorry about that. I will update this article as soon as this issue is resolved. If you’ve found a solution, feel free to leave notes in the comments section.</li><li>As a bonus step, my favorite way to work with virtual environments is simple. python -m venv dirname then source dirname/bin/activate to activate the virtual environment, and of course deactivate to deactivate it. In there, you can have isolated environments where you can install pip packages without affecting other projects. Say, if one projects requires one version of a package, and another project requires a different version of the same package, virtual environments help you have multiple isolated python environments. I’ll write a story about that at a later time. In the mean time, you can read more <a href="https://docs.python.org/3/library/venv.html">here</a>.</li></ol><p>That’s it, if you now run python --version and pip --version respectively in a new bash window you’ll see that they are now pointing at the python3 versions.</p><p>I will be updating this article in the near future with more details as to the whys of some of these steps, but if you’re looking for a quick way to get going, while being able to easily uninstall things and cleanup your machine without causing a mess, and keeping things under your control, these are the best steps I’ve discovered to date. Happy snaking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e523d5fbd86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Driven Development (TDD)]]></title>
            <link>https://medium.com/@yousefcloud/test-driven-development-382495b4219a?source=rss-363f7abe6b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/382495b4219a</guid>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Yousef]]></dc:creator>
            <pubDate>Sat, 23 Feb 2019 20:52:53 GMT</pubDate>
            <atom:updated>2019-02-26T05:19:08.449Z</atom:updated>
            <content:encoded><![CDATA[<p>TDD allows for faster development. Allow me to explain.</p><p>Any functionality that you write code for either has dependencies or does not. But every functionality has, well, a function to perform. What this means is that every test we write will validate whether or not the function does what we intend it to do, and only some tests require us to do something about those dependencies. The dependencies typically dictate what the function can do.</p><p>Lets break this down into pieces:</p><ul><li>A function without parameters and without dependencies.</li><li>A function without parameters and with dependencies.</li><li>A function with parameters and without dependencies.</li><li>A function with parameters and with dependencies.</li></ul><p>That’s it. Those are the four scenarios you will ever test. We will not do a deep dive into these, as that’s beyond the scope of this article. What’s important to know, is that tests for functions with dependencies are slightly more complicated than those without, but they are not overwhelming. They require you to think about how your function will behave, say, if a database does return the records you expected, and how will it behave if it doesn’t. If your function has too many dependencies and your test will be a monstrous test, then the function will likely need to be factored out. This is a good example of how testing first helps you think about optimal resuable code early in the process.</p><p>Unit tests help us code faster, more reliably, and ensure resiliency. Test Driven Development (TDD) is a discipline, as such, if we are not disciplined we will not succeed at it. I would say, put $1 in a jar for every function that’s not written using TDD. But that’s not really fair, we already have enough to worry about by trying to refactor and making something do what we thought it would do, but it did not. Why write tests, and why write them first.</p><p>We write tests because it ensures that contracts among services are not broken without proper planning, they help developers walk into projects with more confidence, they allow us to find bugs and fix them faster, and make adding new features a breeze. Imagine calling an architect over to inspect a 100 story building that is tilting without blueprints or specifications that define what this building is? Maybe its made out of cardboard. Well, that’s what unit tests are. They are the specifications and blueprints of your application. When a bug manifests itself in production, can you easily replicate it on your development environment via a unit test, make the test fail in the same way that the production application failed, and implement functionality that covers that failed scenario, thus making the test pass and ultimately the production application behave as expected? If your answer is no, then you are the architect walking into the building without blueprints. What architect builds a building that way? None. As an engineer, neither should you write applications without testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*E5KxorAQZD_vHP8mhi_lDg.png" /><figcaption>Me And my sister in front of a tilted unfinished building in 1995. Maicao, La Guajira, Colombia</figcaption></figure><p>We do test first, because it helps us think about what we want our code to do. It helps us think of reusable functions thus, thus writing less code. If your functionality depends on a different functionality being developed, you are not blocked, you can mock the dependency and finish your feature and ensure it works based on cross-team specifications. It helps us think of the inputs and outputs, including complicated inputs, simple inputs, and invalid inputs. Testing these scenarios ensure resciliency. When you first write your tests, they will fail because there is no actual functionality doing what you are testing. When you write the implementation, the test should pass. What this means is that your code works, and you can move on to the next thing. So, you <em>know</em> you are writing working code, you are not <em>hoping</em> your code works and spend extra time fixing it when it does not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*nNAiVlARGKaBrfTB-uTekg.png" /><figcaption>Same building in 2018, with minor changes, still tilted and unoccupied. Maicao, La Guajira, Colombia. This is the equivalent of a poorly tested project. No one wants or can work on it. It will hunt you forever.</figcaption></figure><p>If you do not do test first, you probably are not thinking in a methodical way about what you want your code to do. Your code will likely suffer of lack of generics, you will have repeatable code, your code will not work, and you will eventually need to go back and refactor and think methodically. You will also likely not write tests, and if you do, they will be bad tests because they are tests written to satisfy code not thought through very well — that’s something that will reveal itself when multiple developers end up writing the same thing in multiple projects, or within the same project.</p><p>In order to get to quality working code, you will end up eventually thinking methodically through several layers and steps, when you could have done it in one step, TDD. Finally, if you do not write tests at all, you will end up spending the time testing your code one way or another. You will spend three hours deploying, smoke testing, fixing issues, deploying again, and repeating the process over and over again until it “works.” I say works in quotes, because its ephemeral, it will work until it stops working without you knowing about it. This is not a good approach, the time spent testing in this manner is time other developers will need to spend when they go back to this project to fix what broke, they did not benefit from the time you spent. Why not spend the time writing the unit tests and have the deployment process ensure tests pass and that the code is production-ready, fresh, tested, and working code to the team’s expectations?</p><p>Lets recap, how does TDD save us time and help us developer faster:</p><ol><li>You think methodically at the outset, without needing to go back and rethink your code multiple times.</li><li>You are not blocked by dependent functionalities, you can finish ahead.</li><li>Developers can find and fix bugs faster because bugs are easy to replicate.</li><li>Developers can add new features with ease. They can just write a new test that fails, then implement it and make it pass. If older tests do not break, they have succeeded. And if they do break, they will know, and they will fix it right there and then before they break production.</li><li>The functionality you write today and spend X hours on is passed on to other developers. They don’t have to spend X hours again on it.</li><li>You have reusable code, that means that you wrote less code.</li></ol><p>In order to ensure robustness, fast development, and good customer reputation, tests go beyond only unit tests. Integration tests ensure that the dependencies “faked” in unit tests continue to respect the contracts, and if they ever don’t for any reason, your team knows about it. Discovery services can help monitor and alert on your services up time, and performance. Regression testing can help ensure your product continues to support legacy system until you pull the plug. Stress testing helps find your system’s breaking point and inform the scaling criteria and further algorithm optimization requirements. And usability and acceptance testing ensure your customers like your product. What good is it to have a tested working product that no one other than you wants to use?</p><p>I hope you are motivated to try test first. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=382495b4219a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Original iPad Changed My Life]]></title>
            <link>https://medium.com/@yousefcloud/ithe-original-ipad-changed-my-life-ccf1e7e4945d?source=rss-363f7abe6b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccf1e7e4945d</guid>
            <category><![CDATA[csuf]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ipad]]></category>
            <category><![CDATA[tablets]]></category>
            <dc:creator><![CDATA[Yousef]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 21:17:31 GMT</pubDate>
            <atom:updated>2019-01-28T01:07:43.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xmh6Bwv0J_yjFYC3GZSFHQ.png" /><figcaption>My first generation iPad, January 2019</figcaption></figure><p>The first generation iPad was <a href="https://itunes.apple.com/us/podcast/apple-keynotes/id275834665?mt=2#">announced</a> nine years ago today by <a href="https://www.apple.com/stevejobs/">Steve Jobs</a>. The iPad is as resilient as Apple itself as a company is. It doesn’t break, it’s elegant, it’s useful, it’s reliable, its long lasting, and it’s respectful to the user. I use things, I take care of them, and I use them until they stop working. And then I fix them, and use them some more. When I was seven, I was gifted me some real cool Ninja Turtle shoes. I would clean the bottom of the shoes every week, I drove my family crazy. They just did not get it; they were the coolest, you had to see them! The first car I bought new 13 years ago is one I continue to drive today, with 313,000 miles. I took care of it every step of the way, it has taken me through every job, and that personality trait has paid off. The car’s MSRP was $19,990 and I talked the dealership out of $1000 so the car’s MSRP is $4 a day today. That MSRP will continue to decrease asymptotically until its cost virtually vanishes. The iPad was free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95qektf75vrJtkGPdsY-bg.jpeg" /><figcaption>iPad gifted to me by California State University, Fullerton in 2011</figcaption></figure><p>In 2011 I was walking from a class in <a href="http://fullerton.edu/">CalState University, Fullerton (CSUF)</a> to the Student Recreation Center (SRC) for my daily swim. On the way, there was a kiosk that had three requirements. The first was to “like” Titan Shops, the school’s bookstore in Facebook. The second was to “check-in” to Titan Shops and for that, I recall you needed to enable location services. And the third and last requirement was to write your name down on a paper with your phone number and drop the paper in the raffle box. I did not want to, but if I did I would win an iPad. I wanted an iPad, so I installed facebook, logged in to my ancient dust-eating account, and followed all the steps.</p><p>Three days later or so, I received a call and I won the iPad. It changed my life, and that very same device continues to do so today. Yes it is magical.</p><p>What did an iPad running iPhone OS 3 (that was the name of the OS at the time) do that was so special? It was an enabler. I started taking notes using the Notes app, my backpack was lighter. It could read Power Point slides off of the instructor’s emails, making studying easier. I could use Google Docs online to collaborate with my peers, read and write emails while studying, browse the web and conduct my research. I could do it without pulling out seven books, and I could do it while walking, as if I was reading a sheet of paper. I could, from my iPhone, transfer photos of book chapters and study in the iPad. The laptop became the pickup truck for many tasks, and I didn’t need a pickup truck to go to the grocery store. I needed a Honda Civic, a long lasting car that lasts 13+ years without incident. The iPad was my Honda Civic all over again, both of which I still own today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6LQpJIvT5FvHSaC84ZyJiQ.jpeg" /><figcaption>My first generation iPad, January 2019</figcaption></figure><p>During my Senior Project, the score in my research project was 104%, the best my instructor had ever seen in his career, as noted in his recommendation in my <a href="https://www.linkedin.com/in/yousefelreda/">LinkedIn</a> profile. The iPad enabled that.</p><p>Today, I still use this iPad to do my <a href="https://www.beachbody.com/product/fitness_programs/p90x.do?code=SEMB_P90X_GOOGLE&amp;mkwid=so3ZKtl4a&amp;pcrid=193539769854&amp;pmt=e&amp;pkw=beachbody%20p90x&amp;pdv=c&amp;gclid=CjwKCAiAyrXiBRAjEiwATI95mTZgnvQMKPKcm_SFzzEInsctP8--qUxngJaKsnFqz8-SS0zAaMSiNhoCpWkQAvD_BwE">P90X</a> workouts at the gym, and these set of exercises maximize my productivity, make me more alert, and completely transformed my body. Part of P90X is little to no equipment, and the iPad satisfies that need. The iPad has been to the genius bar exactly null times, and the battery still lasts 10 hours nine years later.</p><p>The iPad is great for research, is great for communication, is great for studying, and today with the Apple Pencil, has enabled my artistic side to re-surface as drawing is one of my favorite past-times.</p><p>The iPad is Magical.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccf1e7e4945d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manipulative Red Dots]]></title>
            <link>https://medium.com/@yousefcloud/manipulative-red-dots-1acf78b525a3?source=rss-363f7abe6b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/1acf78b525a3</guid>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[social-media]]></category>
            <dc:creator><![CDATA[Yousef]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 03:17:13 GMT</pubDate>
            <atom:updated>2020-10-13T04:32:42.168Z</atom:updated>
            <content:encoded><![CDATA[<p>A red dot outside the app, because a leader thinks you should follow certain people. A red dot inside the app, because you should discover new people. Another red dot inside the app, because you should turn on contacts access. A red dot outside the app, because someone a leader thinks you really care about posted a story and you haven’t seen it. Another red dot inside the app, because something in the marketplace showed up, another car, even though you bought one three days ago. A banner spawning half the screen, because you turned off notifications.</p><p>The visual noise, the mental noise, the audible noise, the sensory noise, the helplessness.</p><p>You oblige, and scroll through a feed biased in the order of the people that a leader thinks you care the most about. Followed by ads, some of which are very spammy, that you mark as offensive, yet still see them 10 minutes later.</p><p>Multiply this by numerous apps, many of which want you to bend over, raise your leg and put it behind your neck while eating a sandwich in order to successfully close a video.</p><p>Sure, with Material Design, flatter imagery, and high density true color displays things look beautiful. But what about the user experience? The user experiences manipulation. What about the user interface? Its not a user interface anymore, its street signs to drive you to perform actions and share information that you would not want to share otherwise, like turning on your contacts access. Its not an interface for the user, its an interface that uses you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1acf78b525a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Human Safety in the Digital Era]]></title>
            <link>https://medium.com/@yousefcloud/human-safety-in-the-digital-era-5b03e8609cab?source=rss-363f7abe6b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b03e8609cab</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[safety]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Yousef]]></dc:creator>
            <pubDate>Fri, 18 Jan 2019 02:33:48 GMT</pubDate>
            <atom:updated>2019-01-18T20:18:40.685Z</atom:updated>
            <content:encoded><![CDATA[<p>We are not safe, but we can be. Between years 1760 and 1840, the first industrial revolution took place (1IR). As a result, we can produce, buy, and use the physical objects that we have today. It affected our social, cultural, and economic conditions. The digital revolution took place from around 1950 to 1970. In 1976 people like you and me could put our hands on digital revolution products, like the Apple I computer. The digital revolution is the third industrial revolution (3IR). Fast forward to 2019 and you are likely reading this on an iPhone or other mobile device.</p><p>The digital revolution created a world that can exist parallel to the physical world. You can be at home and carry a real life conversation while also conducting business or shopping. You can also join communities and interact with people you do not know and make friends on the other side of the equator. You can hang out at the bar physically and carry some conversation while also carrying a series of different fitness conversations digitally. Unfortunately, digitally, you can also get harassed, bullied, or threatened while in the comfort of your home, work, gym, or supermarket. You are unsafe.</p><p>A parallel existence of the physical and digital worlds pose new challenges. This article will focus on the social and safety challenges introduced by the 3IR, specifically, social media.</p><p>The core difference between the physical world and the digital world’s safety is that in the digital world there are no laws. Because there are no laws, there is no enforcement. Over many centuries, in the physical world, laws were passed and police officers were deployed to enforce them. You are safe. (Lets leave the topic of gun violence for a different day.)</p><p>Unlike the physical world, what there is in the digital world is that each individual private company create their own set of safety rules. It is what they consider to be safe, which is neither great or terrible. But to save money they try to put in place Artificial Intelligence and Machine Learning, technologies of the fourth industrial revolution (4IR) to detect violation of said rules and thus, protect the community. It does not work.</p><p>There are thousands of ways in which bullying, harassment, or threats can occur that a system cannot detect. Computers have a hard time learning sarcasm, innuendo, or identifying certain human behavior that only other humans can assess. So big social media companies rely on the community to report this behavior. It does not work.</p><p>Companies like to talk about the thousands of reports that have helped the community, but they do not talk much about the thousands of ones were that failed to protect or there was no action taken. Reporting systems in big social media companies confine you to certain check-boxes to report on, and many of them ask you to contact the offender to resolve the situation. This can only exacerbate the situation that warranted a report in the first place. They also do not offer the option to write free-text on a text-box that allows the victim to describe the problem. This is because without a pre-defined reporting criteria, the system does not know what action to take. It cannot just read and interpret your free style text and take action, it would need a human. And so that brings us back to the original problem, we need laws and humans to enforce them and provide safety to the community.</p><p>The big offenders are the big social media companies, they have passive reporting, not active protection. Small car forums have moderators that are driving around the streets of the forum to protect the community. Big social media companies do not have active “police officers” or moderators, but it should. <a href="https://ucr.fbi.gov/crime-in-the-u.s/2011/crime-in-the-u.s.-2011/police-employee-data">According to the FBI</a>, the nation has 3.5 sworn officers per 1000 inhabitants. We have no such thing in the parallel digital world we live in and when someone threatens your safety on social media, does a moderator step in to help? No.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b03e8609cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>