.net

How you can improve code quality in your project?

Last Saturday during my lecture about code quality I was a bit shocked how many people didn’t know the most accessible tools that can improve code quality. You should remember that cost of quality improvements will be low only when we will think about those issues from the early beginning of the project. Every additional day when we are not monitoring and improving quality will increase the cost of potential quality issues fixes in future. Of course, I would assume that each time we are trying to deliver good quality code but we are only humans. So even when we [...]

By |2018-06-05T11:22:38+02:005 June 2018 |Extras / Tools|0 Comments

Sending SMSes from Azure Functions – Twilio

This is a second article showing how easy you can build value by correct compositions of two elements. This time we will try to send SMS from Azure Functions. Like in previous time – when we were sending emails – we have dedicated provider for this type of service. It is Twilio. […]

By |2019-05-12T16:01:24+02:0014 April 2018 |.net, Azure Functions, C#|2 Comments

Sending emails from Azure Functions – SendGrid

I am trying to convince people that right now we should try to think about how we can build our application effectively. Instead of building everything from scratch we should look for possibilities of composition application from different elements. This means that you should write smaller amount of code and there is also smaller chance for making an error. In case of Azure Functions natural choice for email service provider is SendGrid. […]

By |2019-05-12T16:02:39+02:0014 April 2018 |.net, Azure Functions, C#|0 Comments

Azure Function – Uploading photos to Azure Blob Storage

Today I would like to describe another production use case for Azure Functions. This time example is quite simple. I would like to use Azure Functions to upload photos to Azure Blob Storage. Of course, you can upload photos directly to Azure Blob Storage. However, with such solution, your components are tightly connected. This can block you in the future. To avoid that you should add some middle layer. For this, you can use Azure Function. It will act like an API that will accept photos encoder in base64 and upload it to provided location. With this approach, you will [...]

By |2019-05-12T16:03:19+02:0023 February 2018 |.net, Azure Functions, In practice|0 Comments

NDepend – short review

Sometime ago I have been asked by Patrick Smacchia to write short review of his tool – NDepend. I believe that most of you know this tool. It is a swiss army knife in scope of code analysis. Capacity of this tool is enormous. I wanted to fulfil this request in a professional way. So, I needed to learn how to use this tool before writing any word regarding it. And it was not so easy task. This tool has so many features and possibilities of customisation… After two months of using it I can say that still I am [...]

By |2017-11-06T23:14:33+01:007 November 2017 |Extras / Tools|2 Comments

Moq.EntityFrameworkCore package

From yesterday you can download package that will help you with mocking DbSet<TEntity> when you are using Moq. You can find sources and short instruction on GitHub portal or download compiled version from NuGet. New package works in the same way as Moq.EntityFramework.Helpers.

By |2017-10-15T22:51:45+02:0015 October 2017 |ASP.NET Core, C#, Projects, Testing|0 Comments

Caching in Azure Function – how you can use Redis

I believe that you should know that Microsoft has prepared some set of components that can be used for integration purposes. You are able to consume the following services in our function: Azure Storage, Azure Event Hubs, Azure Service Bus, Azure Mobile Apps, Azure Cosmos DB, Azure Notification Hubs, Twilio, SendGrid. On the one hand this list is not so big. On the other one you can address with those services a lot of typical scenarios. But sometimes you need to do something more. Today I would like to share with how easily you can use Redis cache in Azure [...]

By |2019-05-12T16:04:26+02:002 October 2017 |.net, Azure Functions, C#|0 Comments

Azure Functions – Lessons learned

Nowadays all topics related to Cloud and Serverless terms have become very popular. One of such elements are Azure Functions. Microsoft defines it as: Azure Functions is a solution for easily running small pieces of code, or “functions,” in the cloud. You can write just the code you need for the problem at hand, without worrying about a whole application or the infrastructure to run it. Functions can make development even more productive, and you can use your development language of choice, such as C#, F#, Node.js, Python or PHP. Pay only for the time your code runs and trust [...]

By |2019-05-12T16:07:34+02:006 June 2017 |.net, Azure Functions, C#|0 Comments