Skip to content

Coding Practice

Enforce the Current JavaScript File in ASP.NET

There is not much more annoying that fixing a bug in a JavaScript file and then find problems in production because the browsers of your users cached the old file. While the first reaction is to disable all caching, there is a better way in ASP.NET: append the file version to the JavaScript file name.

My Highlights of NDC Oslo 2024

With 2300 attendees this year's NDC Oslo was a bit smaller than the one in 2023. Nevertheless, I liked it much more and think the talks were a lot better.

Only two talks I attended finished after just 40 minutes and both times I could go to another talk and still catch some helpful insights. I had only 3 talks that did not meet my expectations, the rest were good to great talks that offered a lot of helpful insights.

For once we did not have much luck with the weather at the traditional Oslo Fjord Cruise. It started with clouds and turned into a thunderstorm. Fortunately, the boat is built in such a way that you do not notice much of these conditions if you stay inside.

Generate Entities for the Database Tables With T4 Templates

With the T4.FileManager we got the missing part to create a code generator based on T4 templates that puts classes into their own files. With that problem solved, we can start our automation project and generate classes for all our database tables, generate the repositories to access the data and finish with integration tests to make sure that our repositories work as expected. Let us start with the entity generator.