Onuah Gift (@Tha_Mathematics) header
Onuah Gift (@Tha_Mathematics) profile picture

Computer Scientist | iOS Developer | Introvert | Anime Lover ๐Ÿ’• | Podcaster

Lagos, Nigeria
Joined January 2018
Photo by Onuah Gift (@Tha_Mathematics)Photo by Onuah Gift (@Tha_Mathematics)Photo by Onuah Gift (@Tha_Mathematics)Photo by Onuah Gift (@Tha_Mathematics)
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: 1) User interaction Both patterns start when a user interacts with the application's UI, which is managed by the View. 2) Event handling 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. 3) Business logic 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. 4) Model update 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. 5) UI updates This is the main area where the two design patterns differ. In the MVC pattern, the View listens for changes in the Model and updates itself accordingly. In MVP, the Presenter plays an active role. It fetches the new data from the Model and directly updates the View to reflect those changes. MVP was established after MVC to improve on the drawbacks of MVC. Both patterns aim to separate concerns and improve maintainability. However, their procedure diverges when it comes to who handles the business logic and how the UI gets updated. MVC is typically less complex but it can have tightly coupled components. Whereas, MVP is generally more complex but has more decoupled components. ~~ A big thank you to our partner Postman who keeps our content free to the community. Did you know Postman just released a package library feature that enables reusable scripts (I.e., change once, use everywhere)? Significantly faster development. Check it out: drp.li/package-library-postmโ€ฆ
2
89
3
351
42,346
If you want to learn... -Coding -Excel -A new language -Video Editing -Graphic Design -Data Analysis -Copyrighting -Cyber Security -Web Dev & more ...and need free resources, training, hardware (laptop) let us know. RT & Reply with what you need. Program starting shortly.
3,513
2,612
468
4,203
527,149
Claim your free .OL name before someone else here: oca.sh/teragon.ol
7
Onuah Gift retweeted
Huge $100 giveaway to celebrate my partnership with VendX โœ๏ธ To win ๐Ÿ‘‡ - Like & RT - Follow me & @VendXNFT - Tag 3 friends ends in 48 hours ๐Ÿค
1,047
614
4
609
24,049
GoArt Keys | 13/10 ๐Ÿ“… - First collection of GoArt. - FREE MINT. - 5555 SUPPLY. - All Utilities will be announced over next few days. - 3 Rarities (UTILITY TBA)๐ŸŒ€ premint.xyz/goart-metaverse-โ€ฆ
1,036
9,780
133
10,038
Onuah Gift retweeted
// ACCESS GRANTED kprverse.com
1,016
6,160
146
8,421
Onuah Gift retweeted
KEEP. PROTECT. REIMAGINE. Will you be chosen?
1,296
2,203
66
3,541
The Space Cadets Companions are taking the same strides as their handlers and returning to earth!๐ŸŒ Some cadets didn't successfully return, therefore new handlers are needed๐Ÿฆฎ Sign up for the companions #FreeMint today: premint.xyz/Companions
232
2,156
5
2,239
โš”๏ธ 6 DAYS UNTIL MINT! โš”๏ธ This is your last chance to get a WL spot!! Join below! ๐Ÿ‘‰premint.xyz/purgeinventory/ MINT INFO: โ€ข WL MINT: FREE โ€ข PUBLIC MINT: 0.007 $ETH โ€ข MINT DATE: October 2, 9 AM EST Turn ON post notifications!๐Ÿ”” #purgeinventory #NFT #Freemint
207
2,269
3
2,298
Everybodys waiting... Your patience will be rewarded ๐Ÿ”œ. NOTIFICATIONS ON!
51
802
3
920
Thanks for 22,000! Here's another 1/1 Somebody to usher in spooky szn ๐ŸŽƒ
40
586
1
701
Welcome to the Golden Age in Etherus! โœจ Let's celebrate our 1k Followers Milestone by giving away 3x Mecha Hound + 3x Mecha Apes on this post! Retweet, Like & Tag 3 Friends and comment #GoldenMechARMY. Public MINT is still LIVE at mechaapeyc.com! โœจ
93
110
3
150
โฒ For the early ones, boing boing ๐Ÿƒ Supply: 900 premint.xyz/the-frogs-nft/
92
801
819
#TENGOKU Sparkle in her eyes, bring TENGOKU girls back home, infuse your soul and make them alive in the metaverse. Retweet and tag 3 friends amazed by them with your comments of TENGOKU girls ๐ŸŽ10โœ–๏ธTENGOKU WL 48Hโฐ Premint๏ผšpremint.xyz/tengoku/
156
129
6
171
๐Œ๐”๐‘๐ˆ๐‚๐€ ๐๐„๐„๐ƒ๐’ ๐˜๐Ž๐” ๐Ÿ‡บ๐Ÿ‡ธ ๐–๐ž ๐š๐ซ๐ž ๐ฅ๐จ๐จ๐ค๐ข๐ง๐  ๐Ÿ๐จ๐ซ ๐œ๐ซ๐ž๐š๐ญ๐ข๐ฏ๐ž ๐œ๐ข๐ญ๐ข๐ณ๐ž๐ง๐ฌ ๐ญ๐จ ๐Ÿ๐ข๐ง๐ ๐ญ๐ก๐ž ๐ง๐š๐ฆ๐ž ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ง๐ž๐ฐ ๐œ๐š๐ฉ๐ข๐ญ๐š๐ฅ ๐จ๐Ÿ ๐Œ๐ฎ๐ซ๐ข๐œ๐š ๐Ÿ› ๐Œ๐จ๐ฌ๐ญ ๐ฐ๐ญ๐Ÿ ๐ง๐š๐ฆ๐ž๐ฌ ๐ฐ๐ข๐ฅ๐ฅ ๐›๐ž ๐ซ๐ž๐ฐ๐š๐ซ๐๐ž๐ ๐Ÿ›‚ #MuricanContest #MMGA
37
27
1
85