I've been doing some Python/C API work lately for a client: writing a C layer, packaged as a Python wheel, that allows you to invoke that C code from Python. It's really fun and the Python/C API is very well documented. It teaches a lot about how Python works under the hood, for example the ref count system. It's really not so complex once you get familiar with it. The fun thing is that it opens the door to all kinds of things, for example you can call native code, or call code from C or C++ libraries. Perhaps I'll make a little demonstration, for example to show how to invoke a native voice-to-speech framework from Python. Or maybe invoke some JUCE code..? :D I wonder if you could create an audio plugin host from Python 🤔 Join my newsletter: https://lnkd.in/eUr7bAGC
Jelle Bakker’s Post
More Relevant Posts
-
Do You Know Where Many Mistakes Happen in Python? Not in syntax. Not in basic logic. They happen in execution assumptions. Even experienced Python developers occasionally run into issues with mutable default arguments, identity vs equality, generator behavior, shallow copies, and object initialization. In this carousel, I have highlighted some Python mistakes that even experienced developers make, each explained with: • A minimal error example • The correct fix • A clear reason why it fails These are not obvious errors. They are subtle design level mistakes that quietly slip into real codebases. The objective is simple: to write Python code that is predictable, readable, and reliable in real world systems. Which one have you encountered before? Share it in the comments and help others avoid the same mistake. #Python #PythonProgramming #SoftwareDevelopment #CleanCode #ProgrammingTips #DeveloperCommunity #CodeQuality
To view or add a comment, sign in
-
🐍 90 Days of Python – Day 12 Today, I learned about modules and imports in Python, which help in organizing code and reusing functionality efficiently. As programs grow, writing everything in a single file becomes hard to manage. Modules allow us to split code into logical parts and reuse them whenever needed. Key concepts I explored today: • What a module is in Python • Using import to access built-in and custom modules • Importing specific functions using from ... import • Understanding why modular code is easier to maintain Modules encourage clean, structured, and reusable code, which is essential for real-world applications. I’m practicing these concepts to write more organized programs and avoid unnecessary repetition. 📌 Day 12 completed. Writing modular and reusable code. 👉 Which Python module do you use most often in your projects? #90DaysOfPython #PythonLearning #LearningInPublic #ProgrammingBasics #BTechCSE #MachineLearning
To view or add a comment, sign in
-
-
Did you know you can specify data types in Python. Python may be dynamically typed, but you can still declare expected data types using type hints to make your code clearer and more professional. Example 👇 def my_func(age: int, name: str, is_active: bool) -> None: print(age, name, is_active) This does not enforce types at runtime, but it helps in many ways: ✅ Improves code readability ✅ Makes functions self-explanatory ✅ Helps IDEs catch mistakes early ✅ Essential for large and team-based projects Type hints are widely used in modern Python, especially in frameworks, APIs, and production-level code. Clean code isn’t just about making things work — it’s about making them understandable. #Python #TypeHints #CleanCode #Programming #SoftwareDevelopment #PythonTips
To view or add a comment, sign in
-
I’ve been practicing Python by building small projects, and here’s one I’m excited to share 🎯 📝 Python To-Do List App ✨ Add & delete tasks ✨ Mark tasks as completed ✨ Track progress with completion percentage Would love your feedback! Have a look at the code here :https://lnkd.in/d95Yikj7 #Python #LearningPython
To view or add a comment, sign in
-
One of the most common Python mistakes I still see, especially in growing developers, is misunderstanding variable scope. It leads to code that runs but behaves unpredictably. And those are the hardest bugs to debug. Once I truly understood how Python handles local, global, and nonlocal variables, my code became easier to reason about and my debugging time dropped significantly. I wrote a short, practical guide explaining variable scope the way I wish it had been explained to me, with real examples. 👉 Read it here: https://lnkd.in/djp6HJdD #Python #LearnPython #SoftwareEngineering #DeveloperGrowth
To view or add a comment, sign in
-
🐍 Python Term of the Day: SyntaxError (Python’s Built-in Exceptions) Occurs when the interpreter encounters a line of code that violates Python’s syntax rules. https://lnkd.in/d7gH3NET
To view or add a comment, sign in
-
After porting a few Python scripts to Go, I’ve realized that Go’s conventions are exactly what I’ve been looking for. Python’s flexibility is often its biggest advantage, but it can also be a drawback. It’s easy to write code that technically works, but is difficult to read, maintain, or reason about later. Go isn’t immune to messy code, but its ergonomics and compilation requirements tend to push you toward clearer structure and more deliberate choices. That constraint has been surprisingly refreshing, and I’ve found myself enjoying the process more than I expected. Have you played around with Go at all? What has your impression been?
To view or add a comment, sign in
-
I remember staring at a Python function thinking, “This should work.” No errors. Wrong result. The culprit? Variable scope. I wrote this guide to save you that frustration 👇 https://lnkd.in/djp6HJdD #Python #CodingTips #Variable #Scope
To view or add a comment, sign in
-
The 4 Core JSON Functions in Python - When to Use What? If you work with JSON in Python, these four functions are all you need. But knowing when to use which is key: 📌 Common Scenarios: I have bytes from Pub/Sub → json.loads(message_bytes.decode("utf-8")) I have a JSON string → json.loads(json_string) I have a dict and want a string → json.dumps(my_dict) I have a dict and want bytes → json.dumps(my_dict).encode("utf-8") I want to parse from a file/stream → json.load(file) I want to write JSON to a file/stream → json.dump(obj, file) 💡 Pro Tip: load/dump → for files or streams loads/dumps → for strings in memory #Python
To view or add a comment, sign in
-
-
Day 34 of 100 Days of Python | Error Handling Today, I practiced error handling in Python. Error handling helps programs handle unexpected situations gracefully instead of crashing, which is crucial in real-world applications. 🔹 Error Handling Python uses: • try → test risky code • except → handle errors • else → run if no error occurs • finally → always runs (cleanup) 🧠 Easy way to understand • try → test it • except → fix it • else → continue smoothly • finally → clean up 📌 Why it’s important • Prevents program crashes • Improves user experience • Makes code safer and more reliable • Essential for production-ready code 🔑 Mini takeaway Error handling helps write robust, stable, and professional Python programs. 💬 Do you usually handle specific exceptions or use a general except block? 🤔 #100DaysOfPython #PythonBasics #ErrorHandling #PythonDeveloper #SoftwareEngineering #LearningInPublic
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
Jelle Bakker It would be nice to share some details, I am always interested. As a side question, what are you using when creating plugins: type erasure in C++ with C adapter for the boundary?