Mario Mucalo


Ramblings about software development. And more.

Return all values from enum via API in .NET

I would love for the people implementing my API to send me a value from my enumerator as an input parameter. But, I’d also love it if they could somehow access all possible values of that enumerator in some other way other than reading the documentation (because, let’s be honest, who reads the documentation anyway, right?).


How NOT to get a job as a developer in 8 easy steps

I have the feeling that some people just want to tell their friends that they are trying really hard to switch, but nobody in IT wants them because they have no experience and what not. For those people I’ve written a guide on how to remain in this category and make sure they absolutely never end up landing the job they’re interviewing for.


Create new component in Blazor – useful tool

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 Here


Swagger in .NET 5 – my preferred settings

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 Here


eval() argument written as Javascript code in IDE

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.


Configure Serilog in ASP.NET Core – few practical tips

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 Here


Turn a WordPress website into a PWA

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?


Blazor at the tershouse meetup

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 Here


Organizing and Naming Components in Blazor

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 Here


Load Javascript file on user consent only

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.


You are currently offline