Category: Programming rss

Posts

06 March / / Programming
When working on Spark jobs (in Scala), we often sequentially write the code in a single class, giving more attention to the transformations we do and forgetting how our code is structured or even if it’s tested. Today I’ll be talking about how I personally like to structure and design my Spark jobs, such as they are highly maintainable and testable.
17 December / / Programming / CSharp
Yesterday, Prashanth Govindarajan posted an article about DataFrame on the .NET Blog. I got excited and wanted to try the library as soon as I could. In this post, I will explain what the library is intended for and what are my thoughts on it. The package The DataFrame related classes were introduced in the package Microsoft.
A few days ago I needed a way to connect to a server using a Socks5 proxy but couldn’t find an up-to-date implementation for .NET Core, so I decided to give it a go myself. The implementation is pretty straightforward and easy, I got inspired from starksoft-aspen and followed the official RFC.
When I was looking for K-means use cases, I found out about Color quantization, a very interesting . I implemented it in Python and was wondering whether it would be as easy to implement in ML.NET. All the code is available in this GitHub repository. What is color quantization Color quantization is the usage of quantization, a lossy compression technique, in color spaces in order to reduce the number of unique colors in an image.
Patrick Smacchia, the author of NDepend, offered me a license for NDepend and I was thrilled, as I was always interested in it. In this blog post, I’ll be talking about my opinion and thoughts after trying it for the first time. Static code analysis Being able to check the quality of your source code before it’s even ran is a very valuable thing to have.
Sending emails is a very important functionality for any website nowdays, either to send account verification emails, newsletter emails or even notification emails. Today I’ll be showing how you can create your own EmailSender Service in ASP.NET Core using FluentEmail and Razor templates for rich HTML emails. EmailSender interface If you’re working with a project that implements a Clean Architecture, you’ll want to create an interface in your Core project to define what you need the service to do, as well as to have the possibility to use it from the Core project too.
Assuming you are familiar with C#; If I give you a Type and tell you to create an object with it, you would automatically think of Activator.CreateInstance right? What if I tell you that instanciating a Type using Expression Trees is much faster? The code for the benchmarks is in this repository.
14 March / / Programming
Repository Pattern was first introduced in the Domain Driven Development back in 2004 and has since then gained a lot of popularity. Today I’ll show you how you can implement a generic async version of it in C# (ASP.NET Core specifically). The code of this blog post is available here.
02 February / / Programming
I was prototyping a 2D Side Scroller game in Unity a week ago and started implementing an Inventory System (Equipments, slots, etc…). Unfortunately, Unity didn’t have a Context Menu out of the box so I searched a bit and found this, which helped me get an idea of how to implement one as well as make it completely mouseless, since my game was mouseless itself.
23 September / / Programming
Hi everyone! I hope you’re having a great sunday. Me and my collegue decided this week to rewrite an api made with Laravel Lumen using ASP.NET Core. While doing so, I was wondering wheter some kind of tool existed to help generate the documentation of the API (since we all know writing a documentation is the least fun thing in programming) and I came across Swagger.
21 August / / Programming
I was working on a personal project the other day and I needed to create some images (frames) and save them as a playable GIF. Working in Python, I excepted to find an easy solution fast but oh boy did it take me too long to find it. Here I am now, creating a blog post to help future people looking to create gifs in Python.
In result of Google’s latest updates to its Maps API services (June 11, 2018), a lot of people are unhappy with these shocking changes. Increase in the price. Decrease in the free map loads. Obligation of adding a billing account. Etc… Therefore, a lot of those people are looking to replace their use of Google Maps to something as good (or at least remotely as good).
Adding breadcrumbs to a website seems like an easy task and honestly, it should be. Unfortunately it’s not, unless you want to end up copying the almost-same code in all your pages. Today I’ll be talking about how to add and manage breadcrumbs in an ASP.NET Core website using SmartBreadcrumbs (1.