Posts Tagged "csharp"
-
Using the .NET HttpClient class more efficiently
On a recent piece of work, I was updating some code in our codebase which makes use of a HttpClient for fairly similar actions, repeatedly. During a code review, someone noted that I was repeatedly creating a new HttpClient instance for every time we were hitting a certain HTTP endpoint....
-
Auto-backed properties in C#: a quick primer
I’ve been excited and curious about the fancy auto-backed properties of C# since I first got into the language about three years ago. I’ll admit that, though I’m not a language nerd, the improved ergonomics made possible by these properties are great and I’d love to know how they work...
-
The Limits of LINQ
This week, I decided to tackle a particularly nasty piece of code in our code base: a repository class built on top of DynamoDB, that was written before we had much understanding of how the DynamoDB library in C# worked (and before I understood how DynamoDB worked, truth be told)....
-
Loading Spatial Data into Azure SQL Part 3
Continuing on with my work in querying spatial data in Azure SQL, I got stuck on the creation of a spatial index, which has been pointed out as being essential to the performance of an application making use of any kind of spatial data. This much is obvious, since the...
-
Loading Spatial Data into Azure SQL Part 2
I left off my last post uploading the polygons to Azure SQL, which took just a few hours. My next step was to be able to retrieve the LGA (LGA name) from the database, given a set of coordinates. This is a fairly easy task with the cool spatial datatypes...
-
Loading Spatial Data Into SQL Azure Part 1
I'm currently working on a university project in which we have elected to use a client-server architecture with an Android app on the front end and a web API working as the backend server. This server is being run on Azure's App Service as a .NET Web API project (since...