mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#encapsulation

0 Beiträge0 Beteiligte0 Beiträge heute
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>
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/" rel="nofollow noopener" target="_blank"><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's public interface</p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://fosstodon.org/tags/modules" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>modules</span></a> <a href="https://fosstodon.org/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <a href="https://fosstodon.org/tags/namespacing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>namespacing</span></a> <a href="https://fosstodon.org/tags/zenofpython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zenofpython</span></a> <a href="https://fosstodon.org/tags/bestpractices" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bestpractices</span></a> <a href="https://fosstodon.org/tags/pitfalls" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pitfalls</span></a> <a href="https://fosstodon.org/tags/imports" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>imports</span></a> <a href="https://fosstodon.org/tags/dundermethods" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dundermethods</span></a></p>
Bob Belderbos<p>People newer to Python often get confused by the statement:</p><p>if __name__ == "__main__":</p><p>That's many underscores ("dunders"), 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" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=ubpFY7_dAW</span><span class="invisible">4</span></a></p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://fosstodon.org/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <a href="https://fosstodon.org/tags/pythoncoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncoding</span></a></p>