Articles tagged with python

  1. Data Structures: Arrays

    Posted on in programming

    In the vast landscape of data structures, arrays stand tall as one of the most fundamental and widely used tools. Their simplicity belies their immense power, allowing them to efficiently store and manipulate collections of elements. Whether you're building dynamic websites or crunching scientific data, understanding arrays is crucial for …

  2. Mastering the Art of Interviews - Mock Battles and Cultivating the Coding Spirit

    Posted on in programming

    Welcome back, Python champions! You've conquered the theoretical landscape, wielding your knowledge like a seasoned warrior. Now, it's time to hone your interview skills for a flawless victory. This bonus article equips you with the final secret weapon – mastering the art of the interview.

    Mock Battles:

    Before facing the real …

  3. Advanced Encounters - Mastering the Craft: Performance Puzzles, Library Exploration, and Problem-Solving Prowess

    Posted on in programming

    Welcome back, seasoned Python explorers! You've braved the basic and intermediate levels of the coding jungle, and now it's time to conquer the advanced summit. This article equips you with the final tools for mastering the craft: performance optimization, library prowess, and refined problem-solving skills.

    Performance Puzzles:

    Speed and efficiency …

  4. 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 …

  5. 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 …

  6. 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 …

  7. 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 …
  8. 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 …

  9. 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 …

  10. 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 …
  11. 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 …

  12. [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