
FULL STACK DEV #communityTaught | Design Engineer | Photographer | Yogi | Tacos | Ravenclaw | GrowYourOwnFood LoveTheAnimals
RenoNV
Joined January 2022
- Tweets1.1K
- Following4K
- Followers395
- Likes2.5K
ATOM๐ retweeted
Fuck your feelings. But my feelings are precious.
Violence is never ok. But people I don't like should die.
Free speech is when I can say what I want without consequences. But your words have consequences.
You should respect the dead. But I can mock them.
Cancel culture is wrong. Except when it's used on people I disagree with with.
When you do it, it's wrong. When I do it, it's right.
ATOM๐ retweeted
MVC vs MVP architecture โ What's the difference?
MVC (Model View Controller) and MVP (Model View Presenter) are design patterns that separate an application into distinct components.
Both patterns aim to separate concerns, but they have some differences in their approach.
To get a clear picture of how each pattern works and the differences between them, let's break down how they operate:
๐ญ) ๐จ๐๐ฒ๐ฟ ๐ถ๐ป๐๐ฒ๐ฟ๐ฎ๐ฐ๐๐ถ๐ผ๐ป
Both patterns start when a user interacts with the application's UI, which is managed by the View.
๐ฎ) ๐๐๐ฒ๐ป๐ ๐ต๐ฎ๐ป๐ฑ๐น๐ถ๐ป๐ด
The view recognizes user activities that cause events, such as button clicks or keystroke events. In MVC, the View forwards the event to the corresponding Controller. Whereas, in MVP, the View forwards the event to the related Presenter.
๐ฏ) ๐๐๐๐ถ๐ป๐ฒ๐๐ ๐น๐ผ๐ด๐ถ๐ฐ
In both patterns, the Controller and Presenter take over at this stage. Both components process the event and apply any business logic required. They also decide if data manipulation is necessary, and if so they interact with the Model.
๐ฐ) ๐ ๐ผ๐ฑ๐ฒ๐น ๐๐ฝ๐ฑ๐ฎ๐๐ฒ
The process at this stage is again very similar for both patterns. If data changes are required, then both the Controller and Presenter will instruct the Model to update its data. The Model will then handle the data manipulation and persist the changes.
๐ฑ) ๐จ๐ ๐๐ฝ๐ฑ๐ฎ๐๐ฒ๐
๐ง๐ต๐ถ๐ ๐ถ๐ ๐๐ต๐ฒ ๐บ๐ฎ๐ถ๐ป ๐ฎ๐ฟ๐ฒ๐ฎ ๐๐ต๐ฒ๐ฟ๐ฒ ๐๐ต๐ฒ ๐๐๐ผ ๐ฑ๐ฒ๐๐ถ๐ด๐ป ๐ฝ๐ฎ๐๐๐ฒ๐ฟ๐ป๐ ๐ฑ๐ถ๐ณ๐ณ๐ฒ๐ฟ. In the MVC pattern, the ๐ฉ๐ถ๐ฒ๐ ๐น๐ถ๐๐๐ฒ๐ป๐ ๐ณ๐ผ๐ฟ ๐ฐ๐ต๐ฎ๐ป๐ด๐ฒ๐ ๐ถ๐ป ๐๐ต๐ฒ ๐ ๐ผ๐ฑ๐ฒ๐น ๐ฎ๐ป๐ฑ ๐๐ฝ๐ฑ๐ฎ๐๐ฒ๐ ๐ถ๐๐๐ฒ๐น๐ณ ๐ฎ๐ฐ๐ฐ๐ผ๐ฟ๐ฑ๐ถ๐ป๐ด๐น๐. In MVP, the ๐ฃ๐ฟ๐ฒ๐๐ฒ๐ป๐๐ฒ๐ฟ ๐ฝ๐น๐ฎ๐๐ ๐ฎ๐ป ๐ฎ๐ฐ๐๐ถ๐๐ฒ ๐ฟ๐ผ๐น๐ฒ. It fetches the new data from the Model and directly updates the View to reflect those changes.
๐ ๐ฉ๐ฃ ๐๐ฎ๐ ๐ฒ๐๐๐ฎ๐ฏ๐น๐ถ๐๐ต๐ฒ๐ฑ ๐ฎ๐ณ๐๐ฒ๐ฟ ๐ ๐ฉ๐ to improve on the drawbacks of MVC.
Both patterns aim to separate concerns and improve maintainability. However, their ๐ฝ๐ฟ๐ผ๐ฐ๐ฒ๐ฑ๐๐ฟ๐ฒ ๐ฑ๐ถ๐๐ฒ๐ฟ๐ด๐ฒ๐ ๐๐ต๐ฒ๐ป ๐ถ๐ ๐ฐ๐ผ๐บ๐ฒ๐ ๐๐ผ ๐๐ต๐ผ ๐ต๐ฎ๐ป๐ฑ๐น๐ฒ๐ ๐๐ต๐ฒ ๐ฏ๐๐๐ถ๐ป๐ฒ๐๐ ๐น๐ผ๐ด๐ถ๐ฐ and ๐ต๐ผ๐ ๐๐ต๐ฒ ๐จ๐ ๐ด๐ฒ๐๐ ๐๐ฝ๐ฑ๐ฎ๐๐ฒ๐ฑ.
๐ ๐ฉ๐ ๐ถ๐ ๐๐๐ฝ๐ถ๐ฐ๐ฎ๐น๐น๐ ๐น๐ฒ๐๐ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐
but it ๐ฐ๐ฎ๐ป ๐ต๐ฎ๐๐ฒ ๐๐ถ๐ด๐ต๐๐น๐ ๐ฐ๐ผ๐๐ฝ๐น๐ฒ๐ฑ ๐ฐ๐ผ๐บ๐ฝ๐ผ๐ป๐ฒ๐ป๐๐. Whereas, ๐ ๐ฉ๐ฃ ๐ถ๐ ๐ด๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐น๐น๐ ๐บ๐ผ๐ฟ๐ฒ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐
but ๐ต๐ฎ๐ ๐บ๐ผ๐ฟ๐ฒ ๐ฑ๐ฒ๐ฐ๐ผ๐๐ฝ๐น๐ฒ๐ฑ ๐ฐ๐ผ๐บ๐ฝ๐ผ๐ป๐ฒ๐ป๐๐.
~~~
๐ฉ If you found this helpful, consider subscribing to our newsletter where we help you level up your engineering and system design skills: drp.li/luc-newsletter-z8lk
A big thank you to our partner Postman who keeps our content free to the community.
๐ POST/CON, Postman's biggest API conference ever is on April 30 - May 1. Check it out: drp.li/post-con-z7tk
anyone else see this on @ThePrimeagen stream? python with braces!! lol what a time to be alive
github.com/mathialo/bython
1
32
Happy New Year Twitter fam. I've taken an extended hiatus but planning to spend a bit more time in the #techtwitter space this year and work on making my dreams a reality. #cheersTo2024
77
ATOM๐ retweeted
Seven days ago, I set out to apply for a product design role at Gumroad
Well, I said I'd leave no stone unturned, and 70+ hours later, I'm proud of what I've accomplished
Hopefully it resonates: jcurve.nz ๐ซก
#buildinpublic
ATOM๐ retweeted
We knew it looked familiar... ๐enva.to/4cV โ
Get yourself an Elements subscription for all your quick rebranding needs.
ATOM๐ retweeted
The letter X will be holding a press conference later today. #TwitterX
ATOM๐ retweeted
๐จ I'm hiring a Senior Software Engineer ๐จ
โ๏ธ GraphQL
โ๏ธPlatform
โ๏ธInfrastructure
โ๏ธJavaScript
โ๏ธAPI development
โ๏ธDevEx
If you're an experienced engineer looking for a role with tremendous impact and growth opportunities, apply today!
jobs.netflix.com/jobs/284967โฆ
Welp I had my first PR merged! It was a simple fix to the documentation of Linux mint, but I've officially contributed to open source! ๐
1
43
ATOM๐ retweeted
Hiring: Compugen Inc - Web Developer
Location: Remote - Canada
buff.ly/3XskwMd
#javascript #jobs #vuejs #nodejs





















