DORSETRIGS
Home

immutability (15 post)


posts by category not found!

How to make an immutable object in Python?

How to Make an Immutable Object in Python In Python immutability is a key concept that refers to the inability to modify an object after its creation This artic

2 min read 08-10-2024 26
How to make an immutable object in Python?
How to make an immutable object in Python?

Immutable version of EnumSet

Immutable Enum Sets A Deep Dive into Unchanging Enumerations In the realm of Java programming Enum Set provides a highly efficient way to represent sets of enum

2 min read 07-10-2024 23
Immutable version of EnumSet
Immutable version of EnumSet

DeepReadonly Object Typescript

Deep Readonly Preventing Unintentional Mutations in Type Script Objects In Type Script the readonly keyword helps ensure that object properties cannot be modifi

2 min read 07-10-2024 50
DeepReadonly Object Typescript
DeepReadonly Object Typescript

TypeScript - Mutability and inversion of Readonly<T>

Type Script Unlocking Mutability with Readonly T Type Script a superset of Java Script provides powerful type safety features One of these is the Readonly T typ

2 min read 06-10-2024 40
TypeScript - Mutability and inversion of Readonly<T>
TypeScript - Mutability and inversion of Readonly<T>

Any tips for mutating the state using redux-toolkit

Mastering State Mutation with Redux Toolkit Tips and Techniques Redux Toolkit simplifies state management in React applications making it easier to update your

3 min read 05-10-2024 46
Any tips for mutating the state using redux-toolkit
Any tips for mutating the state using redux-toolkit

What is the difference between shallow copy, deepcopy and normal assignment operation?

Understanding the Differences Shallow Copy Deepcopy and Normal Assignment Operation in Python When working with data structures in Python its crucial to underst

2 min read 15-09-2024 56
What is the difference between shallow copy, deepcopy and normal assignment operation?
What is the difference between shallow copy, deepcopy and normal assignment operation?

How to use Kotlin backing field with Channel and Flow?

Mastering Kotlins Backing Fields A Deep Dive with Channels and Flows Kotlins backing fields offer a powerful way to manage data within properties When combined

3 min read 13-09-2024 66
How to use Kotlin backing field with Channel and Flow?
How to use Kotlin backing field with Channel and Flow?

Kotlin backing field wrong type

Kotlin Backing Fields Understanding Type Mismatches Lets say you re working with a Kotlin class and you re trying to define a property with a backing field You

2 min read 13-09-2024 60
Kotlin backing field wrong type
Kotlin backing field wrong type

immutable strings vs std::string

The Debate Immutable Strings in C The world of programming languages is abuzz with the concept of immutable strings Languages like Java C Python and D all embra

2 min read 07-09-2024 51
immutable strings vs std::string
immutable strings vs std::string

TypeError: 'Series' objects are mutable, thus they cannot be hashed

Understanding the Type Error Series objects are mutable thus they cannot be hashed Error in Pandas This error Type Error Series objects are mutable thus they ca

3 min read 06-09-2024 51
TypeError: 'Series' objects are mutable, thus they cannot be hashed
TypeError: 'Series' objects are mutable, thus they cannot be hashed

Racket mutable hash to immutable hash

Transforming Mutable Hashes to Immutable Hashes in Racket A Guide for Efficient Data Manipulation Rackets powerful data structures offer a lot of flexibility bu

3 min read 06-09-2024 59
Racket mutable hash to immutable hash
Racket mutable hash to immutable hash

Java List.of() as key in HashMap?

Can You Use List of as a Key in a Hash Map You ve stumbled upon a common question can you use an immutable List created with List of as a key in a Hash Map This

2 min read 01-09-2024 53
Java List.of() as key in HashMap?
Java List.of() as key in HashMap?

What prevents JavaScript primitives from being mutated?

Why Java Script Primitives Cant Be Mutated A Deep Dive Java Scripts immutability of primitives is a fundamental concept that often causes confusion for develope

2 min read 31-08-2024 54
What prevents JavaScript primitives from being mutated?
What prevents JavaScript primitives from being mutated?

Function adapting to mutable or non-mutable input

Adapting Functions to Mutable and Immutable Input in Rust An Idiomatic Approach This article explores a common problem in Rust how to write functions that grace

2 min read 29-08-2024 59
Function adapting to mutable or non-mutable input
Function adapting to mutable or non-mutable input

What's the workaround for Django/PostgreSQL GeneratedField error

Workarounds for Django Postgre SQL Generated Field Errors When working with Django and Postgre SQL you might encounter the django db utils Programming Error gen

2 min read 29-08-2024 56
What's the workaround for Django/PostgreSQL GeneratedField error
What's the workaround for Django/PostgreSQL GeneratedField error