Articles tagged with python

  1. Beyond the Basics - Object-Oriented Odyssey, Testing Tales, and Debugging Dilemmas

    Posted on in programming

    Welcome back, Python warriors! You've tamed the basic beasts of syntax and data structures, and now it's time to delve deeper into the jungle. This article equips you with intermediate-level skills for your coding interview: object-oriented programming (OOP), testing, and debugging.

    Object-Oriented Odyssey:

    Embrace the power of OOP, the jungle's …

  2. Foundations to Build Upon - Syntax Safari, Data Structure Treasures, and Algorithmic Adventures

    Posted on in programming

    Congratulations, Python warrior! You've landed a coding interview, and it's time to conquer the jungle of technical questions. This article equips you with the essential tools – mastering syntax, navigating data structures, and tackling basic algorithms – to build a strong foundation for your interview success.

    Syntax Safari:

    First things first, let's …

  3. Data Structures: Priority Queue

    Posted on in programming

    Imagine a restaurant with a single line, but instead of a chaotic first-come, first-served approach, patrons are seated based on their urgency. A pregnant woman in pain? Straight to the front. A leisurely tourist? Further back they go. This preferential treatment, applied to data, is the essence of the priority …

  4. Bazel: A powerful build system for Python

    Posted on in programming

    Bazel is a build system that allows you to build software projects quickly and reliably. It is a popular choice for building Python projects, as it offers a number of features that are well-suited for this language, such as:

    • Fast incremental builds: Bazel only rebuilds the parts of your project …
  5. The Fastest Trending Programming Languages of 2023

    Posted on in programming

    The programming language landscape is constantly evolving, with new languages emerging and old languages falling out of favor. In 2023, there are a few programming languages that are gaining popularity at a rapid pace. These languages are all well-suited for different tasks and have unique features that make them stand …

  6. I Want to Learn a New Programming Language

    Posted on in programming

    That's great! Learning a new programming language can be a great way to expand your skills and knowledge as a software engineer. There are many different programming languages to choose from, so it's important to consider your interests and goals when making a decision.

    Here are a few factors to …

  7. New Feautures in Python 3.11

    Posted on in programming

    Here are some of the new features in Python 3.11:

    • Fine-grained error locations in tracebacks. Python 3.11 now provides more information about the location of errors in tracebacks. This can help you to quickly identify the source of an error and fix it.
    • Exception Groups and except*. Python …
  8. Type Checking in Python

    Posted on in programming

    What is type checking?

    Type checking is a process of verifying that the types of variables, expressions, and statements in a program are consistent with the expected types. Type checking can be performed statically, at compile time, or dynamically, at runtime.

    Benefits of type checking in Python

    There are many …

  9. [Python] Patching platform.uname in Tests

    Posted on in programming

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    from unittest import IsolatedAsyncioTestCase
    from unittest.mock import create_autospec, patch
    
    from foo import is_foo, is_bar, platform
    
    class FooTestCase(IsolatedAsyncioTestCase):
        @patch(
            "platform.uname",
            return_value=create_autospec(
                platform.uname_result, system="Linux", node="BAR"
            ),
        )
        def test_wrapper_is_foo(self, m_uname …

Slaptijack's Koding Kraken