#understanding Immutability
Explore tagged Tumblr posts
Text
The Significance of Immutability in Software Development: Creating Reliable and Efficient Systems
Immutability, the property of data that cannot be changed once created, holds great importance in software development. In this article, we will delve into why immutability is essential and its impact on creating reliable and efficient systems. We will explore the benefits of immutability, techniques to achieve immutability in React, and the role of immutability in Redux applications.
The Benefits of Immutability:
1. Predictable State and Debugging: Immutability ensures a predictable state in software. With immutable data, changes are made by creating new instances rather than modifying existing ones. This predictability simplifies debugging and makes it easier to reason about the behavior of code. Immutable data structures eliminate unexpected mutations or side effects, leading to more reliable and maintainable systems.
2. Concurrent and Parallel Programming: In concurrent and parallel programming, where multiple threads or processes access and modify shared data simultaneously, immutability plays a vital role. Immutable data eliminates the need for locks or synchronization mechanisms since it cannot be modified. This removes the possibility of data races, deadlocks, and synchronization-related issues, improving the reliability and efficiency of concurrent code.
3. Performance Optimization: Immutable data structures offer performance benefits in certain scenarios. Since immutable objects cannot change, they can be safely shared across multiple parts of a program without the need for defensive copying or synchronization. This sharing reduces memory footprint, minimizes copying overhead, and improves overall performance, especially in scenarios where data is heavily shared or used in functional programming paradigms.
4. Predictable React Rendering: Immutability is particularly crucial in React, a popular JavaScript library for building user interfaces. React relies on efficiently detecting changes in the application's state to update the UI. With immutable data, React can perform shallow comparisons to determine if a component needs to re-render. This optimization reduces unnecessary re-renders, leading to improved performance.
Immutability in React:
1. Using Const Declarations: Declaring variables with the `const` keyword in JavaScript prevents reassignment, ensuring that the variable holds an immutable value. While `const` doesn't make the entire object immutable, it helps enforce immutability at the variable level.
2. Leveraging Immutable.js: Immutable.js is a library specifically designed to handle immutability in JavaScript applications, including React. It provides a set of immutable data structures and operations that simplify working with immutable data. Immutable.js data structures can be efficiently compared, ensuring optimal rendering performance in React applications.
3. Utilizing the Spread Operator: The spread operator (`...`) is a JavaScript feature that allows for the creation of shallow copies of arrays and objects. By spreading the elements of an existing array or object into a new one, you can ensure immutability while making modifications.
Immutability in Redux:
1. Immutable.js and Redux: Redux, a state management library commonly used with React, benefits greatly from immutability. Immutable.js can be employed to handle the state in Redux applications, ensuring that state changes are managed immutably. By creating new state objects instead of modifying existing ones, Immutable.js facilitates efficient change detection and optimizes rendering performance in Redux.
Conclusion: Immutability plays a critical role in software development by providing predictable state, improving performance, and simplifying debugging. In React applications, immutability enables efficient rendering and enhances the reliability of the UI. In Redux, immutability ensures consistent state management and optimal performance. By embracing immutability and utilizing techniques such as `const` declarations, Immutable.js, and the spread operator, developers can create more reliable, efficient, and maintainable systems.
0 notes
Text
it’s 1am and i’m supposed to be asleep but instead i am here on tumblr to tell you that this:

IS A CRIME
this is a CRIME i say!!
what do you MEAN there is no established “kaeya is protective of jean” tag?? that’s their whole dynamic!
who was it who took over her duties when she was sick? who was it who stepped up as acting acting grand master when she was on vacation? who was it who told the traveler to give her their full support? he looks out for her in every way he can!
like i understand kaeya is a little baby boy. i get it. he is my baby boy as well and i love to make people protective of him. but c’mon team at some point we need to let jean get woobified as well
thank you for coming to my ted talk now i’m off to write kaeya being protective of jean
#genshin#this is possibly my most niche post yet but i am FLABBERGASTED i tell you#never has my flabber been so gasted#this is just like the time i tried to add the tag “immunocompromised diluc” and was deeply confused that it didn’t already exist#i always say i have no immutable headcanons but apparently i have very different takes on characters from the rest of the fandom#and i’m just delusional enough to think they’re canon#also i’m not seriously upset about this. lest anyone think i’m making mountains out of molehills#i don’t personally use this kind of tag (ex. “kaeya needs a hug” or “diluc is so done”)#so i understand that not everyone tags it when kaeya is protective of jean in their fics#this is less me complaining and more me being shocked that my personal favourite kaeya&jean dynamic isn’t already a tag#the woman was too stunned to speak#my tags r longer than my post lol anyway#leifythoughts#kaeya alberich#jean gunnhildr#the secret third thing is coworkers
67 notes
·
View notes
Text
QAnon's barbarous "do your own research" vs our glorious "read the theory"
#y'all know that 'read the theory!' is not an actual argument right#like . . . The Theory is not an immutable law of the universe. it's just someone's opinion#if you can't explain your reasoning in your own words then i'm gonna assume that you don't actually understand the theory anyway#and are just using an appeal to authority to win an argument
38 notes
·
View notes
Text
Thinking once more about the F/F AO3 stats issue. Really struggling with the urge to write "issue" there too, LOL.
I know that call-to-action doesn't always go well, and that I exist as a drop in the bucket compared to millions of Tumblrites & AO3 users. But the curse of seeing yet another post which discusses how horri-bad these stats are, when the differences within the individual fandoms is often so manageable. It drives me insane.
There's a couple versions of these "wow, M/M fics are more popular and that's bad because of X issue" posts that have screenshots of laughable disparities. Stuff like 500 more M/Ms than F/Fs. That is a genuinely amusing number, because with the help from a fraction of the thousands who share any post like that, this very scary gap would cease to exist.
So, anyway. I'm considering some sort of fandom roundup wherein I have folks vote on a fandom with F/F to M/M "disparity" which I will then run a "break the ratio" event on. Encouraging people to write fics until the ratio evens. IDK, is that something that people would be interested in? I could be crazy but this rubber room squeaks and I think the rats are talking about me.
#Textual.#ao3 writer#ao3 stats#Somewhat polarizing opinions in the club. Refer to my previous post about this as needed but myyeeeghhh. It really is nutty.#The number of posts & subsequently people who just point at the ' 'problem' ' with slack jaws. As if nothing can be done.#I literally write F/F all the time. I write fics about ladies getting nasty as well as fics about cryptic lass flirtation. It's fun.#My formative years were spent as a baby dyke. Be serious & take responsibility for your role in fandom. Talk about your favorite F/F fics.#Share them. Post them. Put kudos on that shit. Comment so the author feels good about writing more. Every time you share those dumbshit#posts about stat breakdowns and inter-fandom disparity. You have effectively told an author that their efforts to write a cool F/F fic are#worthless or pointless or meaningless because the raw numbers are immutable. Do you understand that? The actual tangible impact?#' '5092 M/Ms to 3074 F/Fs is bad!!' ' You are literally looking at 3074 fics tagged with F/F. How is that not so cool. Go comment on them???
16 notes
·
View notes
Text
ohhhhhhhhh “sea of thy soul” = personal unconscious, “sea of souls” = collective unconscious. hey guys did you know that persona is kinda jungian
#this is maybe a very obvious statement but a lot of persona makes a lot more sense when you start learning abt jungian psychology#i say learning but i just mean mr edogawa’s tv classroom for the most part lol#it is very informative though#and it’s incredibly interesting to hear about The Themes Of The Game from the game’s mouth#i’m not certain why i thought this but prior to actually playing the game myself i thought p4 was really ‘true self’-y#like that it implied that there was an immutable ‘true self’ and that personas and/or shadows WERE that#but it very much doesn’t. like at every turn#i guess i took ‘i am a shadow; the true self’ at face value…#rambles#p4g posting#rather than an immutable singular truth; ‘true self’ seems to be the knowledge of oneself. like the shadow and persona and shit#more as in the concepts than the guys. as well like personal growth a la slinks#like. holistically. the shadow and persona are but fractions of the self#the shadow what’s repressed and the persona how you face the world. neither are the entirety of nor separate from the self#that’s how i’ve come to understand it anyway#i’ll probably have some more solid thoughts once i see all the tv classrooms and finish the game
39 notes
·
View notes
Text
zoscar, as promised 😌
#bluebird.txt#bluebird’s art#rqg#rusty quill gaming#zoscar#i’m so proud of this you don’t understand#is it amazing no but i think it’s pretty gosh darn good#and the most important part is i had hella fun drawing it <3#just a man and his significant annoyance <3#platonic life partners zoscar truly means so much to me.#i’m a little self conscious but you know what no. Look At My Art Boy.#i don’t really keep my art style super consistent in terms of like the brushes i use or whether i always draw realistic-er or how i color#but i am curious what some immutable elements my art may have if it does have them. like what are the things that i can’t notice? what are#the things that may indicate my art is mine that i don’t notice? what gives me away?#just musing. anyways hehe ZOSCAR!!!!
31 notes
·
View notes
Text
🍉
#anyway! who’s up crying about Yichan and Eun Gyeol?#me i am 🧍🏻♀️#the father-son love that was fated to happen in any timeline and even if Yichan was a literal 19 year old child got to me all right#LIKE!!! the CONNECTION#Cheong-ah was always going to fall in love with Yichan and he was always going to fall in love with her and they were always going to have#their beloved sons and that love is immutable and unerasable and would always happen even if altering the timeline meant that it would#happen vice versa#like eun gyeol is the result of yichan and cheong-ah’s connection but then!!! he goes back#and yichan and cheong-ah have a connection BECAUSE of eun gyeol#and and and#eun gyeol is like dad….. mom…… I’m going to personally make sure your lives shine because you made my life shine#and then it’s like#he does what they raised him to do so well that he essentially becomes their adoptive parent for one glorious summer#Yichan saying “it’s like you’re the dad I never had”#BUT BECAUSE YICHAN IS THE ONE WHO TAUGHT EUN GYEOL WHAT IT MEANS TO BE A DAD#and the first word eun gyeol ever says to cheong-ah (that she understands) is “mom”#and that’s the word she remembers from her own mom#they took that from her#they took away her mom they took away her connection to the world#but eun gyeol gives that back to her#BECAUSE SHE’S THE ONE WHO TAUGHT HIM THAT#they taught him how to love and then he went back and saw how much they needed love as kids and he taught it back to them#and he returns to his time and the love is there tenfold#GODDDDD#twinkling watermelon#elly's posts
12 notes
·
View notes
Text
we stay loving gender essentialism i guess
#oh yes im sure there are immutable differences among genders and sexes im sure this idea would never harm anyone ever#LIKE I KNOW WHY TRANS PPL ARE VULNERABLE TO THIS. I UNDERSTAND. YOU A R E THE GENDER THAT YOU ARE IM SORRY THINGS SUCK#i wish i could tell you why people are the genders they are. i know id feel more secure in mine if i could#but ill tell you this. i am not a man bc there is t in my body. i am not a man bc of body hair or voice pitch. i am not a man bc of my-#-interests or the way i hold myself or my feelings about the world.#someone could have the exact same body and personality as me and be a woman. this is scary to me & my gender and it is True.#you have to trust yourself. im sorry its not easier
5 notes
·
View notes
Text
forgive any incomprehensibility but the notion that the world can be cleanly split between the two immutable categories of 'the neurotypical' and 'the neurodiverse' ignores the reality that any person can at any point for any reason be arbitrarily 'diagnosed' by a 'professional' and shuttled between categories with no regard for the notions of 'accurate traits' or 'specific symptoms'. nice dichotomy what lies outside of it? you understand me?
#N posts stuff#i'm reading some old issues of 'Phoenix Rising' and a line in one of the articles really caught me#''we are questioning the very foundation of psychiatry which uses mental illness; which is often just behavior that is judged strange#by some usually conventional middle-class-standard of morality''#also thinking about that post i reblogged yesterday claiming that 'posture sway' is a Symptom of adhd like.#Embracing the pathologizing of average behaviors VS the like. weaponizing of diagnoses against 'undesirables'#idk am i making sense? lol#like people talk about this re: disability - the notion that anyone can become disabled at any time but that's usually in the context#of like. 'anyone is one bad accident away from being disabled' but Neurodiversity in particular does not even require that much#another Phoenix Rising tells the story of a woman who like. got a little sick at work and diagnosed as 'stress' and prescribed a#heavy tranquilizer that caused side effects no one had told her about; she got confused at her appointment and her subsequent#panic got her involuntarily committed as psychotic where they upped the medications and gave her ECT until the combo#caused so much brain damage that she seized and died. bc she threw up at work one day. the categories are not immutable and#the people who define them have agendas. who benefits from buying into this dichotomy? you understand what i'm saying?#anti psychiatry
52 notes
·
View notes
Text
I am perplexed by the number of people in fandoms "peaking" and what not. It's so strange to see.
Especially ones that are turning to "loving hatred" by having a gentle and "welcoming" demeanor while talking about how much they despise men and calling intersex women "men," or posting nothing but vitriol against any woman they deem "a male" while swearing up and down that they're protecting women, supporting violently intersexist and misogynistic posts from right wingers, but also turning around and saying they hate right wingers and support all women... What is up with that ?
I've noticed that they also tend to have characters that are well-loved by trans people or are gender/sex variant in canon in their layouts or usernames, which is almost sinister..
#intersex#transgender#queer#lgbt#anti-terf#anti truscum#fandom#Also the 'I love trans men because they're female!' nonsense is so hilarious to me. You would Not date a fully transitioned man.#Do not kid yourself. You say sex is immutable-until it changes!#or you 'don't agree' !#Listen..it's one thing to be uncomfortable around men. It's understandable. It's OK to have a genital preference.#But when you become intersexist and queerphobic about it.....#It becomes something else. Please date people you actually respect.
4 notes
·
View notes
Text
.
#when a confrontation with Gen haters makes you almost want to take on the muse#just to give him all the love and understanding and complexity that is clearly being ignored#not serious. i just feel very afkk j gthhhg about this shit lol. to get him so horrendously wrong#and stick to it like its immutable fact
4 notes
·
View notes
Text
there's very little funnier than when people try to prove that there are only two sexes by arbitrarily sorting intersex conditions into male and female boxes because inevitably they end up either placing the same condition in both boxes (ovotesticular syndrome, pituitary gland disorders, idiopathic) or just straight up lying about what the condition is and who it can be diagnosed in (CAIS and NCAH). and when you start to read more about it the ones that are generally shoved into one box sometimes do affect the opposite sex it's just not in a way that's obvious or debilitating and thus it's understudied (PCOS).
of course this depends on the definition of intersex being used but if you're arguing that only chromosomal disorders are intersex then you must also accept that there is then a complete overlap between the spectrum of naturally occuring female and male sexual characteristics. and the only rebuttal i ever see to that is 'women/men that are naturally too feminine/masculine should use artificial hormones to change their bodies or they're not real women/men', which is not very there are only two immutable sexes of you.
just generally every time a T/E/RF says anything about intersexuality they betray a complete and utter lack of knowledge when they get more specific than 'most people with this disorder are assigned female/male at birth, and most of them have these sexual characteristics'. it's almost like the subject is complicated and intersex conditions are wildly understudied when they're not trying to nonconsensuallly 'fix' people. ntm that most intersex conditions are syndromes and syndromes are a cluster of symptoms not a proven cause -> effect condition, and science often finds that a syndrome can affect groups they didn't previously think it could.
#sorry to argue with a wall here but there's this one specific chart they like to pass around#when i go a-blocking i always see it if intersexism is brought up at all and every time it's so fucking funny#bc it sorts the same disorders into the same category and also misrepresents the symptoms and also only includes like 10 conditions#and fails to mention when they're a diagnosis of exclusion or ideopathic too#just the most dumb dumb baby level of understanding masquerading as Hard Immutable Science#which as an unprofessional endocrinology nerd drives me insane#also sorry i think intersexism is the wrong word ik it normally means prejudice against intersex people#changed it to intersexuality where i caught it but im not editing the tags cos mobile
2 notes
·
View notes
Text
Call me a gatekeeper, but inktober should be about ink. As in, the physical liquid you can use to draw onto various surfaces, including paper.
#honestly I'd sooner accept tattoos than whatever graphics programme many use#it's like you don't understand that the immutable finality of ink is part of the point
4 notes
·
View notes
Text
In my special self-indulgent headcanon version of speech gifts, telepathy is a mind gift, but the equivalently difficult Speech gift is speaking in concepts
#so instead of using words you use straight concepts#this is a difficult skill not just because of its technical challenge but because there’s a proverbial language barrier#The way you think about something the way you understand certain ideas is different than other people’s#So communicating in concepts becomes a very intimate act in which you must intrinsically learn to#wrap your head around someone else’s worldview and respond in kind#The way I imagine it when you get to this level of study Speech classes begin to resemble anthropology#for example#what is a woman? What is a house? Are these concepts immutable?#How do those ideas translate across the bounds of culture? How do you specifically conceptualize these things?#One of the final assessments in Speech is choosing a word and defending how/why you conceptualize it the way you do.#You do this in a conversation with a professor that is held entirely in the language of concepts#It’s not just an assessment of eloquence but an assessment of whether you’ve#thought about how and in what ways you want to participate in society#anyways#yeah#I can and will extrapolate about dem sense higher ed and speech gifts and are so fun and malleable#celias journey#speech gifts#worldbuilding
5 notes
·
View notes
Text
Thinking more abt DR1. The tragedy of the DR1 characters has a unique strength to me, precisely because we know that absent of Junko's Mutual Killing, they all eventually end up getting along pretty decently! Probably one of the most relevant examples for my muse is Makoto's relationship with Maizono-- in settings without the Mutual Killing such as Development Mode and Talent Development Plan, their interactions are nothing but friendly, supportive, and even sometimes a little intimate. It's not difficult to infer that during the single regular year at Hope's Peak, they got along just as well or were moving towards that. And all of that just makes what happens during the main game to the whole cast, not just Makoto and Maizono, even more of a bitter pill to swallow since along with their memories Junko stole even intangible things like relationships. Another example of this is Oowada and Fujisaki: that picture Monokuma (Junko) "dropped" really says it all...
#ooc ramblings.#currently listening to Rats Died like a true dr fan and that inspired me to think abt this (as well as reading DM and TDP scripts)#i think something i might start to lean into more with post-dr1 Makoto is that he is different from the Makoto that stepped into those door#the current Makoto woke up trapped and closed in and blocked at all sides and his immutable tenacity is what helped see him through#and even though he eventually got his memories back thanks to the Future Foundation I can't imagine that those memories are just#normal memories for him. the mutual killing TRULY traumatized him and from his (DR1/post-DR1 Makoto) perspective it was an#immediate progression from stepping into the school to waking up sitting in that godforsaken desk DR3 traps him back in in kibou-hen#i dunno if I'm explaining it well but play the video game SOMA to understand what I'm getting at. it's not the same as in that game#but the principle I'm thinking of is kind of similar...
2 notes
·
View notes
Text
Not entirely sure what the ethics are on posting pictures of someone who’s passed away without their ‘consent’. But we found some old pictures of my grandma today with her stuff, and I’d like to think she would appreciate me rizzing her up to my small community of followers. (Or perhaps that’s just me trying to justify my actions 😂. oh well. I’ll choose to believe it regardless.)
Anyways, here’s my lil grandma. She passed in 2019 after a decades-long battle with multiple myeloma, but she was the light of all our lives and always will be. Frankly, there’s no way I will ever slay this hard at my own wedding. But I am content with that 😊 at least we’ve got good genes.

#personal#not#my face#but close enough#genuine legend. not sure I’d be alive today if I didn’t have her as an example for what raw immutable strength looks like#not a lot of people in my life who necessarily understand what it means to prevail through truly horrific circumstances but this woman??#hundred percent. she died before my own battle had really begun but I’d like to think we’d understand each other a lot better now
6 notes
·
View notes