New article:
⚠️Why you should avoid import * in Python 🐍
https://pybit.es/articles/why-you-should-avoid-import-in-python/
Covering:
- Why modules are great and namespacing explained
- Why import * is a problem
- A practical example where a function gets overriden
- The recommended way to do imports
- What PEP8 has to say about this
- Protection workaround, use __all__ to define your module's public interface
#python #pythonprogramming #modules #encapsulation #namespacing #zenofpython #bestpractices #pitfalls #imports #dundermethods
#python #pythonprogramming #modules #encapsulation #namespacing #zenofpython #bestpractices #pitfalls #imports #dundermethods
People newer to Python often get confused by the statement:
if __name__ == "__main__":
That's many underscores ("dunders"), right?
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.
I explain this further with a practical example in this 3 minute video:
https://www.youtube.com/watch?v=ubpFY7_dAW4
#python #pythonprogramming #encapsulation #pythoncoding
Thin-Film Encapsulation (TFE) Market Worth $223 million by 2027
The thin-film encapsulation (TFE) market is estimated to grow from USD 92 million in 2022 to reach USD 223 million by 2027; it is expected to grow at a CAGR of 19.4% from 2022 to 2027.
More Info : https://www.marketsandmarkets.com/Market-Reports/thin-film-encapsulation-tfe-market-255749417.html
The growth of the thin-film encapsulation (TFE) industry
#thin #encapsulation #tfe #oled #display #photovoltaic
Always fun when I get to break out this graphic 😆
A Survey Of Long-Term Waterproofing Options https://hackaday.com/2023/03/27/a-survey-of-long-term-waterproofing-options/ #encapsulating #encapsulation #waterproofing #underwater #waterproof #how-to
#encapsulating #encapsulation #waterproofing #underwater #waterproof #how
A Survey Of Long-Term Waterproofing Options - When it comes to placing a project underwater, the easy way out is to just stick i... - https://hackaday.com/2023/03/27/a-survey-of-long-term-waterproofing-options/ #encapsulating #encapsulation #waterproofing #underwater #waterproof #how-to
#how #waterproof #underwater #waterproofing #encapsulation #encapsulating
Introductory Networking - I have just completed this room! https://tryhackme.com/room/introtonetworking #tryhackme #Networking #OSI Tools #Beginner Path #Beginner #introtonetworking #intro to networking #accessible #easy #ping #traceroute #whois #Encapsulation #introtonetworking via @realtryhackme
#tryhackme #networking #osi #beginner #introtonetworking #intro #accessible #easy #ping #traceroute #whois #encapsulation
I once was hired as consultant to guide a team who wanted move their monolith to #microservices. We got only halfway. And it was good!
The route to microservices goes via #DomainModeling, #decoupling, and #encapsulation. Bounded contexts, decoupling and modules was enough to put the team back on track and moving again. We never built a single microservice.
This week, Ted Neward wrote about this idea in a post that I now no longer have to write:
https://blogs.newardassociates.com/blog/2023/you-want-modules-not-microservices.html
#softwarearchitecture #encapsulation #decoupling #domainmodeling #microservices
Introductory Networking - I have just completed this room! Check it out: https://tryhackme.com/room/introtonetworking #tryhackme #Networking #OSI #Networking Tools #Beginner Path #Beginner #Introductory Networking #introtonetworking #intro to networking #accessible #easy #ping #traceroute #whois #dig #TCP/IP #Wireshark #Encapsulation #introtonetworking via @RealTryHackMe
#tryhackme #networking #osi #beginner #introductory #introtonetworking #intro #accessible #easy #ping #traceroute #whois #dig #tcp #wireshark #encapsulation
@leonid
Oh, that's interesting. Please send your former boss my regards!
I also think that Beta transformation at VW as a whole is not about to happen next year. ;-)
But here is the good news (so to speak) - and it is manifold:
- The company is suffering, and has been suffering for years. It needs substantial change
- Any group like VW consists of many many entities that could do #BetaTransformation, regardless of what the holding does. For this, #encapsulation, is necessary. But it is feasible
#betatransformation #encapsulation
Now, you'll probably ask: "Hey, Vint, isn't it better to place your templates for #WebComponents in one HTML file, since it's a standard way to tell editors to parse file?" 🤔
What if I tell you there is more than one document, and I would not like to violate #DRY principle? Plus it would further commit #coupling of #CustomElements to page source, effectively losing all the benefits of #encapsulation.
Well, sorry I don't do #SSG to not repeat myself. My client specifically asked for pure HTML.
#webcomponents #dry #coupling #customelements #encapsulation #ssg
Are Child Packages safe in ADA? https://stackoverflow.com/questions/66029496/are-child-packages-safe-in-ada #ada #programming #encapsulation #ada
#ada #programming #encapsulation
#medium #MaheshSharma "Introduction to OOPs Concept in Java with Example" #maheshjtp #OOP #Java #Programming #Object #Class #Inheritance #Polymorphism #Abstraction #Encapsulation ... https://medium.com/@maheshjtp/introduction-to-oops-concept-in-java-with-example-81186da10a3d
#medium #MaheshSharma #maheshjtp #oop #java #programming #object #class #inheritance #polymorphism #abstraction #encapsulation
#medium #MaheshSharma "Introduction to OOPs Concept in Java with Example" #maheshjtp #OOP #Java #Programming #Object #Class #Inheritance #Polymorphism #Abstraction #Encapsulation ... https://medium.com/@maheshjtp/introduction-to-oops-concept-in-java-with-example-81186da10a3d
#encapsulation #abstraction #polymorphism #inheritance #class #object #programming #java #oop #maheshjtp #MaheshSharma #medium