In one of my previous blog posts I discussed my preferred way of organizing my Blazor projects. This included filenames, folder structures, code being separated from view etc. Implementing this sometimes takes time and is prone to mistake, so I created a small tool to help me do this. Creating a new component in Blazor – steps I prefer having … Read More
APIs need to be well documented. It has become a standard that APIs are documented using the Open API standard and Swagger tools. Swagger is simple to set up in .NET 5, but I do have some things I like to set up. What is Open API and what is Swagger? Open API and Swagger are terms that often get … Read More
MDN web docs clearly state you should never use eval() in Javascript. However sometimes you might need it and sometimes you might want it. But it is a pain to use, as you have to provide it Javascript as a string between literals.
In one of the recent projects I worked we were using Serilog as the logging solution. The default configuration was not what worked for us, so we needed to tweak it a bit to get the configuration we need. We needed a quick and clean way to log requests to the API and the responses from the API. Make Serilog … Read More
I needed to investigate how difficult it was to make a PWA from an existing WordPress website. What better way of doing that than turning my own WP blog into a PWA?
I gave a talk on Blazor at the tershouse meetup on April 14th 2020. These meetups are normally held in Sarajevo (Bosnia and Herzegovina) at the tershouse coworking space. However, due to the Covid 19 situation, the talk was held online this time. Regardless, I hope to come to Sarajevo soon to meet Nermin and Amar live and have some … Read More
When we are taught programming, we are always told to keep the code structured and organized and to make sure to name things properly so it makes sense. As Blazor introduced quite a few changes into how things are done (as opposed to how they used to be done), I’ll share some practices I used in my two Blazor projects … Read More
In order to load a Javascript file when a user requests or allows it you just need to append a new script element to the head element and add a callback function as needed.
In a recent project I needed to do some coding in basic HTML and Javascript. The Javascript did include writing and reading cookies. This means I could not serve the HTML files directly from the file system, because some browsers (like Chrome) do not allow storing cookies for file:// locations. This is why I needed to start a web server … Read More
How to connect to a MySQL database using Entity Framework Core – is it the same as using Entity Framework Core for MSSQL Server?
You are currently offline