ProgerHub
4.86K subscribers
137 photos
2 videos
64 files
301 links
Ads & contact: @crazydev93

A channel with programming news and tips and tricks, nice for beginners but also for experienced programmers. ๐Ÿ’ป
Download Telegram
Singletons: Instantiate objects only once

Let's explore how Python deals with objects such as True, False, None, and why we use the syntax is True instead of == True in our code

https://pythonforthelab.com/blog/singletons-instantiate-objects-only-once/
๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
The Magic of Python Context Managers

Resource management is one of those things you need to do in any programming language. Whether you are dealing with locks, files, sessions or database connections - you always have to make sure you close and free up these resources for them operate correctly. Usually, one would do that using try/finally - using the resource in try block and disposing of it in finally block. In Python however, there is a better way - the context management protocol implemented using with statement.

So, in this article we will explore what it is, how it works and most importantly where you can find and how you can implement your own awesome context managers!

https://martinheinz.dev/blog/34
๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
6 code design and architecture books that every professional programmer should read (ordered by complexity):
โ €
๐ŸŸข Clean Code
๐ŸŸข Head First Design Patterns
๐ŸŸข Head First Object-Oriented Analysis & Design
๐ŸŸก Growing Object-Oriented Software Guided by Tests
๐ŸŸก Patterns of Enterprise Application Architecture
๐Ÿ”ด Domain-Driven Design (Evans)
Five React Native Libraries You Might Have Missed

Some useful React Native libraries to be sure to check out for your next mobile app project. - http://amp.gs/Qr6V

#reactnative