Skip to main content

Posts

Showing posts with the label files

Creating .GIFs in C#

It's almost the season for Christmas , and what a fun way to tie in the season with some programming than learning how to make .GIF files with C#. We are going to be making a Christmas tree as shown below! Merry Christmas Christmas doesn't last for  just one day , so let's prepare to celebrate it when it comes! What's in a .GIF? The .GIF file format is made up of many different parts , but this picture does the best job at explaining that at a glance. The .GIF file format Each section is a collection of bytes written to a file in a particular format. By following the specification , we can write these bytes to a file and create for us our own .GIF file by hand. No, you don't have to create .GIF files by hand. You can use different libraries  to do the same thing we are about to do. In fact, if you are intending to use any .GIF - related code in production , you should be using a library. Libraries are better tested and have better perf...

[Automatically] minifying .cshtml files in .NET Core

What gets me more excited than anything? Performance. Performance level 100 Its always exciting to me to perform at max efficiency , because why should you be performing any less? What's even better than efficiency than setting it and forgetting it ? Nothing. Fact of the matter is while you may not be caring about efficiency , you should - because your business does. Lack of efficiency costs dollars and time. You aren't off the hook even if you are doing programming as a hobby or are self-employed. We are going to explore how to minify your .cshtml files in a .NET Core web application, and why you should care to do so. Why you should care Do your reading ;   read this too . Time is a limited resource, and we are tending to be more impatient nowadays,  these people think so too. The bottom line is that if you want a chance for your web application to be successful, you can't skimp on quality and hope that you will be a success. Your applications need to...