Categories
Hard Skills Software Development

The correct way to write conditional expressions

(isItTrue == false) !== (false == isItTrue) I have been programming for more than a decade, but it never occurred to me that there would be a good and a wrong way of writing a conditional expression. For example, if you write an if statement, would you think that it matters how you order a […]

Categories
Hard Skills Software Development

My WordPress Development Environment on M1 Mac / Apple Silicon (using docker)

How to set up a WordPress development environment on Apple Silicon, using Docker, that is easy to set up and maintain? Read more …

Categories
Hard Skills

I am re-learning React JS after using it for almost two years professionally.

React JS, for me, is the choice of front-end library; I am using daily to build web applications since the beginning of 2019. Before that, I was using the original Angular JS or Angular 1 for 3 years, and before that, I used jQuery for a year.  I feel very comfortable using React JS, but […]

Categories
Hard Skills

DotNet Core Domain Redirect Custom Middleware

A few days ago, I was asked to create a custom middleware, that can redirect from one domain to another from code, in an asp.net core 3 application. In this article, we are going to recreate that middleware step by step.

Categories
Hard Skills

Starting with Terraform as a Software Developer – Part 2

After learning the basics of Terraform from the tutorial, I wanted to know more. What else can it do, and how can I utilize those features in my projects. Having experience with other programming languages, I suspected there are other features, and I went hungry for it. The Cans and Cants in Terraform After poking […]

Categories
Hard Skills

Starting with Terraform as a Software Developer – Part 1

Useful Tips for Software Developers Starting Out with Terraform.

Categories
Hard Skills

Infinite API Call Problem Using React, Redux, and Thunk.

Why does the app send the same API request over and over again? It should do it only once. You use Redux, so as soon as it receives the data, it should be all done?

Categories
Hard Skills

Review of “Learn TDD in 24 hours” on Udemy [2018]

What is Test-Driven Development (TDD)? Test-driven development is all about writing code that you trust, maintainable, and you won’t call it legacy code straight out of the box. It means you write the test first and then you start to write code. In contrast with common beliefs, you save time with this technique because you […]

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 […]