fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.7K
active users

#encapsulation

1 post1 participant0 posts today
OptimusPrimeBot<p>Artemis II Payload Integration 🛰️🧑‍🚀</p><p><a href="https://mastodon.online/tags/ArtemisII" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ArtemisII</span></a> <a href="https://mastodon.online/tags/CapeCanaveral" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CapeCanaveral</span></a> <a href="https://mastodon.online/tags/CarruthersGeocoronaObservatory" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CarruthersGeocoronaObservatory</span></a> <a href="https://mastodon.online/tags/Encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Encapsulation</span></a> <a href="https://mastodon.online/tags/Florida" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Florida</span></a> <a href="https://mastodon.online/tags/IMAP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IMAP</span></a> <a href="https://mastodon.online/tags/InterstellarMappingandAccelerationProbe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>InterstellarMappingandAccelerationProbe</span></a> <a href="https://mastodon.online/tags/JohnFKennedySpaceCenter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JohnFKennedySpaceCenter</span></a> </p><p>⏩ 16 new pictures from NASA (Image Library) <a href="https://commons.wikimedia.org/wiki/Special:ListFiles?limit=16&amp;user=OptimusPrimeBot&amp;ilshowall=1&amp;offset=20250920010947" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">commons.wikimedia.org/wiki/Spe</span><span class="invisible">cial:ListFiles?limit=16&amp;user=OptimusPrimeBot&amp;ilshowall=1&amp;offset=20250920010947</span></a></p>
N-gated Hacker News<p>📜 Behold, a relic from the distant past—2013! Back when "Page Object" was the new black in the world of <a href="https://mastodon.social/tags/testing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>testing</span></a>, because clearly, nobody knew that UIs change. 🤯 Marvel at the revolutionary idea of not frying your tests with a side of HTML spaghetti, as if <a href="https://mastodon.social/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> wasn't already a thing. 🍝<br><a href="https://martinfowler.com/bliki/PageObject.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">martinfowler.com/bliki/PageObj</span><span class="invisible">ect.html</span></a> <a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/PageObject" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PageObject</span></a> <a href="https://mastodon.social/tags/HTMLSpaghetti" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTMLSpaghetti</span></a> <a href="https://mastodon.social/tags/UITrends" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UITrends</span></a> <a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/ngated" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ngated</span></a></p>
transform-social<p>quotes from the text:</p><p>"The concepts rejected as “not complex enough” might be simple building blocks, like molecules in a living body, that can be combined with other concepts to create a framework that can handle an adequate amount of complexity."</p><p>"I.e. that the black box has only the purpose of simplification and not that of knowledge elitism and hidden power structures."</p><p><a href="https://climatejustice.social/tags/ComplexSystems" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ComplexSystems</span></a> <a href="https://climatejustice.social/tags/Encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Encapsulation</span></a></p>
Swapneel Mohite<p>Take the red pill of <a href="https://mastodon.social/tags/OOP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OOP</span></a>! Learn programming concepts in <a href="https://mastodon.social/tags/TheMatrix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TheMatrix</span></a>. Less dodging bullets, more <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a>. Inheritance, polymorphism, fun!</p><p><a href="https://mastodon.social/tags/OOP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OOP</span></a> <a href="https://mastodon.social/tags/ObjectOrientedProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ObjectOrientedProgramming</span></a> <a href="https://mastodon.social/tags/Abstraction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Abstraction</span></a> <a href="https://mastodon.social/tags/AgentSmith" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AgentSmith</span></a> <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++ <a href="https://mastodon.social/tags/characteranalysis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>characteranalysis</span></a> <a href="https://mastodon.social/tags/Classes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Classes</span></a> <a href="https://mastodon.social/tags/Encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Encapsulation</span></a> <a href="https://mastodon.social/tags/Inheritance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Inheritance</span></a> <a href="https://mastodon.social/tags/Java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Java</span></a> <a href="https://mastodon.social/tags/Morpheus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Morpheus</span></a> <a href="https://mastodon.social/tags/Neo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Neo</span></a> <a href="https://mastodon.social/tags/Objects" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Objects</span></a> <a href="https://mastodon.social/tags/OOPConcepts" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OOPConcepts</span></a> <a href="https://mastodon.social/tags/Polymorphism" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Polymorphism</span></a> <a href="https://mastodon.social/tags/TheMatrix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TheMatrix</span></a> <a href="https://mastodon.social/tags/Oracle" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Oracle</span></a> <a href="https://mastodon.social/tags/Trinity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Trinity</span></a> <a href="https://mastodon.social/tags/GiggleByte" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GiggleByte</span></a> <a href="https://mastodon.social/tags/SwapneelMohite" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwapneelMohite</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a></p><p><a href="https://medium.com/@swap.mohite/the-matrix-an-object-oriented-lesson-i-taught-revisited-9532a0712bc9" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medium.com/@swap.mohite/the-ma</span><span class="invisible">trix-an-object-oriented-lesson-i-taught-revisited-9532a0712bc9</span></a></p>
John Vaccaro (johniac)<p>Attention-Worthy Links for December 11th, 2024</p><p><a href="https://bit.ly/awl121124" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">bit.ly/awl121124</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Electricity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Electricity</span></a> <a href="https://mastodon.social/tags/SMR" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SMR</span></a> <a href="https://mastodon.social/tags/X" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>X</span></a>-energy <a href="https://mastodon.social/tags/Kairos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kairos</span></a> <a href="https://mastodon.social/tags/TRISO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TRISO</span></a> <a href="https://mastodon.social/tags/pebble" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pebble</span></a> <a href="https://mastodon.social/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <a href="https://mastodon.social/tags/England" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>England</span></a> <a href="https://mastodon.social/tags/trespassing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>trespassing</span></a> <a href="https://mastodon.social/tags/commoning" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>commoning</span></a> #92% <a href="https://mastodon.social/tags/seizure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>seizure</span></a> <a href="https://mastodon.social/tags/depletion" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>depletion</span></a> <a href="https://mastodon.social/tags/collective" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>collective</span></a> <a href="https://mastodon.social/tags/resources" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>resources</span></a> <a href="https://mastodon.social/tags/carbon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>carbon</span></a>-fiber <a href="https://mastodon.social/tags/CFRPs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CFRPs</span></a> <a href="https://mastodon.social/tags/Aspergillusnidulans" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Aspergillusnidulans</span></a> <a href="https://mastodon.social/tags/OTA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OTA</span></a> <a href="https://mastodon.social/tags/Overhuman" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Overhuman</span></a> <a href="https://mastodon.social/tags/Nietzsche" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nietzsche</span></a> <a href="https://mastodon.social/tags/Zarathustra" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zarathustra</span></a> <a href="https://mastodon.social/tags/clairvoyant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clairvoyant</span></a> <a href="https://mastodon.social/tags/futurist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>futurist</span></a> <a href="https://mastodon.social/tags/hydrogen" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hydrogen</span></a> <a href="https://mastodon.social/tags/Mark" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mark</span></a>-17 <a href="https://mastodon.social/tags/Albuquerque" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Albuquerque</span></a> <a href="https://mastodon.social/tags/B" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>B</span></a>-36 <a href="https://mastodon.social/tags/conventional" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>conventional</span></a> <a href="https://mastodon.social/tags/Broken" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Broken</span></a> <a href="https://mastodon.social/tags/Arrow" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Arrow</span></a> <a href="https://mastodon.social/tags/Hummingbird" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hummingbird</span></a> <a href="https://mastodon.social/tags/cubesat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cubesat</span></a> <a href="https://mastodon.social/tags/NEO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NEO</span></a> <a href="https://mastodon.social/tags/Lagrange" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lagrange</span></a> <a href="https://mastodon.social/tags/L3Harris" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>L3Harris</span></a> <a href="https://mastodon.social/tags/graphene" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>graphene</span></a> <a href="https://mastodon.social/tags/interconnect" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>interconnect</span></a> <a href="https://mastodon.social/tags/micro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micro</span></a>-electronics <a href="https://mastodon.social/tags/TSMC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TSMC</span></a> <a href="https://mastodon.social/tags/CMOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CMOS</span></a></p>
IB Teguh TM<p>Dive into the world of <a href="https://mastodon.social/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> in <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++! Discover how to protect your data, create flexible code, and master <a href="https://mastodon.social/tags/OOP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OOP</span></a>. Learn to use access specifiers, private members, and public methods for better software design. <a href="https://mastodon.social/tags/Cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cpp</span></a></p><p><a href="https://teguhteja.id/encapsulation-in-cpp-mastering-data-hiding-and-access-control-2/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">teguhteja.id/encapsulation-in-</span><span class="invisible">cpp-mastering-data-hiding-and-access-control-2/</span></a></p>
IB Teguh TM<p>Discover the power of encapsulation in C++! Learn how to protect your data, improve code flexibility, and master object-oriented programming. Dive into practical examples and boost your C++ skills. <a href="https://mastodon.social/tags/CPlusPlus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPlusPlus</span></a> <a href="https://mastodon.social/tags/OOP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OOP</span></a> <a href="https://mastodon.social/tags/Encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Encapsulation</span></a></p><p><a href="https://teguhteja.id/encapsulation-in-cpp-mastering-data-hiding-and-access-control/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">teguhteja.id/encapsulation-in-</span><span class="invisible">cpp-mastering-data-hiding-and-access-control/</span></a></p>
Pankaj Chouhan<p>Discover the power of encapsulation in C++! 🚀 Learn how this cornerstone principle makes software robust and manageable. Dive into practical examples and unravel its essence with us at p4n.in. <a href="https://mastodon.social/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a></p><p><a href="http://p4n.in/2024/04/07/encapsulation-in-c-a-comprehensive-exploration/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">http://</span><span class="ellipsis">p4n.in/2024/04/07/encapsulatio</span><span class="invisible">n-in-c-a-comprehensive-exploration/</span></a></p>
Tanys Foster<p><a href="https://tech.lgbt/tags/decoupling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>decoupling</span></a> <a href="https://tech.lgbt/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <br><a href="https://tech.lgbt/tags/thatmomentwhen" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>thatmomentwhen</span></a> you realize your OOP structure was worth it when you have to replace one class with another*, and when you swap in the new code for the old code... EVERYTHING STILL WORKS.</p><p>* I mean 3. THREE classes.</p><p><a href="https://tech.lgbt/tags/codejoy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>codejoy</span></a></p>
SiNK<p>Are You tired of Your IT departments blocking essential services(your self-hosted wireguard) on eduroam WiFi? Try encapsulating it with http/websockets !</p><p><a href="https://sdr.li/post/chisel0/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">sdr.li/post/chisel0/</span><span class="invisible"></span></a><br><a href="https://sdr.li/post/chisel2/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">sdr.li/post/chisel2/</span><span class="invisible"></span></a></p><p><a href="https://hachyderm.io/tags/eduroam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>eduroam</span></a> <a href="https://hachyderm.io/tags/firewall" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>firewall</span></a> <a href="https://hachyderm.io/tags/chisel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>chisel</span></a> <a href="https://hachyderm.io/tags/sysop" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sysop</span></a> <a href="https://hachyderm.io/tags/admin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>admin</span></a> <a href="https://hachyderm.io/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <a href="https://hachyderm.io/tags/wireguard" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wireguard</span></a> <a href="https://hachyderm.io/tags/bofh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bofh</span></a></p>
Clojure Diary<p>Private constants &amp; breaking private functions in Clojure</p><p><a href="https://youtu.be/kzAOEqlbapM" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/kzAOEqlbapM</span><span class="invisible"></span></a></p><p><a href="https://clj.social/tags/Clojure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Clojure</span></a> <a href="https://clj.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://clj.social/tags/Software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Software</span></a> <a href="https://clj.social/tags/Encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Encapsulation</span></a></p>
OptimusPrimeBot<p>Psyche Transport from Astrotech to LC 39A 🛰️</p><p><a href="https://mastodon.online/tags/ASU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ASU</span></a> <a href="https://mastodon.online/tags/ArizonaStateUniversity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ArizonaStateUniversity</span></a> <a href="https://mastodon.online/tags/Astrotech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Astrotech</span></a> <a href="https://mastodon.online/tags/DSOC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DSOC</span></a> <a href="https://mastodon.online/tags/DeepSpaceOpticalCommunication" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeepSpaceOpticalCommunication</span></a> <a href="https://mastodon.online/tags/Encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Encapsulation</span></a> <a href="https://mastodon.online/tags/FalconHeavy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FalconHeavy</span></a> <a href="https://mastodon.online/tags/JPL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JPL</span></a> </p><p>⏩ 4 new pictures from NASA <a href="https://commons.wikimedia.org/wiki/Special:ListFiles?limit=4&amp;user=OptimusPrimeBot&amp;ilshowall=1&amp;offset=20231007013826" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">commons.wikimedia.org/wiki/Spe</span><span class="invisible">cial:ListFiles?limit=4&amp;user=OptimusPrimeBot&amp;ilshowall=1&amp;offset=20231007013826</span></a></p>
Pybites<p>New article:</p><p>⚠️Why you should avoid import * in Python 🐍<br /><a href="https://pybit.es/articles/why-you-should-avoid-import-in-python/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">pybit.es/articles/why-you-shou</span><span class="invisible">ld-avoid-import-in-python/</span></a></p><p>Covering:<br />- Why modules are great and namespacing explained<br />- Why import * is a problem<br />- A practical example where a function gets overriden<br />- The recommended way to do imports<br />- What PEP8 has to say about this<br />- Protection workaround, use __all__ to define your module&#39;s public interface</p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://fosstodon.org/tags/pythonprogramming" class="mention hashtag" rel="tag">#<span>pythonprogramming</span></a> <a href="https://fosstodon.org/tags/modules" class="mention hashtag" rel="tag">#<span>modules</span></a> <a href="https://fosstodon.org/tags/encapsulation" class="mention hashtag" rel="tag">#<span>encapsulation</span></a> <a href="https://fosstodon.org/tags/namespacing" class="mention hashtag" rel="tag">#<span>namespacing</span></a> <a href="https://fosstodon.org/tags/zenofpython" class="mention hashtag" rel="tag">#<span>zenofpython</span></a> <a href="https://fosstodon.org/tags/bestpractices" class="mention hashtag" rel="tag">#<span>bestpractices</span></a> <a href="https://fosstodon.org/tags/pitfalls" class="mention hashtag" rel="tag">#<span>pitfalls</span></a> <a href="https://fosstodon.org/tags/imports" class="mention hashtag" rel="tag">#<span>imports</span></a> <a href="https://fosstodon.org/tags/dundermethods" class="mention hashtag" rel="tag">#<span>dundermethods</span></a></p>
Bob Belderbos<p>People newer to Python often get confused by the statement:</p><p>if __name__ == &quot;__main__&quot;:</p><p>That&#39;s many underscores (&quot;dunders&quot;), right?</p><p>In essence it lets you put code in your module that ONLY should execute when the module is called directly. So not when you import from it.</p><p>I explain this further with a practical example in this 3 minute video:<br /><a href="https://www.youtube.com/watch?v=ubpFY7_dAW4" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=ubpFY7_dAW4</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://fosstodon.org/tags/pythonprogramming" class="mention hashtag" rel="tag">#<span>pythonprogramming</span></a> <a href="https://fosstodon.org/tags/encapsulation" class="mention hashtag" rel="tag">#<span>encapsulation</span></a> <a href="https://fosstodon.org/tags/pythoncoding" class="mention hashtag" rel="tag">#<span>pythoncoding</span></a></p>
Qazm<p><span>It's good to see my favourite WPF feature isn't dead:<br></span></p><pre><code>class StamperBase { constructor(o) { return o; } } class MyAttachedProperty extends StamperBase { #name; static getName(o) { return o.#name; } static setName(o, v) { return o.#name = v; } } const hostInit = Host.prototype.initialize; Host.prototype.initialize = function() { new MyAttachedProperty(this); return hostInit.apply(this, arguments); }; export const attachedNames = { get: MyAttachedProperty.get, set: MyAttachedProperty.set, };</code></pre><span><br></span><a href="https://stop.voring.me/tags/JavaScript" rel="nofollow noopener" target="_blank">#JavaScript</a><span> </span><a href="https://stop.voring.me/tags/encapsulation" rel="nofollow noopener" target="_blank">#encapsulation</a><span> </span><a href="https://stop.voring.me/tags/pluginDev" rel="nofollow noopener" target="_blank">#pluginDev</a><span> </span><a href="https://stop.voring.me/tags/shitpost" rel="nofollow noopener" target="_blank">#shitpost</a><span> </span><a href="https://stop.voring.me/tags/mildlyCursedCode" rel="nofollow noopener" target="_blank">#mildlyCursedCode</a><p></p>
Eph Baum<p>Always fun when I get to break out this graphic 😆 </p><p><a href="https://hachyderm.io/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> <a href="https://hachyderm.io/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a></p>
IT News<p>A Survey Of Long-Term Waterproofing Options - When it comes to placing a project underwater, the easy way out is to just stick i... - <a href="https://hackaday.com/2023/03/27/a-survey-of-long-term-waterproofing-options/" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2023/03/27/a-surv</span><span class="invisible">ey-of-long-term-waterproofing-options/</span></a> <a href="https://schleuss.online/tags/encapsulating" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulating</span></a> <a href="https://schleuss.online/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <a href="https://schleuss.online/tags/waterproofing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>waterproofing</span></a> <a href="https://schleuss.online/tags/underwater" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>underwater</span></a> <a href="https://schleuss.online/tags/waterproof" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>waterproof</span></a> <a href="https://schleuss.online/tags/how" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>how</span></a>-to</p>
billseipel<p>Yes. </p><p>&quot;cd.buy()&quot; makes perfect sense. </p><p><span class="h-card" translate="no"><a href="https://mastodon.cloud/@jasongorman" class="u-url mention">@<span>jasongorman</span></a></span> <br />explains why you&#39;re probably thinking about OOP all wrong.</p><p>The takeaway: Encapsulation is the goal. The function is encapsulated upon the object.</p><p>Yes, you could try &#39;customer.Buy()&#39; but then you end up with low-level coupling. </p><p>&quot;Objects should encapsulate the details of HOW they work.&quot;</p><p><a href="https://fosstodon.org/tags/oop" class="mention hashtag" rel="tag">#<span>oop</span></a> <a href="https://fosstodon.org/tags/programming" class="mention hashtag" rel="tag">#<span>programming</span></a> <a href="https://fosstodon.org/tags/design" class="mention hashtag" rel="tag">#<span>design</span></a> <a href="https://fosstodon.org/tags/encapsulation" class="mention hashtag" rel="tag">#<span>encapsulation</span></a> </p><p><a href="https://www.youtube.com/watch?v=YG2qztxsmEs" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=YG2qztxsmEs</span><span class="invisible"></span></a></p>
pierre.marquestaut<p>cours modèle OSI</p><p><a href="https://peertube.lyceeconnecte.fr/videos/watch/280921dd-58fe-4ace-872a-afe2ad8d357c" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">peertube.lyceeconnecte.fr/vide</span><span class="invisible">os/watch/280921dd-58fe-4ace-872a-afe2ad8d357c</span></a></p>
berkes 🐝 🚐 🏄 🌱<p>I once was hired as consultant to guide a team who wanted move their monolith to <a href="https://bitcoinhackers.org/tags/microservices" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>microservices</span></a>. We got only halfway. And it was good!</p><p>The route to microservices goes via <a href="https://bitcoinhackers.org/tags/DomainModeling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DomainModeling</span></a>, <a href="https://bitcoinhackers.org/tags/decoupling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>decoupling</span></a>, and <a href="https://bitcoinhackers.org/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a>. Bounded contexts, decoupling and modules was enough to put the team back on track and moving again. We never built a single microservice.</p><p>This week, Ted Neward wrote about this idea in a post that I now no longer have to write:</p><p><a href="https://blogs.newardassociates.com/blog/2023/you-want-modules-not-microservices.html" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blogs.newardassociates.com/blo</span><span class="invisible">g/2023/you-want-modules-not-microservices.html</span></a></p><p><a href="https://bitcoinhackers.org/tags/SoftwareArchitecture" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareArchitecture</span></a></p>