<?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 Belal Alkufri on Medium]]></title>
        <description><![CDATA[Stories by Belal Alkufri on Medium]]></description>
        <link>https://medium.com/@belal.alkufri?source=rss-aac5c1074ecf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*doyn8L1dY2DT9nEsr8v-LQ.jpeg</url>
            <title>Stories by Belal Alkufri on Medium</title>
            <link>https://medium.com/@belal.alkufri?source=rss-aac5c1074ecf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:15:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@belal.alkufri/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[Pflegeprodukte bei Alnatura und dm]]></title>
            <link>https://medium.com/@belal.alkufri/pflegeprodukte-bei-alnatura-und-dm-28dc30eab8a9?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/28dc30eab8a9</guid>
            <category><![CDATA[körperpflege]]></category>
            <category><![CDATA[naturstoffe]]></category>
            <category><![CDATA[naturkosmetik]]></category>
            <category><![CDATA[hautpflege]]></category>
            <category><![CDATA[haarpflege]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 14:02:12 GMT</pubDate>
            <atom:updated>2026-08-03T14:02:12.657Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pflegeprodukte bei Alnatura und dm:</h3><h4>Die besten Formulierungen nach INCI statt Marketing</h4><p><strong>Stand: 3. August 2026</strong></p><h4>!! Dieser Artikel ist komplett durch Chatgpt generiert !!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*88Ve6R1Dp2bRtZAq.jpg" /><figcaption>source: dm.de</figcaption></figure><p>„Naturkosmetik“, „Sensitive“, „ohne Silikone“ oder „mit Bio-Aloe-vera“ sagen allein wenig über die Qualität eines Produkts aus. Entscheidend ist die <strong>Gesamtformulierung</strong>:</p><ul><li><strong>Bei Reinigungsprodukten: </strong>Welche Tenside reinigen — und wie aggressiv<strong>?</strong></li><li><strong>Bei Cremes: </strong>Gibt es ein sinnvolles Verhältnis aus Feuchthaltemitteln, Lipiden und Barrierepflege<strong>?</strong></li><li><strong>Bei Leave-ons:</strong> Wie weit oben stehen Alkohol, Parfum und ätherische Öle<strong>?</strong></li><li>Passt der <strong>Preis</strong> zur tatsächlichen <strong>Leistung?</strong></li></ul><p>Untersucht wurden die aktuell online auffindbaren Sortimente von <strong><em>dm</em></strong> sowie die relevanten Marken, die <strong><em>Alnatura</em></strong> selbst für seine Naturkosmetikabteilung nennt: unter anderem <strong>Alviana, Lavera, Logona, Weleda, Speick und Dr. Hauschka</strong>. Das konkrete Sortiment variiert allerdings je nach Alnatura-Filiale.</p><p>„Giftfrei“ ist dabei kein sinnvoller wissenschaftlicher Bewertungsmaßstab. Ziel dieser Auswahl ist vielmehr: <strong>gute Funktion, möglichst geringes Reizpotenzial, wenige unnötige Duftstoffe und ein vernünftiger Preis</strong>.</p><h3>1. Gesichtscreme</h3><h4>Gewinner: Lavera basis sensitive Beruhigende Feuchtigkeitscreme</h4><p>Die Formulierung ist deutlich durchdachter als die üblichen einfachen Naturkosmetikcremes:</p><ul><li><strong>Glycerin, Pentylene Glycol und ein Xylitol-Komplex</strong> binden Wasser.</li><li><strong>Ectoin, Bisabolol und Dipotassium Glycyrrhizate</strong> ergänzen die reizberuhigende Pflege.</li><li><strong>Squalan, Sheabutter, Mandel-, Sonnenblumen-, Soja- und Olivenöl</strong> reduzieren den Feuchtigkeitsverlust.</li><li>Es sind weder <strong>Alcohol</strong> noch <strong>Parfum</strong> deklariert.</li></ul><p>Damit verbindet sie Feuchtigkeit, Lipide und beruhigende Stoffe, anstatt lediglich verschiedene Pflanzenöle zusammenzumischen. Der aktuelle Herstellerpreis beträgt 9,39 Euro für 50 ml.</p><h4>Günstige Alternative: alverde Gesichtscreme Ultra Sensitiv</h4><p>Für 3,25 Euro ist sie preislich attraktiv und ebenfalls frei von Parfum und ätherischen Ölen. Allerdings steht <strong>Alcohol bereits an dritter Stelle</strong>, gefolgt von zahlreichen Pflanzenölen. Das macht sie nicht automatisch schlecht, aber weniger ausgewogen und für manche empfindliche Haut potenziell reizender als Lavera.</p><p>Die parfümfreie <strong>Alviana Sensitiv Aloe Gesichtscreme</strong> ist eine sinnvolle reichhaltige Alternative für deutlich trockene Haut. Sie ist aber durch ihren hohen Anteil an Sheabutter und Ölen weniger universell.</p><p><strong>Urteil:</strong> Lavera gewinnt hier tatsächlich aufgrund der Formulierung — nicht aufgrund der Marke.</p><h3>2. Gesichtsreinigung</h3><h3>Gewinner: Balea med Waschgel Ultra Sensitive</h3><p>Die kurze Formel enthält:</p><ul><li>Glycerin und Pentylene Glycol</li><li>Cocamidopropyl Betaine und Decyl Glucoside als Tenside</li><li>Panthenol und Bisabolol</li><li>kein Parfum und keinen Alkohol</li></ul><p>Für ein Produkt, das nach wenigen Sekunden wieder abgewaschen wird, ist das funktional und reizarm. Teure Pflanzenextrakte wären hier kaum ein relevanter Mehrwert.</p><h3>Naturkosmetik-Alternative: alverde Waschgel Ultra Sensitiv</h3><p>Auch dieses Waschgel ist vernünftig formuliert: Coco-Glucoside sowie Cocoyl-Glutamate reinigen mild, Glycerin und Sorbitol wirken feuchtigkeitsbindend. Es enthält jedoch relativ weit oben Alkohol. Da es abgewaschen wird, ist das weniger problematisch als in einer Creme, verhindert aber den Gesamtsieg.</p><p>Die <strong>Weleda Sensitiv Reinigungsmilch Mandel</strong> ist mit nur sieben Inhaltsstoffen eine gute Option für sehr trockene Haut oder zum Entfernen von Make-up, aber deutlich teurer und für ein normales morgendliches Waschprodukt unnötig reichhaltig.</p><p><strong>Urteil:</strong> Balea med bietet hier die beste Formel — obwohl es keine Naturkosmetik ist.</p><h3>3. Duschpflege</h3><h3>Gewinner: alverde Duschcreme Ultra Sensitiv</h3><p>Ihre Reinigung basiert auf:</p><ul><li>Coco-Glucoside</li><li>Disodium Cocoyl Glutamate</li><li>Sodium Cocoyl Glutamate</li></ul><p>Das ist ein vergleichsweise mildes Tensidsystem. Glycerin, Jojobaöl und Glyceryl Oleate ergänzen die rückfettende Wirkung. Die Rezeptur enthält keine Duftstoffe oder ätherischen Öle und kostet aktuell 1,95 Euro für 200 ml. Alkohol steht zwar an dritter Stelle, hat bei einem schnell abgespülten Produkt aber wesentlich weniger Relevanz als bei einer Gesichtscreme.</p><h3>Ein Produkt für Körper und Haare: Lavera basis sensitive 2in1</h3><p>Die Lavera-Variante kombiniert Sodium Coco-Sulfate mit Glucosiden und Cocoyl-Glutamaten sowie Glycerin, Glyceryl Oleate und Pflanzenproteinen. Sie reinigt zuverlässiger und kann für kurze, unkomplizierte Haare Shampoo und Duschgel ersetzen. Sie enthält jedoch Parfum und mehrere deklarationspflichtige Duftbestandteile. Sie ist daher ein praktischer <strong>Kompromiss</strong>, aber nicht die mildeste Körperreinigung.</p><p>Alviana Hair &amp; Body verwendet ebenfalls Sodium Coco-Sulfate, Cocamidopropyl Betaine und Glucoside, ist aber parfümiert. Ein klarer Formulierungsvorteil gegenüber Lavera ist nicht erkennbar.</p><p><strong>Urteil:</strong> Für den Körper alverde; für maximale Produktreduktion Lavera 2in1.</p><h3>4. Shampoo</h3><h3>Gewinner: alverde Shampoo Ultra Sensitiv</h3><p>Die gesamte INCI-Liste besteht nur aus acht Stoffen:</p><blockquote><em>Aqua, Glycerin, Coco-Glucoside, Betaine, Xanthan Gum, Pentylene Glycol, Citric Acid, Caprylhydroxamic Acid.</em></blockquote><p>Damit enthält es:</p><ul><li>kein Sodium Coco-Sulfate</li><li>kein Parfum</li><li>keine ätherischen Öle</li><li>keinen austrocknenden Alkohol</li><li>keine unnötigen Pflanzenextrakte</li></ul><p>Für empfindliche Kopfhaut, kurze Haare und regelmäßiges Waschen ist das bemerkenswert sauber und kostet lediglich 1,25 Euro für 200 ml.</p><p>Die Einschränkung folgt direkt aus derselben Formulierung: <strong>Coco-Glucoside allein reinigt relativ mild</strong>. Bei stark fettender Kopfhaut, Haarwachs, vielen Stylingprodukten oder Ölbehandlungen könnte die Reinigung nicht ausreichen.</p><p>Dann ist das <strong>Alviana Daily Care Mizellen Shampoo</strong> die stärkere Alternative. Es kombiniert Sodium Coco-Sulfate, Lauryl Glucoside und Cocamidopropyl Betaine mit Glyceryl Oleate und enthält nach aktueller Deklaration kein Parfum.</p><p><strong>Urteil:</strong> alverde als Standard; Alviana bei höherem Reinigungsbedarf.</p><h3>5. Leave-in</h3><h3>Gewinner: Niyok Leave-In Moisture Mist</h3><p>Die Entscheidung für ein Leave-in statt Haaröl bleibt richtig: Ein Haaröl reduziert hauptsächlich Reibung und Wasserverlust, liefert aber selbst keine Feuchtigkeit.</p><p>Niyok enthält:</p><ul><li>Glycerin</li><li>Sodium PCA</li><li>Xylitylglucoside, Anhydroxylitol und Xylitol</li><li>hydrolysiertes Pflanzenprotein</li><li>keinen Alkohol</li></ul><p>Diese Kombination ist vor allem auf <strong>Feuchtigkeit und leichte Pflege</strong> ausgelegt. Im Vergleich dazu enthalten mehrere Naturkosmetik-Leave-ins von alverde, Lavera oder Alviana relativ weit oben Alcohol denat. und zahlreiche Duftstoffe. Niyok ist daher für eine minimalistische, leichte Routine die bessere Wahl.</p><p>Es enthält allerdings Parfum und keine ausgeprägten kationischen Conditioner wie Behentrimonium Chloride. Bei sehr langem, blondiertem oder stark verknotetem Haar ersetzt es daher möglicherweise keinen guten auswaschbaren Conditioner.</p><p>Niyok nennt Alnatura ausdrücklich unter den stationären Händlern; das konkrete Produkt kann jedoch je nach Filiale fehlen.</p><p><strong>Urteil:</strong> Niyok bleibt die sinnvollere Wahl als Haaröl und als die alkoholreicheren Naturkosmetik-Sprays.</p><h3>6. Bodylotion</h3><h3>Gewinner: alverde Körperlotion Ultra Sensitiv</h3><p>Die Lotion kombiniert:</p><ul><li>Glycerin, Pentylene Glycol und Sodium Lactate als Feuchthaltemittel</li><li>Soja-, Mandel- und Sonnenblumenöl</li><li>Sheabutter</li><li>Aloe vera</li><li>mehrere leichte Ester für bessere Verteilbarkeit</li></ul><p>Sie ist frei von Parfum und Alkohol und kostet aktuell 2,45 Euro für 250 ml. Das ist eines der stärksten Preis-Leistungs-Verhältnisse im gesamten Vergleich.</p><p>Für stark schuppige oder verhornte Haut kann eine Lotion mit <strong>5–10 % Urea</strong> effektiver sein. Für normale bis leicht trockene Haut besteht jedoch kein Grund, die Routine komplizierter oder teurer zu machen.</p><p>Die Lotion kann auch auf den Händen verwendet werden. Eine separate Handcreme wird erst sinnvoll, wenn:</p><ul><li>die Hände tatsächlich spannen oder reißen,</li><li>die Bodylotion zu langsam einzieht,</li><li>oder durch häufigen Wasserkontakt eine deutlich okklusivere Pflege gebraucht wird.</li></ul><p><strong>Urteil:</strong> Ein Produkt für Körper und Hände reicht normalerweise.</p><h3>7. Deodorant</h3><h3>Gewinner: Speick Pure Deostick</h3><p>Die Formulierung enthält kein Parfum und kein Natron. Der entscheidende Stoff ist <strong>Zinc Ricinoleate</strong>, das Geruchsmoleküle bindet, ohne die Schweißproduktion zu blockieren. Sorbitan Caprylate und pflanzliche Extrakte ergänzen die geruchshemmende Wirkung.</p><p>Das ist insbesondere bei empfindlichen Achseln sinnvoll, weil Natron zwar häufig effektiv gegen Geruch wirkt, bei manchen Menschen aber Brennen, Rötungen oder Ausschlag verursacht.</p><p>Die Deocremes von Alviana und alverde setzen stärker auf <strong>Natriumbicarbonat und Zinkoxid</strong>, enthalten aber zusätzlich Parfum beziehungsweise zahlreiche Bestandteile ätherischer Öle. Sie können bei robusten Achseln stärker wirken, sind jedoch nicht der beste universelle Startpunkt.</p><p>Wichtig: Der Speick-Stick ist ein <strong>Deodorant, kein Antitranspirant</strong>. Er reduziert Geruch, verhindert aber keine Schweißbildung.</p><p><strong>Urteil:</strong> Speick Pure bietet die ausgewogenste Kombination aus Geruchskontrolle und niedrigem Reizpotenzial.</p><h3>Die minimalistische Einkaufsliste</h3><p>Für eine unkomplizierte Routine reichen:</p><ol><li><strong>Balea med Waschgel Ultra Sensitive</strong></li><li><strong>Lavera basis sensitive Beruhigende Feuchtigkeitscreme</strong></li><li><strong>alverde Duschcreme Ultra Sensitiv</strong></li><li><strong>alverde Shampoo Ultra Sensitiv</strong></li><li><strong>Niyok Leave-In Moisture Mist</strong></li><li><strong>alverde Körperlotion Ultra Sensitiv</strong></li><li><strong>Speick Pure Deostick</strong></li></ol><p>Wer Körper und Haare mit einer einzigen Flasche waschen möchte, kann Duschcreme und Shampoo durch <strong>Lavera basis sensitive 2in1</strong> ersetzen. Das spart ein Produkt, ist hinsichtlich Duftstoffen und individueller Haarpflege aber ein Kompromiss.</p><h3>Fazit</h3><p>Der Vergleich ergibt keinen Gesamtsieger unter den Marken:</p><ul><li><strong>Lavera</strong> gewinnt bei der Gesichtscreme.</li><li><strong>Balea med</strong> bei der Gesichtsreinigung.</li><li><strong>alverde</strong> bei Duschpflege, Shampoo und Bodylotion.</li><li><strong>Niyok</strong> beim Leave-in.</li><li><strong>Speick</strong> beim Deodorant.</li></ul><p>Das bestätigt die wichtigste Einkaufsregel:</p><blockquote>Nicht die beste Marke suchen, sondern die beste Formulierung für die jeweilige Aufgabe.</blockquote><p>Naturkosmetik ist nicht automatisch milder, Alkohol ist nicht in jeder Produktart gleich relevant, und eine lange Liste exotischer Pflanzenextrakte macht ein Produkt nicht automatisch wirksamer. Häufig gewinnen die einfachsten parfümfreien Formulierungen — und erstaunlich oft auch die günstigsten.</p><p><strong>409 Quellen</strong> wurden durchsucht<strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28dc30eab8a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Nature Inherently Gets Itself Destroyed]]></title>
            <link>https://medium.com/@belal.alkufri/the-nature-inherently-gets-itself-destroyed-da60fc4669a7?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/da60fc4669a7</guid>
            <category><![CDATA[earth]]></category>
            <category><![CDATA[balance]]></category>
            <category><![CDATA[fragility-of-human-beings]]></category>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[demise]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 17:37:40 GMT</pubDate>
            <atom:updated>2025-08-09T11:46:45.853Z</atom:updated>
            <content:encoded><![CDATA[<p>According to the <a href="https://en.wikipedia.org/wiki/Introduction_to_evolution">evolution theory</a>, — roughly said — the best adapting creatures survived and the best of them survived after. Of course, mutations happened so that environments hosted the best adapting. Notice for this article, we are a part of the nature.</p><figure><img alt="nature between peace and destruction" src="https://cdn-images-1.medium.com/max/790/0*kSMIYIEyrXWjvzA7.jpg" /><figcaption>source: <a href="https://www.waca.or.jp/en/growthhacking/kit-how-mother-nature-has-been-destroyed-by-the-human/">waca.or.jp</a></figcaption></figure><p>The last creature developed with the best surviving chances combined with the dominance was the human being, — us — . this creature is the direct reason for the current nature to die. we did our best to connect over the planet itself, as well as we even control the balance of animals living in a closed system — lets say some woods — . We even made significant improvement to shrink the ozone hole. Imagine what danger we are able to notice and avoid.</p><p>Something — natural — , we though can not control, is our greed. We tried — through conferences — among each other — countries — to brake the increase in carbon emission. We failed and, though, could not even keep the same <a href="https://www.climate.gov/news-features/understanding-climate/climate-change-global-temperature">increase in global temperature</a>. We are aware of what is happening. We are aware that the relations from <a href="https://en.wikipedia.org/wiki/Game_theory">game theory</a> apply and still can not do efforts for long-term survival on earth. Notice, that any country will become very weak if it behaved purely humanly.</p><p>Now look at the picture as a whole. The nature let the best creatures survive and dominate. This happened so long until the human being came. The time for the planet to get destroyed is much less than the time needed for a “better” creature to develop after us. Meaning, <em>we are the last ones</em>.</p><p>The day where we are going to almost vanish or to only exist in a small area — which will happen later to allow some of us survive — , the planet will be on its way recovering from our influence. Where one of both, humans or new developed humans-alike will dominate after thousands or millions of years.</p><p>So, now expand the image again. This looks like the degree of development on earth increasing then hitting the bottom. That loop keeps going on — imagine a ball bouncing — . Notice, that this actually had happened due to an event not caused by a creature, which was the massive meteorite falling on earth that made the dinosaurs extinct.</p><p><strong>Finally,</strong> this a message from me telling you, <strong>there is no hope</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da60fc4669a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Imagine the Conditional Independence.]]></title>
            <link>https://medium.com/@belal.alkufri/how-to-imagine-the-conditional-independence-f5a37b763eff?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5a37b763eff</guid>
            <category><![CDATA[conditional-independence]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[easy-understanding]]></category>
            <category><![CDATA[random-variable]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 00:24:19 GMT</pubDate>
            <atom:updated>2025-08-04T00:24:19.534Z</atom:updated>
            <content:encoded><![CDATA[<p>firstly, If you can not imagine what is exactly meant with “given” in P(X|Y) which stands for conditional probability, then I recommend you reading <a href="https://medium.com/@belal.alkufri/bayes-theorem-how-to-imagine-it-b22538ae3c90">this article.</a></p><p>Now we can go back to work. Here is the big rectangle our complete world.</p><figure><img alt="conditional independence: a graph showing two variables being conditionally independent" src="https://cdn-images-1.medium.com/max/706/1*maQ-0TsTUOLBmH4GYpVvsw.png" /><figcaption>source: <a href="https://ocw.mit.edu/courses/res-6-012-introduction-to-probability-spring-2018/">ocw.mit.edu</a></figcaption></figure><p>By saying P(something|C) we are shrinking our scope to the small orange rectangle, which becomes our new world to do our experiments and measurements in.</p><p>Now, in this new world ( C), are the both sets A and B independent? the <strong>answer</strong> is: yes, they have no part mutual at all in this new universe (C ).</p><p>This is why we can do the multiplication in the form of:</p><figure><img alt="conditional independence equation" src="https://cdn-images-1.medium.com/max/604/1*snneAJR4dxLs-rmG_GKtWw.png" /></figure><p>otherwise we would not be able to have this multiplication if we did not condition that our scope is C not the entire universe Ω</p><h3>Finally,</h3><p>I really think it is such a pity that we do not find such a figure online when searching for “<em>Conditional Independence</em>”. You only find those fancy maths symbol, ignoring that the reader or learner needs to actually understands this the easiest and fastest way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5a37b763eff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bayes theorem — How to imagine it.]]></title>
            <link>https://medium.com/@belal.alkufri/bayes-theorem-how-to-imagine-it-b22538ae3c90?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b22538ae3c90</guid>
            <category><![CDATA[bayes-theorem]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[conditional-probability]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 16:11:28 GMT</pubDate>
            <atom:updated>2025-07-27T19:19:04.143Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bayes theorem — How to imagine it.</h3><p>You don’t need to memorize Bayes’ theorem. You need to <strong>see</strong> it.<br> Once you do, you’ll be able to write the formula yourself. No rote learning. Just intuition.</p><h3>🎭 The Cast: Angry vs. Bold</h3><p>Imagine a group of people 👥:</p><ul><li><strong>A</strong> = Angry people.</li><li><strong>B</strong> = Bold people. so,<br>→ If someone is <strong>not</strong> in A → they’re <strong>not angry</strong>.</li></ul><p>Where they overlap (<strong>A ∩ B</strong>) → people who are <strong>both angry &amp; bold</strong>.</p><p>(We’re not doing abstract math here. we’re labeling people at a party)</p><figure><img alt="graph of bayes theorem aka conditional probability." src="https://cdn-images-1.medium.com/max/1024/1*IjnSTrQ3vQjugXHF4GQoLg.png" /><figcaption>source: <a href="https://analystprep.com/study-notes/actuarial-exams/soa/p-probability/general-probability/define-and-calculate-conditional-probabilities/">analystprep.com</a></figcaption></figure><h3>😶‍🌫️ Step 1: The Big scope</h3><p>Inside our “graph” (think of the big rectangle with everyone in it):</p><ul><li><strong>P(A)</strong> = 20% (angry people among all).</li><li><strong>P(B)</strong> = 20% (bold people among all).</li><li><strong>P(A ∩ B)</strong> = 10% (angry <strong>and</strong> bold, also among all).</li></ul><p><strong>Notice:</strong> These are all measured <strong>relative to the whole group</strong>. Pick any random person from the room → 100% chance they’re in the “everyone” set.</p><h3>🔍✂️ Step 2: Shrink the scope</h3><p>Now ask: “If I <strong>only look at the bold people</strong>, how many of them are also angry?”<br> We, so<strong>, </strong>are <strong>shrinking</strong> the <strong>scope </strong>to be just the <strong>bold</strong> <strong>ones</strong> (<strong>B</strong>) 😀😀</p><p>Inside this smaller world:</p><ul><li>There are 20 people (20%).</li><li>10 of them (A ∩ B) are also angry.</li></ul><h3>🥳 Step 3: The Intuition</h3><p>What’s the ratio of “bold &amp; angry” to “bold”?</p><figure><img alt="bayes theorem or conditional probability" src="https://cdn-images-1.medium.com/max/334/1*1ZjBdwPSTTleckezd3fBhA.png" /></figure><p>That’s <strong>P(A | B) </strong>or <strong>even P( (A ∩ B) | B) </strong>(which is the same since the common part between A and B (A∩B) is everything from A present within the <strong>current scope</strong> B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*bepdiFRTH8fhe33lT56x1w.png" /></figure><p>Read it as:</p><blockquote><em>“Given that someone is bold, what’s the chance they’re also angry?”<br>or<br>“considering only the bold ones, what is </em><strong><em>probability</em></strong><em> to pick someone who is angry?”</em></blockquote><p>That’s all <strong>Bayes’ theorem </strong>really is:</p><blockquote><em>Start with the </em><strong><em>whole scope → shrink</em></strong><em> to a smaller</em><strong><em> scope → measure a ratio </em></strong><em>inside it.</em></blockquote><p>People freeze when they see the <strong>Bayes</strong> formula:</p><figure><img alt="bayes theorem or conditional probability" src="https://cdn-images-1.medium.com/max/204/1*9u-1DrweRywidfcC_bJFcg.png" /></figure><p>But now you see: it’s just a <strong>fraction within a fraction</strong>. 😃</p><p>→ the sign of “<em>given</em>” (“|”) is about <strong>changing scopes.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b22538ae3c90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 5% rule sucks — A smarter way to run democracy]]></title>
            <link>https://medium.com/@belal.alkufri/the-5-rule-sucks-a-smarter-way-to-run-democracy-61617dd6f051?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/61617dd6f051</guid>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[equity]]></category>
            <category><![CDATA[bundestagswahl]]></category>
            <category><![CDATA[minorities]]></category>
            <category><![CDATA[dynamism]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 15:24:00 GMT</pubDate>
            <atom:updated>2025-07-25T15:42:39.776Z</atom:updated>
            <content:encoded><![CDATA[<h3>The 5% rule sucks — A smarter way to run democracy</h3><p>🇩🇪 <strong>Germany’s 5% Rule</strong>: To enter the Bundestag, a party needs at least <strong>5% of the national vote</strong>. Sounds reasonable? It’s meant to prevent chaos — too many tiny parties clogging up the system.</p><p>But here’s the problem: <strong>Static thresholds don’t care about context.</strong></p><p>This is an approach to make <strong>minorities</strong>, a.o. <strong>foreigners</strong>, wihin the scope 😇</p><figure><img alt="Ein Bild vom deutschen Bundestag" src="https://cdn-images-1.medium.com/max/880/0*wRGAFoCpFQ0eldqS.jpg" /><figcaption>source: <a href="https://www.phoenix.de/deutscher-bundestag-a-3084246.html">phoenix.de</a></figcaption></figure><h3>Example:</h3><p>A party gets <strong>4.9%</strong> of votes. That’s <strong>~3 million people</strong> saying “yes, we want you there.” But by the rule? <strong>They get 0 seats.</strong><br> Meanwhile, a party with <strong>just 0.1% more</strong> gets dozens of seats.</p><p>👉 <strong>Outcome:</strong> Votes of millions are effectively <strong>erased </strong>and not <strong>represented</strong>.</p><h3>Why was this introduced?</h3><p>The 5% clause came after <strong>Weimar Germany</strong> (1920s–30s), where <strong>too many tiny parties</strong> created paralysis. So lawmakers drew a clean line: <strong>5% or nothing.</strong></p><p>But that was <strong>decades ago</strong>.<br> <strong>Germany today?</strong> More voters, more parties, more diverse views. Shouldn’t the system adapt?</p><h3>Why Not Make It Dynamic?</h3><p>Imagine the 5% rule wasn’t carved in stone.<br> Instead, <strong>the threshold changes based on the number of parties and votes</strong> — automatically.</p><p>Think: <strong>A smart rule that adjusts itself.</strong></p><h3>My Proposal: A Dynamic Threshold</h3><p>Here’s a simple idea:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*68IyDQ1pI02otsHguObYIQ.png" /></figure><p>Where:</p><ul><li><strong>T</strong> = New threshold/target (dynamic, ~3%)</li><li><strong>P</strong> = Number of parties above 1%</li><li><strong>Pₒₚₜ</strong> = Ideal number of parties (say 6–8 for stability -&gt; 7)</li><li><strong>Pₘₐₓ, Pₘᵢₙ</strong> = Bounds for party count (realistic range: 3–15)</li><li><strong>k</strong> = Scaling factor (how “flexible” the threshold is, e.g., ±2%)<br>for that, we choose <strong>k = 0.03</strong></li></ul><p>👉 <strong>Meaning:</strong></p><ul><li>If there are <strong>too many parties</strong>, threshold <strong>increases slightly</strong> (3 → 5%) to keep it manageable.</li><li>If there are <strong>too few parties</strong>, threshold <strong>decreases slightly</strong> (3 → 1%) to include more voices. and everyone is presented as long possible.</li></ul><p>So, instead of 5% being sacred, <strong>it floats between ~1–5%.</strong></p><h4>Why exactly this range?</h4><p>Whereas of course the <strong>5%</strong> percent was chosen to be <strong>max</strong>, so I would be choosing the values to be surrounding <strong>3%</strong> ranging from 1% to 5%.</p><h3>Why It Matters</h3><ul><li><strong>Fairer Representation</strong>: 4.9% ≠ 0.</li><li><strong>Resilience</strong>: Avoids a sudden flood of micro-parties.</li><li><strong>Automation</strong>: Calculated once every 4 years by the electoral authority. No one needs to “vote on the rule” each time.</li><li>This keeps democracy <strong>adaptive</strong> — not frozen in the 1950s.</li></ul><h3>But Won’t It Be Too Complex?</h3><p>Nope. Voters (citizens) only need to know: <strong>“The threshold is ~5%, adjusted slightly depending on how fragmented the election is.”</strong><br>That’s it.<br>The heavy lifting?<br><strong>Done by only one competent authority and only once every election.</strong></p><h3>Static Rules Don’t Fit Dynamic Societies</h3><p>Germany’s 5% rule made sense for a different era.<br> But our political reality shifts. <strong>Why shouldn’t the threshold shift with it?</strong></p><p><strong>Democracy shouldn’t be rigid or static.</strong><br> It should evolve — just like the people it represents.</p><h3>Concrete Example:</h3><p>In the <strong>Bundestag vote on 23 February 2025</strong>, the <strong>BSW</strong> fell just short with <strong>4.97 %</strong> of second‑votes, failing to cross Germany’s 5 % entry threshold.</p><p>This dynamic threshold of <strong>≈ 2.75 %</strong> would easily have allowed <strong>BSW</strong> to enter the Bundestag.</p><p>If this article resonated, I will write the part of how the parties can have even less than 50% of seats in total to be able to make a coalition.</p><p>Additionally, if you like to know more about what equations can be used instead of the suggested one here, see <a href="https://en.wikipedia.org/wiki/Effective_number_of_parties">Effective number of parties</a>.</p><p>It’s a pity that, since not all foreigners are allowed to vote who happen to be a part of the community, the <strong>BSW</strong> — which represents many immigrant voices — just missed the threshold and thus was excluded despite its near‑threshold support.</p><p><em>Inspired by a simple question: “Why exactly 5%? Why not… smarter?”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61617dd6f051" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[study with online articles]]></title>
            <link>https://medium.com/@belal.alkufri/study-with-online-articles-ee35c79c66c1?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee35c79c66c1</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[study]]></category>
            <category><![CDATA[university]]></category>
            <category><![CDATA[online]]></category>
            <category><![CDATA[articles]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 22:06:50 GMT</pubDate>
            <atom:updated>2025-07-25T15:45:29.299Z</atom:updated>
            <content:encoded><![CDATA[<p>One way of studying for University courses is just with learning through articles on internet.</p><figure><img alt="study online" src="https://cdn-images-1.medium.com/max/1024/0*oHwPL1g7G9QzofNq.jpg" /><figcaption>source: <a href="https://www.roseofyork.com/blog/10-reasons-study-online/">roseofyork.com</a></figcaption></figure><p>you won’t believe that you will find posts and articles that are more of use than the most slides provided by your university professors</p><p>Here my experience with two areas (NLP, DL) of my field (AI) where I learned both in smallest detail with excellent articles online provided by good writers, getting to the point and giving the <strong>intuition</strong> for every detail they are explaining.</p><p>Here I will be telling of an example, how and why, to learn online, providing you with one example to have a feeling for it.</p><p>I firstly wanted to learn about transformers. I began, to read for <a href="https://medium.com/@mnshonco">Munesh Lakhey</a> about <a href="https://medium.com/towards-datascience/transformer-demystified-break-your-attention-and-build-it-back-31c9d41d412d">transformers</a>, where soon his article took me to <a href="https://jalammar.github.io/">Jay Alammar</a>’s post, “<a href="https://jalammar.github.io/illustrated-transformer/">illustrated transformers</a>”. Again, within that article I was taken to another until I learned the smalles details.</p><p>I literally used Google only once to find an article then was taken through it to find my other missing information.</p><p>So, if you at least want to learn about transformers, I recommend you to go my way, since you will find the grinded needed information every time you needed it, without googling ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee35c79c66c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does ChatGPT understand our world?]]></title>
            <link>https://medium.com/@belal.alkufri/does-chatgpt-understand-our-world-0d43e5467aa6?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d43e5467aa6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[chat]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Sat, 17 May 2025 21:43:39 GMT</pubDate>
            <atom:updated>2025-05-17T21:43:39.613Z</atom:updated>
            <content:encoded><![CDATA[<p>the short answer is <strong>no</strong> but here an <strong>example</strong> to understand <strong>why</strong>.</p><figure><img alt="a real brain on the left and digital one on the right. both seem to be chatting." src="https://cdn-images-1.medium.com/max/931/1*NZmbN8aUFqkQ8hpm6xDdVg.png" /><figcaption>source: <a href="https://www.linkedin.com/pulse/interview-chatgpt-gemma-calvert/">LinkedIn</a>.</figcaption></figure><p>I won’t be telling longly, I will just tell you directly what a gpt knows:</p><p>Imagine, I give you a machine to work with, telling you, whenever you see a green light press those buttons in this order, if you see a red light press those, by red and green being active together you press those specific buttons in that order.</p><p>Now you do not know what this machine is made for or what happens when you press those buttons. But, as long you are doing what you were told to do, you are doing the job right. I’m happy, you are happy.</p><p>Now on the backside of the machine anything could be happening, but can you guess that? give it a try :)</p><p>you most probably have given up on answering my question since I gave you no clue about the reason we have the machine or what it can be producing.</p><p>on the other side (behind a wall let’s say) a public café is open for customers. I am entering the wishes of customers pressing on coffee button when someone is ordering coffee. You get the green light on, you do your work so that the coffee on my side is made. assume, red color stands for cappuccino, and green and red together stand for latte.</p><p>As said I’m happy about you getting me the job done but you got no clue what is happening on the other side.</p><p>This you can imagine as what the computer is knowing even when they seem to give you very human answers.</p><p>I hope now you can be less amazed by those Machines/Programms/GPTs, as they are good with acting like ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d43e5467aa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MacOS is nice! But …]]></title>
            <link>https://medium.com/@belal.alkufri/macos-is-nice-but-179bf721ef3c?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/179bf721ef3c</guid>
            <category><![CDATA[disadvantages]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[improvement]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Fri, 02 May 2025 08:59:48 GMT</pubDate>
            <atom:updated>2025-07-19T10:57:06.057Z</atom:updated>
            <content:encoded><![CDATA[<h3>MacOS is nice! But …</h3><p>I bought the macbook air m3, which is my <strong>first</strong> mac or even my 1st apple product. Meanwhile, I wrote about <strong>features</strong> that are nice and ones that are still missing. Here I am listing the missing ones :) (so the <strong>cons of system </strong>how to say)</p><p><strong>Hints:<br>- </strong>the macOS I am reviewing here is <strong>‘Sonoma’<br>- </strong>see other articles of mine to read about the <strong>pros</strong> I found of macOS</p><h3>Intro:</h3><p>after upgrading to mac, you will really appreciate the design of the OS (operating system). You can find a lot of articles online, where people claim not to go back to windows. BUT, here I will list you some points where apple could be profiting from some improvements.</p><h4><strong>aligning windows:</strong></h4><p>I was surprised, that adapting the <strong>windows</strong> of apps was not intuitive when trying to align them to screen edges. It is shocking for an always windows user that you need an external app for doing that!<br>Here, I can <strong>recommend</strong> the app “<strong>Rectangle</strong>”. it offers bunch of options and is free.</p><h4>reverse mouse buttons:</h4><p>the other thing was not being able to reverse mouse buttons. that was available only for usual mouse but not for pad. so if you change the settings once, it changes for both mouse and touchpad. (no separation)<br>to separate them I installed a specific app for that, which I let go after I had “Karabiner” installed.</p><h4>mission control:</h4><figure><img alt="an image showing apps on mac using the built-in feature mission control" src="https://cdn-images-1.medium.com/max/538/1*smabI1hxZCyT0KeFnGaq2g.png" /><figcaption>mission control (press F3 to show)</figcaption></figure><p>when showing apps all together you can not <strong>close</strong> them directly from that <strong>mission control</strong> panel, you have to open every window then close it <strong>separately</strong> which is cumbersome.<br>I mean, apple could only build in an <strong>‘x’</strong> to the icons for easy closing.</p><h4>external Keyboard:</h4><p>The <strong>Bluetooth</strong> keyboard connects poorly or sometimes not at all to macOS. It works perfectly <strong>wireless</strong>ly.<br>Unfortunately, even the wired mouse is always identified as a keyboard. There’s plenty of room for Apple to improve <strong>recognition</strong> of peripherals. Therefore, the switching of functionality for individual keys (as correction or preference) can then be done via a built-in application. meaning by that the case, when you press “command” on peripheral but for example “control” is understood to be pressed.</p><h4>Apps/features missing:</h4><p>a few apps (mostly) you have to install manually after having any new mac.</p><p><strong>…only one external screen active…<br></strong>Such as an app to allow you to work only from one external screen without the basic one being active.<br><strong>…alignment with screen edges…</strong><br>Or another one to make windows fit into fullscreen modus or dual windows on same screen aligning each other.<br><strong>…external apps…<br></strong>Some Apps I needed to install but that would not be the case for everyone. like an app to reverse the buttons of your mouse. or as mentioned before, the keyboard problem.<br><strong>…reconfigure and map keys…<br></strong> for that I installed <strong>Karabiner</strong> Elements to map keys correctly and aligning to my wishes. With <strong>Karabiner</strong> you can even map buttons to functions or shortcuts. it is very flexible when it comes to reconfiguring your peripheries.</p><h4>fullscreen Problem:</h4><p>as a beginner I struggled with going back to the app (here firefox) which played a video in <strong>fullscreen</strong>. I did not know, that this app opens in a new screen (beside) when switching to fullscreen mode.</p><h4>discharging during sleeping:</h4><p>macOS does not diconnect electricity for periphery devices when put to sleep. After put to sleep I sleep as well 😁 and wake up to 25% of battery discharged while mac was connected to a dockingstation.<br><strong>Improvement: </strong>if the OS disconnects electricity of peripheries during sleeping that would be great. so I do not need to physically do it myself everytime I put the mac to sleep 🥲</p><p><strong>regarding sleeping, </strong>when putting the laptop to (modus) sleep, sometimes after starting it again, it does not require password, thought it has slept for hours and my settings are set to require a password after one minute of inactivity. That is a <strong>dangerous </strong>bug. <br>the other <strong>disturbing bug</strong> regarding putting the mac to modus sleep is that the monitor brightness is sometimes not adjustable. So, I sadly have to restart the complete system :(</p><h4>Finder (the default explorer app)</h4><p>with editing settings of Finder, you are easily able to arrange it for Finder to have bad show options. it does not correct the grid automatically as windows does when adapting the sizes of icons and other settings. All of that happening in “<strong>icon view</strong>”, watch out!<br>The problem I had was in changing settings for all other folders. the current folder looks good. so you notice only later that something is messed up. Anyways, the problem I had only once and think the solution to be in selecting all files then dragging them slightly, so they fit to the grid :)</p><p><strong>snap to grid:</strong> I dont get it, why I have to enable it myself. “snap to grid” should be checked per default!</p><h4>external monitor:</h4><p>no solely external one!<br>Although you can set the external monitor as the main one for work, you are not able to work on only one external monitor, if you desire to. Somehow, you can not deactivate the default one of your mac. the reason is that you do not want the mouse to slip to basic monitor and secondly when something not showing up on your screen you have to look at the monitor of your mac to check if that thing was shown there. (sometimes you work with a monitor where your laptop is sitting to your side 😉)</p><h4><strong>improvements:</strong></h4><p>a suggestion for improvement. when switching windows of same app (using <strong>command </strong>+<strong> ^</strong>) when using it for the second time, it should switch to the last opened window. right now it opens all windows in a row, making it difficult to switch among only two windows among 10 of them.</p><h4>Preview</h4><p><strong>disadvantages:</strong><br>you can not specify how transparent marking is. and when leaving a note on some text it covers the upper line as you see in this screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*vomkiYkSLBrWf4lXGtP1Qg.png" /></figure><p>If you accidentally delete entire text, it can’t be retrieved with cmd+z. The workaround is to make a copy of the file and then open it if there was any text, otherwise it can’t be retrieved. The features could be improved, since preview is intended to be used the primarily.</p><p>you can copy therein formatted text but not edit it. like you can not chagne the boltness of font.</p><p>adopting a signature using camera does not work well. I hope they work on it as it has big space for improvements.</p><p><strong>Markup</strong>:<br>when you are marking your text watch out that you do not press (Command+A) (~standing for “select all”) because there is no going back (with command+Z). secondly, you got to recover the file from where it was uploaded otherwise you can be unlucky and be unable to restore it!!</p><h4>Calendar.app</h4><p><strong>cons:<br></strong>syncing is hard. the initial event you make is synced to your used email in settings but once you switch at least the type of the event to ‘work’, that event stops syncing and hence is not visible on other devices.</p><p>for that I installed google calendar. which is easy to use and comes in light version. you can install it by going online to the google calendar website then directly creating an app of that website</p><h4><strong>Operating System</strong></h4><p>I would not recommend the upgrading to the new OS “Sequoia” if you do not have a well-grounded reason for it. since it is an OS with more size. the only improvements I liked is that you do not have to install Rectangle to align windows. secondly, in the notes app you have coloring text feature. the big improvements with that new OS might be for those who have an iphone.</p><p>another <strong>Con</strong> by the system would be, it not recognizing the random pressing of keys. Which should be an obvious mechanism to offer protection in that manner.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=179bf721ef3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inline vs Internal vs External CSS: which the strongest? (mnemonic)]]></title>
            <link>https://medium.com/@belal.alkufri/inline-vs-internal-vs-external-css-which-the-strongest-mnemonic-59c4629ec9b6?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/59c4629ec9b6</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[inline-style]]></category>
            <category><![CDATA[external-style]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[internal-style]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 12:56:16 GMT</pubDate>
            <atom:updated>2025-07-25T15:52:28.253Z</atom:updated>
            <content:encoded><![CDATA[<p>there is another way to think of priority of order of CSS-styles than the most popular one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*MbkJYO68PfxfLqZI" /><figcaption>source: <a href="https://www.linkedin.com/pulse/css-darshika-srivastava/">linkedin.com</a></figcaption></figure><h4><strong>popular </strong>way</h4><p>you hear that <em>Inline styling </em>is the strongest one beneath <em>external </em>and <em>internal.</em></p><p>But the thing is, you do not have to memorize it like that.</p><h4>Why? (last read wins)</h4><p>The reason behind it (inline) being the strongest in order, is that it gets read as most recent before translating, let’s say, the HTML-paragraph into viewed Text on browser. HTML always reads and saves the value that was read lastly before execution. Since no other way exists to storage a value assigned by an internal or external styling, the value used for a specific attribute is going to be taken from Inlining-styler.</p><p>If you confronted any other recurrent issues, just think of “<strong>last read wins</strong>”. <br>An issue such as, which attribute (color, size, … etc) wins by repeated ones mentioned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59c4629ec9b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript → TypeScript: which errors fixed?]]></title>
            <link>https://medium.com/@belal.alkufri/javascript-typescript-which-errors-fixed-9e9fe796cac8?source=rss-aac5c1074ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e9fe796cac8</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[error-prevention]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[error]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Belal Alkufri]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 23:34:26 GMT</pubDate>
            <atom:updated>2025-07-25T15:48:47.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R4ijqQ-dq0iQGRgt.jpg" /><figcaption>source: <a href="https://www.webmavens.com/blog/javascript-vs-typescript/">webmavens.com</a></figcaption></figure><p><em>JavaScript </em>is known for its strange features. One of them is when concatenating 2 arrays, this results in merging two elements from both arrays, last and first, together in one element as in this example:<br>[1,2,3] + [4,5,6] = &quot;1,2,34,5,6&quot;</p><p>in following link you can find a long list of these quirks, from which I inspired this story:</p><p><a href="https://dev.to/jagroop2001/think-you-know-javascript-these-15-quirks-will-change-your-mind-16pp">Think You Know JavaScript? These 15 Quirks Will Change Your Mind! 💥</a></p><p>Here I will only list you which of those errors have been fixed with <em>TypeScript</em>:</p><h4><strong>through <em>Type Safety</em> Concept:</strong></h4><ol><li><strong>Type Coercion (</strong><strong>&quot;False&quot; == 0, </strong><strong>0 == [], etc.)</strong><br><em>TypeScript </em>enforces stricter types, making implicit coercion less likely. You’ll encounter errors when comparing incompatible types (e.g., string vs. number), preventing surprises like &quot;False&quot; == 0.</li><li><strong>NaN === NaN is False</strong><br><em>TypeScript </em>flags operations that might produce NaN with better static analysis, reducing the chance of encountering this behavior unexpectedly.</li><li><strong>undefined + 1 vs. </strong><strong>null + 1</strong><br><em>TypeScript </em>helps avoid such issues by flagging operations where undefined or null could unexpectedly show up. Using strictNullChecks, these scenarios are surfaced as compile-time errors.</li><li><strong>typeof null Returning </strong><strong>&quot;object&quot;</strong><br><em>TypeScript </em>clearly differentiates between null and object through type annotations, avoiding confusion when dealing with nullable types.</li><li><strong>Array Quirks (</strong><strong>new Array(3) vs. </strong><strong>[,,])</strong><br><em>TypeScript </em>enforces clear array definitions (Array&lt;number&gt;, number[]), avoiding ambiguities like &quot;empty slots&quot; or uninitialized arrays.</li></ol><h4>Others:</h4><ol><li><strong>Implicit Truthy/Falsy Values (</strong><strong>!!&quot;&quot;, </strong><strong>!!0)</strong><br><em>TypeScript </em>ensures that nullable or undefined values are explicitly handled, especially when using strict mode. This minimizes bugs caused by unexpected truthy/falsy evaluations.</li><li><strong>Type-Safe Parsing (</strong><strong>parseFloat vs. </strong><strong>parseInt)</strong><br><em>TypeScript </em>ensures clarity by allowing type-safe operations and flagging inconsistent behavior in number parsing.</li></ol><p>Other quirks (e.g., [] + {} vs. {} + []) are already rooted in <em>JavaScript</em> syntax and order of evaluation, which <em>TypeScript </em>doesn&#39;t fundamentally change. However, <em>TypeScript </em>helps prevent errors arising from misunderstanding such behaviors by providing static analysis and clearer type expectations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e9fe796cac8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>