Bite code!

Bite code! is a Substack focused on Python programming, offering insights into its nuances, best practices, and challenges. It covers Python's evolving ecosystem, including updates in the community and software development techniques. Themes include technology hype cycles, practical software engineering, Python-specific features and traps, and comparisons of Python implementations.

Software Development Practices Python Programming Programming Languages Technology Trends Software Engineering Python Community Updates Debugging and Error Handling

The hottest Substack posts of Bite code!

And their main takeaways
1590 implied HN points 06 Mar 24
  1. Creating software has become easier due to resources and tools available, but it still requires dedication, time, and energy.
  2. Writing software demands perseverance and continuous learning, akin to mastering a musical instrument or a sport.
  3. Working on software involves dealing with humans, extracting requirements, navigating social dynamics, and recognizing the importance of human interaction in the development process.
1467 implied HN points 03 Mar 24
  1. Redis is a powerful companion for Python, used for caching, sharing states, and creating queues.
  2. Redis is easy to use and highly efficient, widely employed in the industry for tasks like caching and inter-process communication.
  3. With basic features like lists, hashes, and sets, Redis has vast utility in tasks such as caches, queues, and inter-process communication.
1957 implied HN points 19 Feb 24
  1. Python automatically concatenates strings written next to each other, making it easier to break long strings across multiple lines.
  2. In Python, be mindful of the differences between functions like sorted() and list.sort(), as they behave differently in terms of returning values.
  3. Tuples in Python are created using commas, with parentheses being optional for non-empty tuples, but crucial for tuples of one element to avoid confusion.
2568 implied HN points 04 Feb 24
  1. TDD can make your code more flexible, reliable, and less error-prone by focusing on testing upfront.
  2. TDD may not work well for everyone, as it requires experience, ability to hold complex models in mind, and sustained focus.
  3. Not all projects are suited for TDD, and it's important to assess the cost and benefit of testing based on project needs and constraints.
978 implied HN points 14 Mar 24
  1. Cookie banners on websites are not legally required by any EU law; companies choose to implement them.
  2. American companies do not have to comply with EU laws such as showing cookie banners to users in the USA.
  3. Many cookie banners on websites are actually illegal according to EU law, as they use dark patterns to trick users into tracking consent.
Get a weekly roundup of the best Substack posts, by hacker news affinity:
1100 implied HN points 28 Feb 24
  1. Astral released a new Python package manager called uv, which aims to replace existing package and virtual env managers, with smartly integrated features and community contributions.
  2. Stand Alone Python project by indygreg compiles Python for various platforms, offering archives that can be run without installation, providing a consistent experience across different machines and platforms.
  3. A new lock file proposal by Brett Canon aims to tackle the challenge of pinned dependencies for Python projects, with previous attempts in 2021 and the latest proposal focusing on source distribution support and a new file format.
1467 implied HN points 21 Jan 24
  1. Decorators provide syntactic sugar for code reuse of callback processing.
  2. Popular usages for decorators include intercepting calls, registering functions, and enriching function behavior.
  3. Decorators can be combined and used creatively to enhance your code, but be mindful not to overdo it.
856 implied HN points 30 Jan 24
  1. A new Python video game, JOY OF PROGRAMMING, is available on Steam for learning programming interactively.
  2. Pyodide, a Webassembly CPython port, now has experimental support from urllib3, enabling Python to run in the browser.
  3. Numpy 2 is set to release soon, with changes that may impact compatibility, so users should prepare by checking and updating dependencies.
1100 implied HN points 15 Jan 24
  1. The splat operator ( ) in Python is used for unpacking function arguments and defining infinite (variadic) parameters.
  2. Differentiate between arguments and parameters in Python; parameters are defined variables in a function signature, while arguments are values passed to those parameters when calling the function.
  3. Positional and keyword arguments in Python allow passing arguments by position or by name in a function call.
1223 implied HN points 08 Jul 23
  1. Making HTTP POST requests can have unexpected challenges, like dealing with network issues and corporate setups.
  2. Using ThreadExecutor and ThreadPoolExecutor in Python can help manage tasks efficiently, especially in scenarios like log aggregation.
  3. Error handling is crucial in programming, and sometimes unconventional solutions are needed to manage exceptions effectively.
1100 implied HN points 10 Jun 23
  1. Python allows underscores in numeric literals for better readability and formatting of numbers
  2. Unpacking in Python is versatile, allowing assignment to slices and nested structures
  3. Using the splat operator in Python, like with lambdas and unpacking arguments, can make code more concise and powerful
978 implied HN points 13 Jun 23
  1. Merge dictionaries with methods like dict.updates(), **, |, and collections.ChainMap
  2. Deal with missing values in dictionaries using methods like dict.get(), dict.setdefault(), and collections.defaultdict
  3. Extract multiple values at once using tools like operator.itemgetter and match/case
733 implied HN points 09 May 23
  1. PDB is a basic but useful debugger that comes with Python by default, allowing you to pause programs, enter a debugging shell, and analyze program states.
  2. Learning to use PDB is valuable because it helps you understand debugging fundamentals, and knowing PDB can translate to using other debuggers as well.
  3. PDB offers various helpful commands like 'help', 'quit', 'list', 'next', 'continue', 'until line', 'jump line', 'display', 'step', 'return', 'up', and 'down' for effective debugging in Python.