Categories
Software Development

A simple way to add copyright notice to your website’s footer that you never have to update again

As I had to add a copyright notice to my WordPress website I wondered how should I automate it in a way that I never have to worry about again. It is a really simple task, but still, since I was going to add it as an html widget I didn’t want to break the […]

Categories
Hard Skills

ASP.NET MVC 5 Custom “Static” Razor Pages

This post is one of the ASP.NET MVC 5 Custom Routes series. The problem You can usually identify this problem when you are creating a lot of custom routes for each one of your empty controller actions. If you follow this antipattern you will end up with an endless RouteConfig.cs , that will point to […]

Categories
Hard Skills

ASP.NET MVC 5 Custom Routes

How do you handle your routing in your web application? Do you use all the time the default routing rule? routes.MapRoute( name: “Default”, url: “{controller}/{action}/{id}”, defaults: new { controller = “Home”, action = “Index”, id = UrlParameter.Optional } ); Or do you write your own rules for custom functionality when you want something different for […]

Categories
Hard Skills

JavaScript VS C# ( Google distance API )

To use Google’s DistanceMatrix API and do some calculations with JavaScript is easy. Try the same with C#! Nice, quick, and dirty. Start with JavaScript I was (and I am still) playing with a code that can do some math based on a distance between 2 locations. Because Google supports JavaScript it is really easy […]