---
title: "Discussion on \"Have you seen a Frozen Object?\" | Hashnode"
description: "Discussion on \"Have you seen a Frozen Object?\". Prologue\nFew years back as a Java programmer, I used to admire the concept of making something Immutable. What was fascinating that, once marked immutable, changing it's property, extending it really not possible. Once I switched to JavaScript, I was..."
url: "https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Have you seen a Frozen Object?](https://blog.greenroots.info/have-you-seen-a-frozen-object?utm_source=hashnode&utm_medium=feed)

Prologue Few years back as a Java programmer, I used to admire the concept of making something Immutable. What was fascinating that, once marked immutable, changing it's property, extending it really not possible. Once I switched to JavaScript, I was...

Apr 16, 2019 · blog.greenroots.info  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#object](https://hashnode.com/tag/object)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

  
[View profile](https://hashnode.com/@atapas)

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 3

Markdown supported · ⌘↵ to post

[Joseph S Stevens](https://hashnode.com/@josephscottstevens)

[Apr 17, 2019](https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638/comment/5cb6777af46ea02927b44435)

Good article, I think it's really nice you are spending time trying to teach people the value of immutability. I think it is a really make it or break it concept for software developers. If your codebase is immutable, your debugging experience is lightyears better. If your codebase has tons of mutable references, it can take hours to debug something small.

Immutability is awesome, albeit counter-intuitive, but awesome.

[Mark](https://hashnode.com/@mverleg)

[Apr 16, 2019](https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638/comment/5cb630c35d6e9c583408a6cb)

I like the idea of immutability and I'm glad you highlighted it.

I think one of the better things to happen to software engineering is that people got a bit more afraid of mutable state. Having immutable objects really rules out a lot of problems.

It's also one of the nice innovations in Kotlin compared to Java: 1) lists are immutable by default, and 2) trying to mutate them is a compile error, rather than runtime.

I like the statically-typed version more, but it's good to see it can be used in Javascript.

[Sandeep Panda](https://hashnode.com/@sandeep)

[Apr 16, 2019](https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638/comment/5cb60f112f4fb2020bbb5891)

Interesting post and nice examples. Loved it. 👌
