Most developers think generators are just about saving memory. That’s true, but it misses the more interesting part. Generators give you control over when work happens. Nothing runs until the next value is requested. That small detail changes how you design data flows, especially when you’re dealing with streams, pipelines, or external systems. In this week’s video, I show how generators act as small state machines, how to build clean data pipelines with them, and how features like `send()` and async generators extend that model even further. If you want to get better at designing data flows in Python, this is worth understanding properly. 👉 Watch the full video here: https://lnkd.in/eHrPzaQJ. #python #softwaredesign #cleancode #generators #developers #arjancodes
Arjan Egges’ Post
More Relevant Posts
-
Most developers think generators are just about saving memory. That’s true, but it misses the more interesting part. Generators give you control over when work happens. Nothing runs until the next value is requested. That small detail changes how you design data flows, especially when you’re dealing with streams, pipelines, or external systems. In this week’s video, I show how generators act as small state machines, how to build clean data pipelines with them, and how features like `send()` and async generators extend that model even further. If you want to get better at designing data flows in Python, this is worth understanding properly. 👉 Watch the full video here: https://lnkd.in/eztrHhmx. #python #softwaredesign #cleancode #generators #developers #arjancodes
To view or add a comment, sign in
-
-
DAY-12 PYTHON SERIES What is Polymorphism? Polymorphism means “many forms.” In Python, it allows the same function or method to behave differently depending on the object or context. 🔹 Why is it useful? ✔ Makes code flexible and reusable. ✔ Improves readability. ✔ Allows different classes to use the same method name. 🔹 Example in Python: class Dog: def sound(self): print("Dog barks") class Cat: def sound(self): print("Cat meows") for animal in (Dog(), Cat()): animal.sound() 🔹 Real-world example: A person can be a student, employee, or teacher — same person, different roles. 💡 Key Idea: Same method name, different implementations. #Python #OOP #Polymorphism #Coding #Programming #LearnPython #Developer #SoftwareEngineering #100DaysOfCode #Tech
To view or add a comment, sign in
-
-
🔥 I asked 20 developers this Python question. Only 3 got it right. Let’s see if you’re one of them 👇 a = (1, 2, [3, 4]) a[2] += [5, 6] print(a) 💡 What happens? A. (1, 2, [3, 4, 5, 6]) B. TypeError C. (1, 2, [3, 4]) D. TypeError BUT list still changes ⚠️ Most people get this WRONG. Take 10 seconds. Think carefully. 💬 Drop your answer below (no cheating, no running code ) I’ll reply with the correct answer + explanation. #Python #Programming #Developers #CodingChallenge #TechInterview #LearnPython #SDET #AutomationTesting #DeveloperCommunity #AI
To view or add a comment, sign in
-
This is how a lot of Python code starts: A simple function. A few flags. A couple of if-statements. And then one more rule gets added… and another… and suddenly everything lives in one place. The code still works, but it becomes harder to extend, test, and reason about. In today’s video, I show how the Policy Pattern helps you move away from big conditional functions toward small, composable rules. Instead of branching logic, you build a pipeline of policies that you can easily reorder, enable, or disable. It’s a simple shift, but it scales much better as your codebase grows. 👉 Watch the full video here: https://lnkd.in/dWuQ_wu3. #python #softwaredesign #designpatterns #cleancode #developers
To view or add a comment, sign in
-
-
Barman et al. describe LSLAutoBIDS, an open-source #Python package that implements an automated workflow for data integration, curation, versioning, and publishing: https://lnkd.in/ep_SAYJd
To view or add a comment, sign in
-
-
Every Python developer needs to see this. We write clean, elegant Python and feel like we're driving a Ferrari. Meanwhile C++ is literally towing us the entire time. This isn't just a meme it's actually true. Python's most powerful tools NumPy, TensorFlow, PyTorch, OpenCV are all C/C++ under the hood. The abstraction is beautiful. But knowing what's underneath makes you a better engineer. Learn Python. Ship fast. Understand C++. Think deep. Tag a Python dev who needs to humble themselves today! #Python #CPlusPlus #Programming #Developer #TechHumor #SoftwareEngineering #Coding #ComputerScience #Tech
To view or add a comment, sign in
-
-
Today I made a simple Python Debugger Agent. how it works: simply paste your python code and it will analyze Python code execution, catch errors, and suggest fixes. Scope: Debugging scripts, explaining errors, and guiding users interactively. The link is given below. You can also make it yours custom Ai agents. https://lnkd.in/d985cKZV #gensparkai #ai
To view or add a comment, sign in
-
🐍 Python Tip 5: Use set() to remove duplicates from a list Sometimes while working with data, we may have duplicate values in a list. Instead of writing extra logic, Python provides a simple way: numbers = [1, 2, 2, 3, 4, 4, 5] unique_numbers = list(set(numbers)) print(unique_numbers) Output: [1, 2, 3, 4, 5] Why this is useful? • Quick way to remove duplicates • Very helpful in data preprocessing • Saves time and keeps code simple Small tricks like this make working with data much easier. Note: This does not preserve order. If order matters, a different approach is needed. #Python #PythonTips #DataScience #CodingTips #Programming #LearnPython
To view or add a comment, sign in
-
This is how a lot of Python code starts: A simple function. A few flags. A couple of if-statements. And then one more rule gets added… and another… and suddenly everything lives in one place. The code still works, but it becomes harder to extend, test, and reason about. In today’s video, I show how the Policy Pattern helps you move away from big conditional functions toward small, composable rules. Instead of branching logic, you build a pipeline of policies that you can easily reorder, enable, or disable. It’s a simple shift, but it scales much better as your codebase grows. 👉 Watch the full video here: https://lnkd.in/d6yUeA9J. #python #softwaredesign #designpatterns #cleancode #developers
To view or add a comment, sign in
-
-
🚀 Calculating Time Differences with Timedelta (Python) You can calculate the difference between two `datetime` objects by subtracting one from the other. The result is a `timedelta` object representing the duration between the two points in time. This is useful for measuring elapsed time, calculating deadlines, or determining the length of events. Ensure both `datetime` objects are timezone-aware or naive to avoid incorrect results. #Python #PythonDev #DataScience #WebDev #professional #career #development
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
Your videos have slowly changed the way I think about problem solving and building robust systems. Thank you for your excellent content, Arjan!