Lim Woojaejaylog.hashnode.dev·Dec 1, 2024[CS fundamentals] Mutable vs. ImmutableIntroduction This article introduces concepts of mutability and immutability in computer science. It’s very important to understand it because it’s going to help you to solve errors in the future. Especially, beginners often face situations such that...DiscussCS fundamentalsimmutable
Atul Bansalatulbansalk.hashnode.dev·Oct 3, 2024🚀 Transforming Mutable Objects to Immutable in JavaScript 🚀In JavaScript, the ability to control the mutability of objects can be a game-changer. Let's explore three methods to make objects immutable, ensuring they remain unchangeable: const person = { firstName: "atul", lastName: "bansal"}; 🔒 Object.se...Discussimmutable
Maxi Contierimaximilianocontieri.com·Sep 16, 2024Refactoring 016 - Build With The EssenceTL;DR: Pass essential attributes during object creation to reduce mutability and eliminate getters and setters. Problems Addressed Mutability Getters Setters Unclear object state Violating the least surprise principle Related Code Smells https://m...Discuss·29 readsRefactoringsrefactoring
Prakash uniyalprakash03.hashnode.dev·Aug 18, 2024Mutable and Immutable in PythonThe Python data objects can be broadly categorized into two - mutable and Immutable types, in simple words changeable or modifiable and non-modifiable types. 1 Immutable types The immutable types are those that can never change their value. In Python...Discuss·1 likePython
Rushabh Patilrushabhpatil.hashnode.dev·Feb 16, 2024Inner Workings of Python, Part-IIIntroduction This is the second part of a blog series where I explain the inner workings of Python. To get started, let's look at an example. This article is inspired by x = ["fruit"] y = ["fruit"] z = x x is z # True x is y # False x == y # True...Discuss·2 likes·56 readsPython
Adegoke Ayobami Seunayobamiseun.hashnode.dev·Oct 10, 2021Simplify Immutable Data Structures in JavaScript with Immer.jsIntroduction It can be difficult to maintain immutability with JavaScript, especially when working with intricate data structures. However, leveraging immutable data structures can simplify code complexity and enhance performance by preventing uninte...DiscussReact
Siddharth Rairaisid369.hashnode.dev·Oct 9, 2022Mutable and Immutable objects in Python. Let's discuss it!Mutable Object: An object that can be modified or changed after being created is a mutable object. E.g. Variable with data type as a list, set, dictionary etc. The below code is a simple example of how mutable objects work. Let's say 'v' is a list-ty...Discuss·124 readsmutable
Omer RosenbaumforfreeCodeCampfreecodecamp.org·Nov 11, 2020Mutable vs Immutable Objects in Python – A Visual and Hands-On GuidePython is an awesome language. Because of its simplicity, many people choose it as their first programming language. Experienced programmers use Python all the time as well, thanks to its wide community, abundance of packages, and clear syntax. But ...Discusspythonic programming