#understanding Immutability
Explore tagged Tumblr posts
techtalksonthego · 2 years ago
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
leifyposting · 3 months ago
Text
it’s 1am and i’m supposed to be asleep but instead i am here on tumblr to tell you that this:
Tumblr media
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
67 notes · View notes
captainjonnitkessler · 9 months ago
Text
QAnon's barbarous "do your own research" vs our glorious "read the theory"
38 notes · View notes
seaslimes · 9 months ago
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.
16 notes · View notes
a-sketchy · 1 year ago
Text
ohhhhhhhhh “sea of thy soul” = personal unconscious, “sea of souls” = collective unconscious. hey guys did you know that persona is kinda jungian
39 notes · View notes
loverboybrightsideghost · 1 year ago
Text
Tumblr media
zoscar, as promised 😌
31 notes · View notes
twinklingwatermellon · 1 year ago
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
oury-boros · 11 days ago
Text
we stay loving gender essentialism i guess
5 notes · View notes
ceramicbeetle · 2 years ago
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?
52 notes · View notes
mitathrone · 4 months ago
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..
4 notes · View notes
umbral-stigmata-unbound · 10 months ago
Text
.
4 notes · View notes
vamptastic · 6 months ago
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.
2 notes · View notes
thatiswhy · 6 months ago
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.
4 notes · View notes
professorlegaspi · 1 year ago
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
5 notes · View notes
tsuzukerukoto · 1 year ago
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...
2 notes · View notes
ari-kari · 1 year ago
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.
Tumblr media
6 notes · View notes