👉 เมื่อเราได้รู้จัก MVC ไปกันแล้ว..มันยังมีอีกโมเดลหนึ่งที่สำคัญในการเขียนโปรแกรมเช่นกันนะ นั่นก็คือ… MVVM นั่นเอง!!
.
แล้วมันคืออิหยังงง?? เหมือนหรือต่างกับ MVC รึป่าวนะ หากพร้อมแล้ว มาหาคำตอบกันได้ในโพสต์นี้เลยจ้าาา
.
🌈MVVM ย่อมาจาก Model-View-ViewModel พัฒนามาจาก MVC โดยจะแยก View ออกจาก Model เพิ่ม ViewModel ขึ้นมาเพื่อเก็บข้อมูลทั้งหมดที่ View ต้องการ โดยทั้งสองจะส่งผลซึ่งกันและกัน หากมีอันไหนเปลี่ยนแปลง อีกอันก็จะเปลี่ยนแปลงตาม
.
👩🔧 Model
เหมือนกับ MVC มีหน้าที่จัดเก็บ และจัดการกับข้อมูลต่าง ๆ ภายในโมเดล
.
✨ View
เป็นส่วนการแสดงผล ซึ่งใน MVVM จะแยกกับ Model อย่างชัดเจน เน้นการแสดงผลอย่างเดียว ส่วน Logic ต่าง ๆ เป็นหน้าที่ของ ViewModel
.
👨💻 ViewModel
เป็นส่วนที่แปลง Logic ต่าง ๆ ให้แสดงบน View ได้ ซึ่ง ViewModel เปรียบเสมือนสมองของ View นั่นเอง โดยจะมี Data Binding เพื่อควบคุมการติดต่อระหว่างทั้งสอง เมื่อส่วนใดมีการเปลี่ยนแปลงจะส่งผลถึงกันและกัน
.
🌟 ข้อดีของ MVVM
- แยกส่วน Logic ออกจากการแสดงผล
- ง่ายต่อการบำรุงรักษาและทำการทดสอบ
- สามารถเขียน Unit Test Case สำหรับทั้ง ViewModel และ Model โดยไม่ต้องกังวลในส่วน View
- เหมาะกับการพัฒนาเว็บหรือแอปที่มีการเปลี่ยน UI บ่อย ๆ เพราะไม่กระทบกับส่วน ViewModel
.
หวังว่าจะเป็นประโยชน์กับเพื่อน ๆ นะคร้าบบบบบบ 🥰
.
💥หากใครอยากอ่าน MVC แอดเคยสรุปไว้ให้แล้ว คลิกลิงค์ด้านล่างแล้วไปอ่านกันได้เลยจ้า
https://www.facebook.com/borntodev/posts/4245182842206643
.
Source : https://andrewlundy.hashnode.dev/software-architectural-patterns-mvvm , https://www.guru99.com/mvc-vs-mvvm.html
.
borntoDev - 🦖 สร้างการเรียนรู้ที่ดีสำหรับสายไอทีในทุกวัน
mvc data 在 軟體開發學習資訊分享 Facebook 的最讚貼文
NT 590 特價中
課程已於 2021 年 5 月更新
從這 57 小時的課程,你會學到
✅ 跟著一位曾做過 Pivotal 客戶的以Spring 資源顧問,曾於 Spring One上發表了演講的講師來學習 Spring 框架。
✅ 逐步學習如何使用 Spring Framework 5 和 Spring Boot 2 開發應用程式
✅ 你將學習如何運用最佳實踐,如 SOLID OOP、GitHub、測試驅動開發和持續整合測試
✅ 你將了解如何使用 Hibernate 5 和 Spring Data JPA 存取資料
✅ 使用 Spring Framework 5 和 MongoDB 構建端到端的 Reactive 應用程式
✅ 學習有關使用 Spring Framework 5 進行 Reactive 程式設計
✅ 使用 Spring MVC 建構 Web 應用程式
✅ 了解如何在 Docker 容器中運行 Spring Boot 應用程式
✅ 訪問 Spring Boot 應用程式 Cookbook
https://softnshare.com/spring-framework-5-beginner-to-guru/
mvc data 在 ienaeliena.com Facebook 的最佳貼文
PROGRAMMER NEEDED
(Fresh Grad & Intern also can apply)
PHP Developer
Responsibilities :-
-To develop applications based on customer’s requirements and specifications.
-To perform User Acceptance Test (UAT) to ensure the application is compliant with user and business requirements.
-To resolve issues regarding to application and project assigned.
-To maintain and support the application.
-To attend training and to do research & development of relevant knowledge and skills
-To ensure that all information system operate according to internal standards.
-To liaise and attend meetings with project owner or person in charge to perform duties or solving issues.
Requirements :-
-Possess at least a Diploma, Advanced/ Higher/ Graduate Diploma, Bachelor’s Degree, Post Graduate Diploma or Professional Degree in Computer Science/ Information Technology or equivalent.
-Required skill set (s): LAMP (Linux, Apache, MySQL, PHP).
-Should have at least experience in web application/ product development using PHP.
-Team player with good analytical skills and self- motivated.
-Working experience in SMS service industry will be an added advantage.
-Knowladge on MVC framework like Zend, Cake PHP, Code Ignitor etc.
Application Developer
Responsibilities :-
-To develop innovative software applications.
-Involve in full lifecycle of application development.
-Support, maintain and document software functionality.
-Perform software technical documentation.
Authority :-
-To develop software applications.
Requirements :-
-Candidate must possess at least a Advanced Diploma in Computer Science/Information Technology or equivalent.
-At least 1 year of experience in software product development.
-Programming skills on Microsoft .NET framework (ASP.NET, VB.NET, PHP, XML, Web service).
-Database design and development and data modeling.
-Fundamentals of object-oriented design and design patterns, data structure, algorithms.
-Experience with multiple operating systems (Windows Server/centOS).
-Knowledge on Linux, Apache, MySQL and PHP will be credits.
-Interested applicants are requested to email in a detailed resume stating working experience, current and expected salary and contact number to: [email protected]
company website : ionnex.com
Company Address :
Unit 15-13, Q Sentral,
2A, Jalan Stesen Sentral 2,
Kuala Lumpur Sentral,
50470 Kuala Lumpur,
Malaysia.
mvc data 在 Where is asp mvc model data stored? - Software Engineering ... 的推薦與評價
In MVC, the model (that is an instance of a model class) is nothing more than an ordinary object. It is initialized by the controller which ... ... <看更多>
mvc data 在 Asp.Net MVC Core - Post Action passes old model data to ... 的推薦與評價
... <看更多>