Learning about lambda functions in Python. Based on what I know from JavaScript, it seems relatively close to using an arrow function because both are anonymous and can be written in one line. I think arrow functions were more versatile though. Anyways, interesting to see similarities between languages! 🤔
Python Lambda Functions vs JavaScript Arrow Functions
More Relevant Posts
-
JavaScript really said: “5” == 5 😭 Coming from Python… this feels illegal In Python → strict comparison In JavaScript → “yeah sure, why not” Same symbol. Completely different behavior. Learning a new language really humbles you. “This is why people say: always use === in JavaScript.” Anyone else got confused by this? #javascript #python #webdevelopment #programming #codinglife #developerjourney #learninpublic
To view or add a comment, sign in
-
-
A long time ago I wrote a Django library for the soft delete paradigm. Since then I made several failed attempts to update it to modern Django and Python. Thankfully, it has finally become possible. https://lnkd.in/dnx-bFwg
To view or add a comment, sign in
-
🐍 Python Term of the Day: soft keyword (Python Glossary) A special kind of keyword that retains its meaning only in specific contexts, while in other contexts, it behaves like a regular identifier. https://lnkd.in/gQB2Upz4
To view or add a comment, sign in
-
GIL is not the reason Python is slow. for example JS is single threaded unless you use worker threads for multithreading but still much much faster. the problem with python is it's slow interpreter and asyncio.
To view or add a comment, sign in
-
I made another Python package! It simplifies bKash integration in Python. On top of that, it supports async, so integrating it with web frameworks like FastAPI is gonna be smooooooth. I went through the bKash API docs so you don’t have to, and trust me when I say this, it wasn’t a pleasant experience. The official documentation is full of discrepancies, and some parts haven’t been updated in a long time. I had to do a fair amount of guessing and dig through other people’s TypeScript implementations to figure things out. Overall, the docs might look slick, but under the hood, it’s a real mess. You’ll find detailed usage examples and documentation on my GitHub.
To view or add a comment, sign in
-
-
Rust is much faster than Python or JS. It's also statically typed and less likely to fail at runtime. In the era of LLM assistants, what justifies writing any new (backend) software in Python or JS?
To view or add a comment, sign in
-
That's why I keep saying that Rust isn't just something more, it's a NEED for any startup growing with low budget. You cloud bills are lower and your software is faster. Nowadays you don't even need to be a super expert in Rust to build a good product, LLMs are good enough to do that if you manage the architecture correctly. Win win situation imo.
Rust is much faster than Python or JS. It's also statically typed and less likely to fail at runtime. In the era of LLM assistants, what justifies writing any new (backend) software in Python or JS?
To view or add a comment, sign in
-
Knowing Python and knowing Python are two different things. I thought I knew functions. Define it, call it, return something. Done. Then today I hit nonlocal, pure vs impure, scope rules. And realized: I knew the words. Not the language. The real gap is not between beginners and experts. It is between people who recognize syntax and people who understand consequences. Went out with friends today for the first time in a while. Came back late. Opened VS Code anyway. Late is not the same as absent. Day 6. Streak still on. Today again I felt the gap between knowing something and actually understanding it?
To view or add a comment, sign in
-
Every import in #Python executes the module, from start to finish. Meaning? Big modules slow down your program's startup time. Coming in Python 3.15 this October: "lazy import", which delays the load until a name is used: lazy import MODULE lazy from MODULE import NAME
To view or add a comment, sign in
-
-
There's a misconception that Python is faster than Ruby. It's completely false. Any dynamic language is basically the same speed. Ruby, Python, JavaScript. They're all in the same ballpark. If you need real performance, you're not choosing Python or Ruby. You're choosing Rust or Go or something compiled. The point is don't pick the language based on speed myths. Pick the language that lets you develop fastest. Watch the full episode: https://lnkd.in/e7ekHCxP
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