Smarter APIs with GraphQL
While REST is not going away anytime soon and remains perfectly suited for many use cases, GraphQL offers significant advantages for applications where flexibility, efficiency, and rapid development cycles are critical. By enabling more precise data fetching, reducing the number of network requests, and improving the overall developer experience, GraphQL is helping to shape the future of API development.
Follow this step by step guide to setup your first GraphQL Client and Server in C# with .NET!
Handling Large Files: BufferedStream vs LINQ's Chunk method
The choice between using BufferedStream and the LINQ Chunk extension method for operating with very large files depends on your specific use case and requirements. Here we discuss the pros and cons for each.
How Europe’s Open-Source Failure Led to U.S. Dependency
Anyone lamenting the dominance of Microsoft, Google, and other tech giants must also ask: how did we get here? And perhaps more importantly — what were the alternatives? Because they did exist. What was lacking was not technology — but political will.
Using the Model Context Protocol (MCP) with C#
With the new MCP C# SDK, developers can efficiently manage communication between AI models and applications.
Anthropic’s Model Context Protocol (MCP) is currently making waves. It's a standardized protocol designed to streamline communication between applications and models by offering a structured way to exchange context and data between AI models and their clients. Whether you're developing AI-powered applications or integrating multiple models into a cohesive system, MCP ensures interoperability and scalability.
LLM Temperature Explained
Temperature is a key parameter in large language models (LLMs) that controls the randomness of generated text. It adjusts the probability distribution used when predicting the next token in a sequence. A lower temperature makes the model more deterministic, favoring highly probable tokens and producing more consistent, coherent outputs — ideal for factual or technical tasks. A higher temperature increases randomness by allowing the selection of less probable tokens, leading to more varied and creative responses, though sometimes at the cost of coherence.
AI Tools Are Hallucinating Software Dependencies – And Cybercriminals Are Taking Advantage
Discover how AI-generated code from large language models (LLMs) is introducing new cybersecurity risks through hallucinated software dependencies and slopsquatting. Learn how attackers exploit these vulnerabilities and what developers can do to stay safe.
Exploring the Next Level of AI Image Generation with OpenAI's GPT-4o
The world of AI-generated images has reached a new frontier with the release of OpenAI's latest model, GPT-4o
. Unlike previous iterations, GPT-4o seamlessly integrates advanced image generation capabilities, producing highly detailed, contextually accurate, and incredibly realistic visuals. One of the most groundbreaking advancements in this model is its ability to generate photorealistic images that rival human-created photography. This leap forward opens up unprecedented possibilities across industries such as marketing, design, entertainment, and education.
Locale Functions and Clean Code Principles
Local functions are methods of a type that are nested in another member. They can only be called from their containing member. Local functions provide a clean way to organize code while potentially improving performance and maintaining better encapsulation. Local functions should enhance readability and performance without violating Clean Code Principles. If they make the code harder to understand or maintain, that's a sign they should be refactored into regular methods.
API Documentation Changes in .NET 9
The removal of Swagger from .NET 9 and the introduction of built-in OpenAPI support mark a significant shift in the .NET ecosystem. While this change may require developers to adapt to new tools and workflows, it also presents an opportunity to streamline and improve the API development process. The built-in OpenAPI support in .NET 9 offers a more integrated and efficient solution for generating and managing API documentation, while alternative solutions such as NSwag, ReDoc, Stoplight and Scalar provide developers with a range of options to choose from.
.NET object-oriented fluent SQL Builder
KnightMoves.SqlObjects is a .NET NuGet package that provides an object-oriented fluent SQL builder, allowing developers to construct SQL queries using C# objects instead of string manipulation, closely mirroring T-SQL syntax for a more intuitive experience.