I wrote a Python 🐍 case-insensitive thread a couple of days ago. 👇
A couple of helpful comments pointed out some nice improvements.
Should I do another thread with the better version?
I wrote a Python 🐍 case-insensitive thread a couple of days ago. 👇
A couple of helpful comments pointed out some nice improvements.
Should I do another thread with the better version?
/1 How will you design the Stack Overflow website? If your answer is on-premise servers and monolith (bottom), you would likely fail the interview, but that's how it is built in reality!
Use functools.cache to add a simple cache to your Python 🐍 functions.
Here, I'm using it to prevent recursion from branching like crazy.
Compare the images ⬅️➡️
Want your function to ONLY accept positional arguments?
In Python 🐍, you can do that by ending your parameter list with `/`.
Here is a demo of this functionality 👇
Trying to use a keyword parameter raises an error!
Do not use useless lambdas in Python 🐍
Lambdas are VERY useful in Python.
However, if a lambda looks like `lambda x: f(x)`, then you don't need it.
Just use `f` instead.
Here is an example:
What does it mean in #Python to create an alternative constructor using a class method? It's a method on the class that makes objects with different arguments. Here's a simple example:
In python, walrus operators are awesome!
Note: Apologies to @gvanrossum for my initial public dismissal of walrus operators. You were right, I was wrong. 🐍❤️
When you need to loop through items in a list and also keep track of an index, you don't need to do this 'manually'…
…here's where `enumerate()` comes in useful
👇🪡🧵
1/
0 Followers 125 Following💸 Master your money with our free course!
Learn expert tips to manage and grow your wealth.
Start your path to financial success!
👇👇
16 Followers 159 FollowingAmplify Your Business with Amploop. Expertly Managing Outsourcing Complexities from Developer Vetting to International Payments, Saving You Time, Money, and Eff
79 Followers 2K FollowingIf you can't see through the pain, through the obstacles, to your future what's ever going to to drive you...Digital-Inkwell Javarice
183 Followers 2K FollowingAchieve incredible things with focus. The Aim For app helps you identify what’s important and put in place systems to focus your attention. What do you #AimFor?
24 Followers 186 FollowingData Analyst at Ericsson and Data Science student at IU International University | 🤓 Speak Portuguese, Spanish, English and learning Estonian
596K Followers 1 FollowingQNN, founded in 2011, is the largest independent Palestinian youth news network, advocating for freedom, dignity, and Palestinian self-determination. #Palestine
572K Followers 276 FollowingYour eye on the ground. Independent Middle East and North Africa news. Telegram: https://t.co/BOi8m9AT1a also follow @MEEDiscover
27K Followers 104 FollowingSoftware Developer @CreoWisTech | Building @TheDivSoup | Technical Writer | Daily Post on Web dev, AI Tools | DM/Mail for paid Collab: [email protected]
9K Followers 26 FollowingSoftware Engineering is the application of a systematic, disciplined, quantifiable approach to the design, development, operation, and maintenance of software.
147K Followers 1K FollowingA place for all things related to the #python #programming #coding #webdeveloper #webdevelopment #pythonprogramming #ai #ml #machinelearning #datascience ...
39K Followers 494 FollowingLead Software Engineer 👨💻
- Building Data and AI Apps
- Simplifying Python, Data Science, ML and LLMs ✨
- Open for Collaboration 📩
9K Followers 725 FollowingConstantly looking for simple ways to explain complex things You'll find: • Python • Narrative Technical Writing • Track & Field Athletics—Links in pinned post
275K Followers 448 FollowingCo-Founder of ByteByteGo | Author of the bestselling book series: ‘System Design Interview’ | YouTube: https://t.co/9gPSJSrtPU
5.6M Followers 6 Followingالأمين العام لرابطة العالم الإسلامي، رئيس هيئة علماء المسلمين | Secretary-General of the Muslim World League, President of the Organization of Muslim Scholars
15K Followers 326 FollowingPyLadies is a global mentorship group focused on helping more marginalized genders become active participants & leaders in the Python open-source community.
211 Followers 37 FollowingThe go-to Recruitment Partner for the Django community | Founded by @JonG0uld | Created @djangosocial | Giving 5% of profits to the DSF | DSF Corporate Member
386K Followers 622 FollowingLove Linux/Unix, open source, and programming? Into Sysadmin & DevOps? Follow us! Boost your IT career with daily new tools, apps, and humor ⤵️
2K Followers 326 FollowingProgrammer working @Google in NYC. Maintainer of python-dateutil, Python core developer and general FOSS contributor. Fediverse: @[email protected]
13K Followers 347 FollowingPython Steering Council and core developer. Python 3.10/3.11 release manager. @ThePSF Fellow. Deals with black holes and parsers. Attracts linker problems.