READ ALSO: Image Variants in Web Applications READ ALSO: Images in Web Applications READ ALSO: Brief History of Images in Software In the early history of the Web, GIF was the first widely used image format. Short for Graphics Interchange Format, it was introduced by CompuServe in 1987, well before JPEG became practical for theContinue reading “Browsing for Images”
Category Archives: General software
Brief History of Images in Software
READ ALSO: Image Variants in Web Applications READ ALSO: Images in Web Applications Today the acronym JPEG is so popular to be rightfully considered a synonym to the same term image. Yet there was a time—and not even that many years ago—in which computer science progressed without it. Let’s start with a brief history ofContinue reading “Brief History of Images in Software”
Dealing with Business Images with Variants
READ ALSO: Images in Web Applications Speaking of images in web applications, an additional point to consider—beyond choosing the most effective storage medium—is how to deal with multiple variants of the same image that may need to be stored and served. If, in general terms, storage can be one of a few options—database, file system,Continue reading “Dealing with Business Images with Variants”
Handling Business Images in Web Applications
READ ALSO: Image Variants in Web Applications Across the millennium, a technical article explaining step by step how to save an image to—and read it from—a database column as a plain array of bytes was pure gold. At the time, images were almost invariably treated as separate files deployed in some folder on the webContinue reading “Handling Business Images in Web Applications “
I ponti di Konigsberg al tempo dell’AI
The post discusses a reflection by Michele Sciabarrà on the relevance of programmers in an AI-driven world. He likens the situation to a historical problem posed by a mayor to mathematician Euler regarding the bridges of Konigsberg. It emphasizes that true business opportunities arise from solving real customer problems, suggesting a shift in the programmer’s role as AI evolves.
Inside async/await in C#
C# introduced the async/await feature in 2012 to simplify asynchronous programming, which was previously convoluted and error-prone. The compiler transforms async methods into state machines, allowing for non-blocking execution while maintaining a sequential code appearance. This innovation enhances code readability and optimizes resource management in both desktop and web applications.
Inside C# Record Types
In its younger years, every new version of C# brought concrete, factual features, whether LINQ, generics, or dynamic binding. At some point, the number of fundamental additions began to run out, and over the past decade, new versions have mostly added smart features like magic. What does this mean? Simply put, the compiler now acceptsContinue reading “Inside C# Record Types”
Returning ZIP Files and Hypermedia in Minimal APIs
Minimal APIs in ASP.NET Core provide built-in results like Results.Ok(), but custom IResult implementations are essential for returning unique content types such as ZIP files or hypermedia responses. Custom IResult grants control over headers, serialization, and content types, allowing developers to handle complex data responses effectively and maintain clean endpoint code.
Results and Metadata in Minimal APIs
The Minimal API framework in ASP.NET Core simplifies HTTP API development, using IResult and ITypedResult for responses. IResult is fundamental for various API outputs, while ITypedResult enhances metadata for tools like Swagger. Developers typically use static Results methods for endpoint responses, with Produces() aiding in complex scenarios where inference fails.
Timing Minimal APIs vs Controllers
ASP.NET Core developers can choose between Minimal APIs and traditional MVC controllers, each offering unique structure and performance implications. This analysis highlights the request lifecycle differences and performance benchmarks. Generally, Minimal APIs are slightly faster, though real-world conditions often diminish the timing significance. Code organization also varies, with MVC providing inherent structure.