Best of C ProgrammingJune 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    Writing GUI apps for Windows is painful

    Writing GUI applications for Windows using C++ can be challenging due to various limitations of popular libraries. WinUI 3 offers modern components but struggles with portability. Win32/MFC allows single .exe deployment but lacks easy styling. Qt has powerful features but is complex and expensive. wxWidgets is lightweight but lacks customization. hikogui is promising but difficult to compile. Sciter is a good alternative with rendering issues. Ultimately, Dear ImGui is found to be the most suitable for simple apps, despite its limitations with complex UIs and the need for a GPU renderer.

  2. 2
    Video
    Avatar of nickchapsasNick Chapsas·2y

    Forget Controllers and Minimal APIs in .NET!

    Learn how to get started with building APIs in .NET using the alternative to controllers and minimal APIs called Fast End Points. Fast End Points is a developer-friendly alternative that nudges you towards the request and response pattern and offers better performance than controllers. Discover the basic registration process and how to implement endpoints for getting all movies, getting a single movie, and creating a movie.

  3. 3
    Video
    Avatar of bigboxswebigboxSWE·2y

    Legendary Programmers

    Legendary programmers who made significant contributions to the programming and software engineering world, including Lonus Tals, Richard Stallman, John Karmac, Fabr Bard, Dennis Richie, Ken Thompson, Kathleen Booth, and Terry Davis.

  4. 4
    Article
    Avatar of devtoDEV·2y

    Push your skills

    Learn how to become a better developer by continuously improving your skills. Use resources like Pluralsight and Microsoft Learn, read documentation, keep things simple, use version control with GitHub, and prioritize learning over speed. Microsoft Visual Studio is recommended for coding, along with tools like Red Gate SQL Prompt and EF Power Tools. Dive into code basics with Microsoft Entity Framework Core or Dapper. Refactor code and incorporate best practices like using meaningful variable names and writing readable code. Continually learning is essential for growth as a developer.

  5. 5
    Article
    Avatar of hnHacker News·2y

    Introduction to the Odin Programming Language

    Introduction to the Odin Programming Language. It aims to be a modern alternative to C, addressing its limitations and providing additional features. It supports compiled, manually managed, statically typed code, making it suitable for systems programming and game development. The article covers topics such as installation, basic syntax, variables, loops, control flow, data structures, manual memory management, and more.

  6. 6
    Article
    Avatar of codemazeCode Maze·2y

    ExecuteAsync() and StartAsync() in .NET BackgroundService

    This post compares the ExecuteAsync() and StartAsync() methods of the BackgroundService class in .NET Core. It explains the concept of BackgroundService and provides insights into the uses of these methods. The post also includes an example of a .NET application that utilizes these methods to handle stock price data.

  7. 7
    Article
    Avatar of isocppC++·2y

    C++ programmer's guide to undefined behavior: part 1 of 11

    This post is the first part of an e-book on undefined behavior in C++. It provides an introduction to the topic and discusses the reasons behind undefined behavior in the language. It also mentions the different ways to detect and prevent undefined behavior in code.

  8. 8
    Video
    Avatar of codebeautyCodeBeauty·2y

    C# String - How to work with strings in C#? C# Programming tutorial for Beginners

  9. 9
    Article
    Avatar of andrewlock.NET Escapades·2y

    Introducing collection expressions in C#12

    This post introduces collection expressions in C#12. It explains the code generated when using collection expressions and how they work compared to collection initializers. The post highlights the benefits of collection expressions, such as a unified syntax for different collection types, performance improvements, and additional features. It also mentions the use of spread elements to build collections from existing collections.

  10. 10
    Article
    Avatar of codemazeCode Maze·2y

    Adding Custom Header Parameter to API in Swagger

    Learn how to add a custom header parameter to API endpoints in Swagger to enhance API documentation, security, and usability.

  11. 11
    Article
    Avatar of codemazeCode Maze·2y

    How to Ignore a Property in AutoMapper

    Explore key techniques to ignore property in AutoMapper. Learn when and how to use the Ignore() method, the Ignore attribute, and the DoNotValidate() method. Get a solid foundation in AutoMapper in ASP.NET Core. Understand the necessity of ignoring properties and utilizing Data Transfer Objects (DTOs).

  12. 12
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Outsmart AI as a Developer [Dr. Chuck Interview #127]

    In this podcast episode, freeCodeCamp founder Quincy Larson interviews Dr. Chuck, a software engineer and Computer Science professor. They discuss the qualities of a Master Programmer, the shortcomings of current Computer Science education, Dr. Chuck's theories on tech layoffs, and his love for reviving cars and flying planes.

  13. 13
    Article
    Avatar of csharpcornerC# Corner·2y

    Null Object Design Pattern in .NET Core

    The Null Object Design Pattern provides a way to handle missing objects by using a null object instead of null references. It simplifies client code and eliminates the need for explicit null checks.

  14. 14
    Article
    Avatar of lobstersLobsters·2y

    Linux Kernel Development - Automatic Cleanup 1/2

    C programming's lack of automatic memory management often leads to memory leaks, a common issue in the Linux kernel. Despite the kernel's gradual integration of Rust, most new code remains in C. Solutions like utilizing the underutilized cleanup attribute supported by GCC and Clang help mitigate memory leaks. This attribute allows automatic cleanup of variables when they go out of scope. The post delves into using this feature with macros for more efficient memory management, showcasing examples of dynamically allocated memory cleanup and outlining the necessity of careful usage to avoid bugs. Additionally, it highlights the continued relevance of C while acknowledging Rust's role in enhancing kernel safety.