When you have a single line method, you can use expression body definition do simplify and reduce the lines of code: Expression body definitions for methods and read-only properties are supported starting with C# 6. Expression body definitions for constructors, finalizers, property accessors, and indexers are supported starting with C#...
Read "unitytips: Expression body..."
Performing a profiler in the queries sended to the database you can see that in some cases Dapper is sending the string arguments as NVARCHAR (4000). Introduction This happen because Dapper cannot infer what is the exactly type and length of the table column on database. The downside of the...
Read "Dapper and the NVARCHAR(4000) ar..."
The short answer NO! The long answer The Azure Service Bus maximum message size is 256 KB for Standard tier and 1 MB for Premium tier (https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). A simple solution to overcome this limitation is split the messages in blocks lower or equal to 256 KB size. Below is a...
Read "Can I send batch messages larger..."
In this post I will show how to deploy a T4 Template to a target project using a NuGet package built with dotnet CLI pack command. Introduction Recently I had to distribute a T4 template inside a NuGet package, so developers who installed the NuGet package would get, in addition...
Read "Deploying a T4 Template with dot..."
Phi Dinh remembered a Twitter moment with tips and tutorials about the shaders used on Recompile. (Recompile Unity Tips and Tutorials). Thomas Krogh-Jacobsen wrote a blog post about Unity 2019.2 release. This version has more than 170 new features. (Here’s what’s in the brand-new Unity 2019.2). Screen.cutouts for iOS/Android, Burst...
Read "Unity and Game Development links..."
Some days ago a coworker asked me what I thought about wich status code a web api should return and if there are some good pratices to follow. When he asked this, I remembered that I’ve followed some good pratices, most of them based on my emperical knowledge of years...
Read "Developing Web APIs - Good Pract..."
Last saturday I created the ToastyNotification package, a fun editor log interceptor that play Mortal Kombat’s Toasty easter-egg every time an error is logged. Setup Just install the ToastyNotification.package from the repository release page. Now every time your game raise an error on Unity’s editor console log, the Toasty Notifcation...
Read "Unity Toasty Notification"
Kristin Stock published an amazing video about SPH (Smoothed Particle Hydrodynamics) in Unity. (Fluid Simulation / Smoothed Particle Hydrodynamics in Unity). SIGGRAPH 2019 is taking place in Los Angeles, between July 28 and August 1. Unity has made a page where you can see the Unity’s presentations calendar (Unity at...
Read "Unity and Game Development links..."
In this post I will show how to use Cake to build and test a .NET Core project and then publish the results to SonarCloud. Introduction Cake (C# Make) is a cross-platform build automation system with a C# DSL for tasks such as compiling code, copying files and folders, running...
Read "Publishing a .NET Core project t..."
I created this window that extends the Unity 3D editor so you can preview the scenes by selecting them in the project window. Usage As can be seen from the video above the extension can be used in two ways after adding the Scene Preview window to the editor (via...
Read "unitytips: Scene Preview W..."