Skip to main content

Posts

Showing posts with the label .net core

Server-side AB testing in ASP.NET Core web applications

You've likely heard of Optimizely , or ABTasty , but what if you don't want to shell out money to do your own server-side testing? You know the benefits of server-side testing, it is invaluable . Whether you are a big shop, or small team, you can implement server-side testing today in your ASP.NET Core web application. Today, we will explore how to implement server-side testing in ASP.NET Core web applications with OSWTF . A/B testing Disclaimer: I am the author of OSWTF; it is based on work I have previously done working in an ecommerce team. The framework itself does not offer any analytics integration, as that is likely company/project-specific and can easily be added yourself. *Please be aware before the package gets released as a major release, the framework is subject to breaking changes. What is OSWTF OSWTF stands for O pen S ource W eb T esting F ramework. The framework is a very simple integration into your web applications to enable server-side testing c...

ASP.NET Core 2.2 with LibMan, NPM and Webpack 4

Javascript tooling is a mess . Every time that I start a new application, I'm always asking myself how I need to setup my tooling. Thankfully, there is a sane way of setting up your tooling that won't make you want to pull your hair out once you set it up. We'll explore how to setup tooling for using NPM modules in your ASP.NET Core [2.2] applications with LibMan and Webpack 4. Modern logo of tooling The example will be simple, but sufficient, in order for you to add your complexity that is needed for your application. Source code For those that came for just the source code, you can find that right here . Overview We are building a tooling pipeline that will take NPM modules, and use webpack to bundle them. Using LibMan, we will move them into the correct directory so our ASP.NET Core application can serve them. An overview of our process we are building Installation We will be making use of webpack , LibMan  and the NPM Task Runner explorer  t...

How to become a better programmer

I'll be the first to admit, programming was never something I found easy. My very first experience in programming was when I got this book at the ripe age of 11. I liked playing my Nintendo 64  and wanted to make games on my own. The book that changed it all for me My ability was far under sub-par. Somewhere in these  forums I wrote a post asking for help trying to understand a while loop - needless to say I got defensive because I felt I was being talked down by people smarter than me, telling me that I should start and learn more simpler things first (than dive right into making a PC game). Forums did actually look like this (circa 2005) The truth was, I was being too ambitious. BUT - TwisterMan was not going to code itself! (All drawn in glorious Microsoft Paint :)). Animation frames of TwisterMan doing some whirlwind attack Watch out for spikeo ! *rawr* And whoever this boss was called... Baaaa? The point I'm trying to get across i...

[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...