Skip to content

Max's Blog

  • Home
  • About
Max's Blog

Category: Development

November 12, 2018 max-sperling

Threading – Reduce locks (C++)

With multithreading, you have to be careful to not create race conditions. The default way to do this is the

Continue reading
September 7, 2018 max-sperling

Destruction order (C++)

The variables/fields getting cleanup in the reverse order they have been declared (not initialized). … Objects are created # Cleanup

Continue reading
July 10, 2018 max-sperling

Cyclic dependencies (C++)

Issue The cyclic dependency is a problem which occurs if two classes includes each other in their header. hen.hpp egg.hpp

Continue reading
May 21, 2018 max-sperling

Operating System APIs (C++)

Before using the OS APIs directly, take a look if the STL or boost already provides this functionality. Also be

Continue reading
May 1, 2018 max-sperling

Code documentation (Doxygen)

General Always document large software projects, so other programmers can understand your code. Consider using tools like Javadoc or Doxygen

Continue reading
February 22, 2018 max-sperling

When to use which cast (C++)

Types Type Area Risk static_cast – Converts fundamental types– Non-const to const– Down-casts (dangerous) Medium dynamic_cast – Down- and side-casts

Continue reading
October 29, 2017 max-sperling

Unit testing series – Test with Stub (Part 4)

The second szenario is using a stub. Stub Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a

Continue reading
July 23, 2017 max-sperling

Unit testing series – Test without double (Part 3)

The first test szenario isn’t using a double. Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a

Continue reading
July 6, 2017 max-sperling

Cyclic references (C++)

Problem The following code shows the problem of a cyclic reference with shared pointers. When leaving the main function the

Continue reading
June 6, 2017 max-sperling

Function pointer vs. std::function vs Function template

Showcase Code ▼ Compiler ▼ – Tool: godbolt.org – Compiler: x86-64 Clang 16.0.0 – Args: -std=c++20 – Output: Intel asm

Continue reading

Posts navigation

«Previous Posts 1 … 5 6 7 8 Next Posts»

Categories

  • Other (19)
    • Games (13)
    • Nutrition (4)
    • Traveling (2)
  • Science (17)
    • Chemistry (3)
    • Linguistics (2)
    • Math (10)
    • Physics (2)
  • Sport (73)
    • Climbing (5)
    • Diving (20)
    • Fitness (8)
    • Martial arts (34)
      • Ground fighting (9)
      • Mixed martial arts (4)
      • Stand-up fighting (12)
    • Running (1)
    • Surfing (2)
    • Swimming (1)
    • Volleyball (2)
  • Technology (288)
    • Computer (258)
      • Architecture & Design (15)
      • Artificial intelligence (3)
      • Audio & Video (11)
      • Building & Reversing (15)
        • CMake (2)
      • Computational complexity (3)
      • Computer architecture (4)
      • Debugging & Memory (29)
      • Development (72)
        • CI/CD (1)
        • Programming (61)
          • Concurrency (12)
          • Data structures (13)
          • Pointers & References (7)
        • Scripting (4)
        • Testing (6)
      • Development process (5)
      • Hacking & Security (17)
      • Hardware & Protocols (8)
      • Networking (11)
      • Operating system (21)
        • Linux (12)
        • Windows (8)
      • Regular expression (2)
      • Tool configuration (5)
      • Version control (22)
      • Virtualization (7)
      • Web (29)
    • Electrics (9)
    • Mechanics (15)
    • Medicine (2)
    • Photography (4)
WordPress Theme: Wellington by ThemeZee.