PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Cracking the Scheduling Code in Hay Day

Learn how to solve the scheduling problem in the Hay Day game using Mixed-integer linear programming and Google OR-Tools.

https://thinhcorner.com/blog/hayday-game-schedule
Build a SaaS App with Django, Stripe, Neon PostgreSQL, TailwindCSS, GitHub Actions

This video is a Python tutorial that teaches how to build a SaaS app with Django, Stripe, Neon PostgreSQL, TailwindCSS, and GitHub Actions. It covers topics like Django web development, sending emails, user authentication, deployment, database integration, static files, and subscription management.

https://www.youtube.com/watch?v=WbNNESIxJnY
Joining Strings in Python: A "Huh" Moment

The article discusses the performance implications of using generators vs list comprehensions when joining strings with str.join() in Python. Contrary to expectations, using a generator expression with str.join() is slower than a list comprehension because the CPython implementation converts the generator to a list internally before joining the strings, negating the memory efficiency ben...

https://berglyd.net/blog/2024/06/joining-strings-in-python/
Ruff: Internals of a Rust-backed Python linter-formatter - Part 1

Ruff is an extremely fast Python linter written in Rust, deriving its speed from parsing Python code and implementing linting rules natively in Rust rather than Python. The article provides insights into Ruff's internals, including its initial implementation using RustPython's parser, the evolution to a hand-written recursive descent parser, and its caching and parallelization mechanisms.

https://compileralchemy.substack.com/p/ruff-internals-of-a-rust-backed-python