Every developer has had this experience. You’re knee-deep in a feature branch, you’re working through code that isn’t compiling, and you get the dreaded Teams message, “Something is broken in prod…” You’ve got a bunch of uncommitted changes, and for just a brief second, you panic. You can’t just keep the code changes uncommitted. You […]
Category: Coding
GitKraken or How I Learned to Love Git
I’ll be honest. I don’t have a lot of experience in git. Most of my experience, for one reason or another is with SVN and TFS. At my day job, we made the decision to move from TFS to Git (specifically GitHub) and the transition hasn’t been easy….to say the least. We also decided to […]
useState props
Whenever you call useState in React, you get back two elements. The first value will always be its most recent state and the second value is the value you want to set state to. The const above is called array destructuring and in our particular instance, it’s used to give us direct access to the […]
Redux Reducers
In my current self directed learning path about React, I’m wrapping my head around Redux and how it’s used to manage state. In C# we have an Aggregate() method that takes in a collection and spits out a single value. For instance: Can you guess what the value of result is? If you guessed (or knew) 40, […]
Stateful Components in React
I haven’t jumped into state in functional components yet. But I am learning about state in class components. When building a class in React, it’s helpful to extend (in C# we call this an override (inheritance)) React.Component. In order to pass arguments (props) to this class though, you must pass the props into the class constructor as well […]
How To Start with src and tests Folders in your Solution File in VS2019
Organizing your code into src and tests folders on GitHub seems to be getting more and more popular. However, in Visual Studio 2019, it’s not very easy to accomplish. Here is how I do it. Firstly, let me show you the final outcome: To get there requires some Command line. First open a Command window […]
.NET Core 3.1 Missing From Target Framework in VS2019
I cloned a repository that was targeting .NET Core 3.1. Trying to run it in VS 2019 ended with this error: The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. I looked at […]