dikshyasubedi.hashnode.devOpen/Closed Principle Explain With An Exampleusing System; public class Fighter { private IWeapon _weapon; public Fighter(IWeapon weapon) { _weapon = weapon; } public void Fight() { _weapon.Attack(); } } public interface IWeapon { void Attack(...Sep 20, 2023·3 min read
dikshyasubedi.hashnode.devDapper in .Net 6Dapper is a popular lightweight Object-Relational Mapping (ORM) library for .NET applications. It was developed by Stack Overflow to provide a simple and efficient way to work with databases while minimizing the performance overhead typically associa...Aug 16, 2023·2 min read
dikshyasubedi.hashnode.devVariable in JavaScriptIn JavaScript, variables are used to store and manage data. You can declare variables using the var, let, or const keywords. Starting with ES6 (ECMAScript 2015), it's recommended to use let and const over var for better scoping and immutability, resp...Aug 11, 2023·2 min read
dikshyasubedi.hashnode.devArray in JavaScriptIn JavaScript, an array is a data structure that can hold multiple values of any type. Arrays are defined using square brackets [ ] and can contain elements separated by commas. Here are some examples of working with arrays in JavaScript: Creating an...Aug 11, 2023·2 min read
dikshyasubedi.hashnode.devUnique Key Vs Primary KeyPrimary Key: a. It must contain unique values for each row, meaning no two rows can have the same value in the primary key column(s). b. A primary key column cannot contain NULL values, as it must uniquely identify each row. c. A table can have only ...Aug 11, 2023·1 min read