#Dependency Inversion
Explore tagged Tumblr posts
Video
youtube
Dependency Inversion Principle Tutorial with Java Code Example for Students
https://youtu.be/_v7JVQsRkN4
Hello friends, new #video on #dependencyinversion #solidprinciples with #Java #coding #example is published on #codeonedigest #youtube channel. Learn #dip #dependency #inversion #principle #programming #coding with codeonedigest.
@java #java #awscloud @awscloud @AWSCloudIndia #Cloud #CloudComputing @YouTube #youtube #dependencyinversionprinciple #dependencyinversion #dependencyinversionvsdependencyinjection #dependencyinversionprinciplejava #dependencyInversionprinciple #dependencyInversionprinciplesolid #dip #dipprinciple #dependencyInversionprinciple #interface #dependencyInversionjava #solidprinciples #solidprinciplesinterviewquestions #solidprinciplesjavainterviewquestions #solidprinciplesreact #solidprinciplesinandroid #solidprinciplestutorial #solidprinciplesexplained #solidprinciplesjava #singleresponsibilityprinciple #openclosedprinciple #liskovsubstitutionprinciple #dependencyInversionprinciple #dependencyinversionprinciple #objectorientedprogramming #objectorienteddesignandmodelling #objectorienteddesign #objectorienteddesignsoftwareengineering #objectorienteddesigninterviewquestions #objectorienteddesignandanalysis #objectorienteddesigninjava #objectorienteddesignmodel #objectorienteddesignapproach #objectorienteddesignparadigm #objectorienteddesignquestions
#youtube#dependency inversion#dependency inversion principle#solid principles#solid#dependency principle
2 notes
·
View notes
Text
Building Scalable and Maintainable Code with Modular Architecture
View On WordPress
#ahsan mahmood#aoneahsan#Best practices#Code organization#Dependency Inversion#Independent modules#Maintainability#Modular Architecture#Scalability#Single responsibility principle#Software development#Testability#zaions
0 notes
Text
Bestie Deficiency
[First] Prev <–-> Next
#poorly drawn mdzs#mdzs#a-qing#xue yang#xiao xingchen#Xue yang is cold because cold blooded creatures can't generate their own body heat#I am skipping over drawing the stories they tell due to the fact this arc is already really dragging#but I think they are very key in understanding the yi-city characters#Even if they are stories that really bring down the slumber party vibes A-Qing was hoping for.#I mentioned some of my thoughts in the tags of no. 76 but to continue on a bit more#I think xxc and xue yangs stories inversely mirror each other on the meaning of sacrifice and what it means to 'deserve' something#to xue yang he has only ever sacrificed - therefore he is in his right to 'deserve' what he wants. And he wants everything.#xxc leaves song lan thinking its the best course of action to atone but my god. No it wasn't. Poor communication crown actually goes to xxc#but it's what xxc he feels he deserves - continued sacrifice to atone. He wants to want nothing.#both are very stuck in the past in ways that are not actually accounting for their actions#It's easy to look at xue yang and go 'dang you need to get over your childhood trauma'#but that very much ignores that fact that we - real human beings - define so much by our childhood pains.#Growth is having to come to terms with it and trying to move past it...and not everyone is ready for that.#I have a lot of thoughts on that matter but I'll let it be for now.#Anyways. Amiguito appears to be one of those words whos meaning change depending on speaker and contextual factors#So as far as I can tell it slides around on the scale on romantic and platonic. Which works for this dynamic. I think.#Native Spanish speakers I am so sorry.
746 notes
·
View notes
Text
feel like some enterprise "java"-inflected developers and/or "medium writers who purport to talk about code patterns" live in an alternate world where their goal is to create Intricate Structures and not. to ship a fuckin product.
#“dependency inversion principle” well yeah ig this would be useful if i was in an infinite white void devoid of particulars#unforchies... sometimes i have to deal with an echo of an echo of an echo of “real world concerns” so i need particulars that exist. sowwy
74 notes
·
View notes
Text
my two ultrakill moods:
“oh no, this horrifying killing machine is adorable”
“oh no, this horrifying killing machine is hot”
#sometimes both it depends on the robot#anyway yeah just thinking about this I guess#inverse problem.txt
71 notes
·
View notes
Text
Happy thanksgiving everyone!
#out of context slayers and lost universe#slayers#lina inverse#gourry gabriev#hopes of a great turkey or pizza feast depending on which timeline you’re in#thanksgiving
15 notes
·
View notes
Text
Post: gender identity is complicated and everyone has their own unique relationship with it. Presentation does not equal gender and not everyone likes strict labels!
Me: Yeah! True! This is great so far please don't turn this into-
Post: I will now use this as an excuse to obsessively list every possible way in which a lesbian ends up with a man. I will equate butches and gnc women to men, completely missing my own point when I said presentation doesn't equal gender. Also being transmasc is always the same as being male aligned btw. I'm going to find a way to fit dissociative identity disorder into this for some reason. I'm also going to be really condescending and talk like no lesbian has ever understood the concept of gender noncomformity, ambiguity and complex relationships to gender. No, I never talk this way about gay men and nblm why do you ask
#it's like. idk. for a certain niche group of people ''complex gender identity'' just means ''maleness included''#yeah nonbinary bigender and genderfluid people can be lesbians obviously and a lot of relationship nuance will depend...#... on the specific people involved. But also gender can be complex and nuanced and strange without involving maleness#why does non standard gender expression always seem to mean proximity to manhood for a certain group of people and why are they obsessed...#with attaching lesbians to men but never the inverse?#also do we forget that unaligned people exist. Like did we forget there are people who are attached to neither#or do we just have 4 genders now. boy girl nb(boy) and nb(girl)#really frustrating to genuinely consider no longer calling myself transmasc bc people point and go MAN! BOY!#even though part of the reason the terms transmasc and transfem exist as terms is to cover folks transitioning in a specific direction...#...without necessarily being the opposing binary gender#like idk. you can be cool with complex gender without also being gross towards lesbians who set reasonable boundaries regarding men#yes including trans men#Obligatory disclaimer this is a specific niche kind of post no I don't think everyone talking about nonstandard gender expression is doing.#... secret anti-lesbian dogwhistle posting there's just a specific brand of weirdo who are always strange about this
6 notes
·
View notes
Text
(trips and spills black hair/white hair ships all over your dash) ah shit ah fuck-
#art i made#how tf do i tag this???#shiguang#vanoe#inuokko#lumerene#elythorns#putting elythorns feels like cheating cuz elysium has like 3 different hair colours but theyre here because i say so#binge rewatched the promised neverland s1 on a plane when i was like 80% done with this so uh#let the records show norray wouldve been the unofficial 6th entry in this collection#this is a very target audience of me and me only kinda thing but like#can we talk about how noe archiviste and cheng xiaoshi are basically just colour palette inversions of each other#kindhearted naive counterpart to a more jaded partner + abandonment trauma#+ powers that involve experiencing other peoples memories in traumatically visceral ways#also! fun fact but noe vnc and thorns arknights have the same japanese va because i am nothing if not consistent apparently#ALSO also depending on how you count it 2-4/5 of these guys are doomed by the narrative. not sure whats the trend here#i mean elythorns and lumerene are doomed in the is3 timeline but to be fair everybodys kinda doomed in the is3 timeline#NO WAIT IM STUPID elythorns is doomed either way cuz of the. terminal rock cancer situation#so caught up in the euphoria of iberia gang that for a minute i lived in a world where oripathy didnt exist
11 notes
·
View notes
Note
*applies your inverse function*
becomes the identity function on my domain
#or the identity on my codomain#depends which side of me you applied my inverse to#math#mathblr#asks
10 notes
·
View notes
Text
Dependency Inversion Principle Tutorial with Java Program Example for Beginners
https://youtu.be/_v7JVQsRkN4 Hello friends, new #video on #dependencyinversion #solidprinciples with #Java #coding #example is published on #codeonedigest #youtube channel. Learn #dip #dependency #inversion #principle #programming #coding with codeonedi
Dependency Inversion Principle is the fifth and final Solid principle. Robert C. Martin’s definition of the Dependency Inversion Principle consists of two parts. High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions. An important detail to note here is that high-level and…
View On WordPress
#dependency inversion#dependency Inversion java#dependency inversion principle#dependency inversion principle java#dependency Inversion principle solid#dependency inversion vs dependency injection#dip#dip principle#interface#liskov substitution principle#object oriented design#object oriented design and analysis#object oriented design and modelling#object oriented design approach#object oriented design in java#object oriented design interview questions#object oriented design model#object oriented design paradigm#object oriented design software engineering#object oriented programming#open closed principle#single responsibility principle#solid principles#solid principles explained#solid principles in android#solid principles interview questions#solid principles java#solid principles java interview questions#solid principles react#solid principles tutorial
0 notes
Text
seeing ppl hate on gil and say that they hope they completely change gils personality/storyline makes me feel like ppl did not understand him, both as a “person” and as a character. like gen 1 had VERY obvious racial commentary in it and though its debatable how well they handled it, its one of the biggest themes in the show so i think gil and lagoona’s relationship was pretty important.
most of the complaints ive seen about gil are about him being racist. personally, i cant really remember any instances of him actually holding racist views [i have only seen the web series and a couple of the movies, so maybe im missing out on a huge thing that happened]. i can only remember him being worried about what his parents, who were racist, would think about his relationship with lagoona. gil is, what, 16? his parents are a HUGE part of his life still, so i dont blame him for being scared of them and what they think. i mean, if his parents get pissed off at him enough, he could not only lose his parents—who, at that point in his life, are likely huge pillars of both his financial and emotional support systems—but also get kicked out, which are both terrifying prospects for a teenager. no matter how wrong you know that your parents are, telling them that can feel like a life or death decision [and sometimes CAN BE a life or death decision depending on how shitty your parents are]. but you know what else gil does? he becomes confident enough to actually tell his parents off! as a person, i appreciate that gil is a teenager who is in a tough situation and may not yet feel safe to stand up to his parents. this doesnt mean that i think lagoona was wrong for feeling upset or that gil wasn’t being shitty. imo, the situation was VERY unfair to lagoona and i think that breaking up until gil was ready to be open about their relationship would’ve been the best course of action. i just think the situation and the characters involved are more complex than “gil is MEAN and BAD for NO REASON AT ALL” like how some people seem to see it.
as a character, i appreciate gil and his storyline. i think that this kinda thing is believable and adds some depth to the conflicts, characters, and the world of mh. it would’ve been easy to lump all water monsters together, but its interesting and realistic that there is fighting within species/between similar species*. i also appreciate when topics like bigotry are addressed in ways that dont deal with people as Good or Bad. i think its important for kids to see characters who are discriminatory in some way or who are hesitant to speak up against discrimination since that is a very relatable flaw to have. like i said, gil DOES build the self confidence to speak up against his parents. he grows as a person, and its important to have that kind of growth in media. i think that the current view that a lot of ppl on the left seem to have that being A Racist inherently makes you an irredeemably bad person makes it harder for people to recognize and challenge their own racist biases bc no one likes thinking of themselves as A Bad Person. if bigots are solely represented as cartoonishly evil people, then people will think “but IM not a bad person! therefore i cant be racist!” and not challenge their own bigoted ideas.
i actually hope a similar storyline is carried over to gen 3, if with a little more grace, because i think its an interesting and important story to tell. i think the main problem with the storyline in canon is that gil’s arc took so long to resolve. i know if the show was being realistic, this kinda thing probably would take a while to resolve. but also, this is a kids’ show so it would be more effective to deliver that message in a shorter time frame and with a little more focus on it
#*are salt water and freshwater monsters different species? i have no clue lol. hashtag fake fan#gil webber#lagoona blue#monster high#long post#chum pesters#q#also as someone who was in a mixed race relationship i actually really relate to gil#im korean and my high school ex is white but my ex’s family ADORED me#like when we broke up they were worried that i would stop coming around they like me sm#my parents on the other hand were upset when they found out i was dating a white person#i ended up panicking and pretending to break up w my ex and hid our relationship from them#like a lot of ppl seem to liken their relationship to white [gil] + poc [lagoona] but ppl of any race can be prejudiced#ik poc being prejudiced against white ppl is completely different from the inverse in terms of social dynamic but still: shitty situation#imo i see their relationship in universe as more akin to smth like korean + japanese#like theres a lot of bad blood there but to someone who isnt asian [or a water monster in this case] they seem pretty much the same#but yeah. parents suck sometimes and thats a hard thing to navigate!#especially when you are as dependant on them as a teen would be!
19 notes
·
View notes
Text
Random asura hc of the day: they may not have surnames, but I think they could introduce themselves with their most "important" parent's name. So the one with the most accolades to their name.
So for example, my Qirri introduces herself as Qirri of Pazz, followed by any accomplishments or her place in her krewe, as her father serves as krewe chief on a pretty respectable krewe in Rata Sum. My Vezz would introduce himself as Vezz of Cautti, as while his father is a professor, his mother Cautti and her very popular molecular gastronomy restaurant is more respected in her field.
#gw2 asura#asura headcanons#gw2 headcanons#headcanons#I know they don't do this in the game that's why it's a headcanon#also I think it's a fun inversion of always using a father or mother#it just depends on whom asura society has deemed ''smarter'' or more accomplished
9 notes
·
View notes
Text
I’m soooo ready for tumblr to ditch live so the post button won’t be in my fuckin way all the time on mobile. Ruining my screenshots n shit
#the get-rid-of-it-ability of it is def contingent on the contract they have for it since its like outsourced basically#so depending on if theyre stuck in the contract for a certain period of time or if the contractor is paying tumblr to host their service#then we’re stuck with it for a while. i assume tumblr is paying the contractor rather than the inverse but it could kinda go either way#(could probs figure that out with some basic research but eh idrk)#but yeah if tumblr is paying out the ass for this’feature’ and the time on the contract isnt an issue then that shits getting yeeted#addendum: i do like the cute lil trail the post button does when you drag it around on mobile
0 notes
Text
Sukuna would be a super challenging project partner in school.
Say what you like but he absolutely would be the type of person to expect you to do all the work. That, or he would pretend he didn’t understand and wait for you to get frustrated and do it yourself.
He would be popular, but not in the ��likable” kind of way, but in the same way that kids always love the teacher that (not so secretly) hates them. He despised how people followed him around, trying to hold a conversation. Despite this, it was as if his fellow students were attracted to him like magnets.
Not you though, you didn’t like a man with an ego. You saw him roll his eyes and sleep in class. You saw as he crawled into his desk at the far back of the classroom, spreading his tattooed thighs in an undignified manor.
And when you were paired with him from a dual project? You could cry with frustration.
He would simply raise a brow at you with his arms crossed as you tried to explain what was needed for the assignment.
“Do you… understand?” Sukuna had hardly spoken a word to you, not just in this exchange, but in all your time at the school.
He would simply grunt, smacking his palms on the table, rising from his chair and sliding your page of notes into his hand. “Cool to go?”
How was it he could sound annoyed without you even doing anything to upset him?
“Right…” you sigh.
You would be working together for up to an hour after class twice a week, and as finals approached, you decided you needed to meet once on Fridays as well in the library.
The pink-haired man would hardly spare you so much as a glance as he scrolled on his phone during class and work time.
When you would text, requesting his portion of the project, he would respond hours later with, “I’ll just turn it in myself.”
You would grind your teeth.
No. Way. Absolutely no shot in the world were you going to allow this delinquent to turn in homework correlated with your name inversely bring your grade down.
You would politely insist on seeing (editing) his work, for organizational purposes only, of course. And his response?
“You worry too much”
You near throttled your innocent roommate with anger at his laissez faire attitude after reading his late message one evening.
On one particularly cruel Friday, you were seriously feeling the effects of finals crawling into your brain. You had hardly slept, spilled coffee on your textbook, and experienced car troubles that caused you to be late to class.
Staying to the end of the lecture to apologize to your professor for this lapse, you expected an understanding, “Hey, no worries, life happens, I’ve been there.” And instead received and overtly harsh, “Do you know how much participation counts for in my class? Don’t let it happen again.”
Was it childish? Yes. Was it overly emotional? Also yes. But did ever ounce of your validation come from the adult figures in your life? Of course. So how could you not cry at the knowledge that you had disappointed, let down, upset, one of the professors you had previously admired?
By the time you reached your seats in the library Sukuna was already laid across his own spot, not unlike a jungle cat.
This was the first time he had arrived before you.
Another wave of shame passed your consciousness at the thought of this no-good-trouble-maker showing up to the library with more dependability than you, and huffed a sigh.
Sukuna rolled his neck back down when you sat across from him. As usual, no words passed between you, but he seemed to be observing you closely.
He didn’t pull out his phone, he didn’t grumble responses. No, in fact, be pulled out a notebook and took notes. Finalized an outline for points of contention in his part of the project. And even seemed to consider your own writings (that you had been sending him weekly).
And even as you were starting to rise from your seat, he didn’t race off, groaning as if he had just wasted an hour of his life he regretted to never see again, but rather, stood slowly, and leaned down to try and catch your gaze.
Eventually, you had to meet his eyes, patient beast he was, and as your arms fumbled with your backpack, he just raised an eyebrow and murmured,
“Take care.”
Before he was gone.
Imagine your shock when your professor grades the paper and presentation you had been slaving over, after being horrified with the end result due to Sukuna inability to send his part in and after a panicked email about how unsportsman your teammate was, begging to please please please take into consideration the difference between students, with a glowing review, claiming that it was always a privilege to read “the two of y’all’s work”.
Turns out the delinquent who slept in class, avoided contact with fellow students, never so much as attempted to prove his understanding of the project, and stared blankly at you as your “tutored” him on the subject, was neck and neck with you as top student in class.
Son of a bitch.
#jujutsu kaisen#jujutsu kaisen x reader#jjk sukuna#sukuna au#ryomen sukuna x reader#ryoumen sukuna#jujutsu kaisen sukuna#sukuna x reader angst#sukuna x reader#sukuna x reader fluff#jujutsu sukuna#sukuna ryomen#sukuna fluff#ryomen sukuna#sukuna#jjk fluff#soft sukuna#sukuna x y/n#sukuna x you#sukuna x oc#jjk x y/n#jjk imagines#sukuna imagine#sukuna oneshot#sukuna angst#sukuna comfort#jjk angst#jjk fanfic#sukuna fanfic#jjk x reader
1K notes
·
View notes
Text
HELLO YES T H ANK YOU FOR THIS
I was like holy shit am I the only one who sees how codependent he is. It isn’t a deliberate sense of harm so much as just him trying to be pacifist and affectionate, often trapping himself in a cycle of, subconsciously, fear of a lash out just as much as the princess is.
In Damsel, Burned Grey, HEA: You nailed it; I genuinely have nothing else to add. Excellent. Thank you.
Razor, MOC, Fury: You died horrifically and he was just one of many voices who arrived after & often experiences continuous slaughter therein. He notably discusses [paraphrasing this] MOC as cruel and merciful for even an ounce of kindness. He is literally grasping at straws for justification of why he is chaining himself to someone who’s hurt him and he’s hurt in turn so irreparably with the insistence that he needs to fix it. He’s similar to Broken in idolization & power; it’s devotion to someone with that over you. He MUST alter the script not only to break the cycle, but to SURVIVE. Yes, Smitten is a flawed survival voice. He just wants the bloodshed to stop.
Thorn: ABSOLUTELY CRUCIAL to his development. She is inverted Damsel. Damsel is his worst; it’s where he makes it horrible for everyone including himself by insisting he has control over the situation. In Thorn, he actually suits her needs and reads her signals properly as a cry for help (both physical & psychological, because let’s be honest Thorn is HELLA mental illness coded). She, like him, is begging to break the cycle and survive.
Much in the same way that Smitten is underappreciated as a survivalist, Thorn is indeed one of the Ferals™️ (Beast/Den, Witch/Thorn, & Wild). Everyone within that path are stripped of their perceived humanity, and have adapted to overcome it by gaining claws and teeth (Thorn still has hers; they’re just hidden beneath the guise of civility). She understands that you need to put your differences aside to get out.
Smitten, in this case, has understood the way that Witch operates. She is distrustful for a clear and obvious reason: you lie and turn to violence once she’s vulnerable. The blade exchange is a method of empathetic sacrifice when it gets right down to it — you’re showing that you’re not a threat. But she can’t trust you, despite longing for that to be the truth. So when it shows that you were serious about trying to be better, you’ve both went in for the kill and created a cycle where no one wins.
Thorn is, in the end, the Truth™️ Smitten is seeking. She proves everything that he’s fighting for, the real “happy fairytale story.” She’s a woman caught in a self-imposed snare who is actively wants help and reconnection. She has been molded to think critically of the situation, and still wants to be with you. She sets clear and vocal boundaries with you, which Smitten NOTES are clear and vocal (“she trusts us! She trusts us! We should be honored to gain even an ounce of it from a maiden so guarded” — I AM NOT saying that Damsel is “wrong” for not setting them; she does not know how). He actively defends her against the threats she cannot see while letting her take control, because she has a voice and he knows it. You can leave together seamlessly and break the situation to your will. You communicate. You both get what Smitten knows she wants and she doesn’t know how (“this one years for connections she thinks she doesn’t deserve”). She is the antithesis of HEA & Damsel. She’s aware. She’s the situation which proves everything Smitten is fighting for. If you slay her, you are bound for eternally. You both have to stop fighting and team up.
I have… Soooo many thoughts about HEA vs Thorn (notably, on the poster, Thorn holds the blade close to her chest wherein HEA actively flicks it away) and their situations with Smitten. Smitten is deeply psychologically complex and reacts to setting without understanding of Her unless it’s blatantly clear. Tl:dr someone needs to get this man some therapy and help him istg. He’s phenomenal when he’s able to read the situation and earthshattering when he is not.
Voice of the Smitten is a coping mechanism. (and so are the other voices)
The same thing applies to the rest of the voices, yes. But for my sanity, today, let's just talk about Smitten[I am ill about him].
Smitten is fixated on the Princess and on appeasing Her because he's born out of a belief that She's their only way to happiness and safety.
In Damsel's chapter 1, LQ establishes for themself that the Narrator is not a safe nor trustworthy person, but unlike Prisoner's ch1, instead of learning to be generally cautious and adopting an idea that there's no one they can fully trust, Quiet puts all of their trust into the Princess.
I strongly believe that, in order to shield themself from a dangerous, unclear, and scary reality, LQ dives into a sort of... 'fairytale' scenario. And that scenario, by extension, becomes the backbone of Smitten's whole worldview. He, just like the rest of the voices, is born out of a need for safety and control, and he knows of it as his purpose and his yearning. His mindset works as a mechanism that protects Quiet from a state of intense stress and discomfort.
So then, what is this mindset, exactly?
Well, for Smitten, expectations of certain roles appear. Roles that everyone has and needs to uphold: The Shining Knight, the Helpless Damsel, the Villain that's keeping them apart.
"Then you should know that we and the Princess are in love and the four of us will be foiling any and all assassination attempts you've got in the works."
These roles bring a sense of comfort. He has this vision of what the world is supposed to be, of what he's supposed to be. Fairytales always have happy endings, so with this vision, there comes a promise of everything working out.
"If he just makes everything go the way it's supposed to, then they'll be safe."
It gives Smitten the role of a protector, someone who controls the situation and wants the best for Quiet, as opposed to the Narrator who has an ulterior motive and clearly just wants to hurt them.
It gives him a sense of control.
So when something goes wrong, it feels like that control is yanked away, and that threatens his and LQ's safety. It takes away his happy ending that he tries so hard to keep.
"We'll get our happy ending, even if it damns each and every person who's ever lived!"
Another thing worth remembering is that the voices and LQ are at least under the impression that they haven't been living for very long. The only experiences they have to go off of, to learn from, are the ones we see in Chapter 1 and then on. To Smitten, the last time things went awry, they died horribly.
So it's no wonder he freaks out and feels like he has to push back for control. And that is also why he sees no problem with killing Quiet's body or even detaching himself from them entirely.
"Don't mind my sacrifice. It's a fair price to pay to give her everything she doesn't know she wants."
He places the responsibility for taking care of everyone on himself. Smitten is firmly under the impression that he "knows better". And he's even proven right a fair amount of times, which only solidifies the idea in his head.
"I told you! There's no life more worth living than that of a true believer!"
"I told you our love was insurmountable!"
But that also means Smitten unintentionally traps himself(and everyone around him) into a box, limiting his potential to just that, a shallow role. And that creates the feeling of inferiority.
His role is all there is to him, so if he can't uphold it, then it means there's something fundamentally wrong with him. It means he's failed.
In fact, Smitten seems to be laser-focused on his own shortcomings, at least when it comes to the Princess.
If She's somehow unhappy with anything Smitten has to offer, then it's not because She did something wrong, or because of some outside factor out of their control(he doesn't want to accept anything being out of his control, even if it would seemingly benefit him). No, it's because Smitten wasn't enough.
He idolizes Her while putting himself down.
"That's because she's perfect!"
It's a bit more complicated with The Long Quiet. On one hand, they are technically one person, but on the other, the voices like to distinguish themselves and seem to have a sense of their own identity.
If we take a look at one of Damsel's third chapters: The Burned Grey, Smitten is very distraught and angry at Quiet, and yet also berates himself at the same time.
"Ah, yes. The mirror. So we can see the monster we've become."
"No, my love! You did nothing wrong! I'm sorry! I'M SORRY, NOT YOU!"
So I think we can assume that it's a mix of both. He may feel angry at LQ but will ultimately blame himself.
Because it's his job to make sure everything went smoothly. It's his job to make sure that She was happy, because if She's happy – they're happy and they just threw all of his work away, but he was supposed to stop them. He was supposed to keep them happy.
He was supposed to keep them happy.
#slay the princess#stp#stp analysis#me when I scream about Thorn I’m so sorry#as a mentally ill disabled advocate with experience in codependent relationships I am SO TIRED of the misinterpretations#of both Thorn and Smitten#she literally wants exactly the same thing he does she just thinks she’s unworthy. Smitten disproves this.#if people would READ THE GAME CRITICALLY A BIT MORE I AM#I am not normal about this and will not even pretend#but tl;dr from a feminist perspective of dual trauma and role of caretaker/dependent you are spot fucking on#HEA is codependent. Thorn can indeed become interdependent with time. They are inverses and they are both so valid#sapphic's shenanigans
156 notes
·
View notes
Text
Инверсия контроля и Внедрение зависимостей (IoC и DI)?
Инверсия контроля (она же инверсия управления или inversion of control) подразумевает ослабление связей между объектами в программе и передачу управления потоком выполнения фреймворку.
Ослабления связей между объектами
Существует два класса: Person (человек) и Dress (платье). Человеку нужно носить одежду и мы можем дать ему платье следующим образом:
class Person { private Dress clothes = new Dress(); }
Вроде всё получилось, но теперь этот человек может носить только платья. А если ему придётся надеть что-то другое?
Это сильная зависимость. И её можно ослабить, написав интерфейс:
interface Clothes { //какие-то методы одежды }
Далее, классом Dress реализовать данный интерфейс:
class Dress implements Clothes { //какие-то поля платья }
И заменить класс Dress у поля Person на интерфейс Clothes:
class Person { private Clothes clothes = new Dress(); }
Теперь, если мы захотим одеть человека во что-нибудь другое, мы можем написать новый класс, скажем, для костюма, реализовать им интерфейс одежды и просто передать человеку:
class Suit implements Clothes { //какие-то поля костюма }
class Person { private Clothes clothes = new Suit(); }
Отлично, теперь наш код стал гибче, но осталось исправить ещё одну вещь.
Категорически не рекомендуется создавать необходимые объекты через new внутри других классов. Вместо этого надо принимать объекты извне. Для этого используются конструкторы или сеттеры.
class Person { private Clothes clothes; //конструктор public Person(Clothes clothes) { this.clothes = clothes; } //сеттер public void setClothes(Clothes clothes) { this.clothes = clothes; } }
И после этого объект Person можно будет создать в главном классе, который является точкой начала выполнения программы:
public class Main { public static void main(String[] args) { //создали человека в платье Person person = new Person(new Dress()); //переодели человека в костюм person.setClothes(new Suit()); } }
Передача объектов внутрь других объектов и называется Dependency Injection (внедрение зависимостей)
Передача управления фреймворкам
Без фреймворков программист сам решает что, где, и в какой последовательности работает. В ином случае, уже фреймворк решает, что и когда заработает в коде (чаще всего это реакции на действия пользователей web-приложений), а программист пишет код только там, где дозволено (в контроллерах, сервисах и пр.).
Ну вроде понятно.
#студент бормочет#инверсия контроля#внедрение зависимостей#инверсия управления#inversion of control#dependency injection#di#ioc#у тамблера странно работает выделение текста цветом - цвет иногда съезжает#и это БЕСИТ#Я ПЯТЫЙ РАЗ РЕДАКТИРУЮ ПОЧЕМУ ТЕКСТ НЕ ХОЧЕТ БЫТЬ ФИОЛЕТОВЫМ
1 note
·
View note