分手之後,過得更好的兩個人

在網頁專案中常會碰到在介面上需透過資料庫提供的資料來進行呈現,這樣的介面在程式開發時通常會透過兩種方法進行, 以下針對上述的兩種方法進行一些工作方式說明與做法上的分享 。

傳統的開發模式


前、後端人員會先針對頁面設計進行可行性的討論,在前端在頁面製作完成後,逐步Release出來給後端工程師,讓後端工程師根據已經製作好的頁面進行施工,他們會在版面中加入後端程式(ASP、PHP、JSP…等),以此方式進行介面設計,最後會在後端工程師處完稿。

上圖的動態網頁版面是指將頁面串接上資料庫(Dynamic),透過資料庫的資料來進行呈現,也就是資料是”活的”,通常前端工程師會在版面中先放入一些假資料,讓後端工程師了解呈現風格,此處的動態不是指動畫,任何在頁面上的互動或動畫,應該是由前端工程師來完成。

前、後端分離


理想的做法是後端人員幾乎不用了解前端介面想如何呈現,所有API為前端人員依據頁面開需求給後端,例如產品目錄頁需要一隻API可以呈現:

  • 商品名稱
  • 價格
  • 顏色
  • 尺寸
  • 依據前端傳入的參數來定義
    • 一次給幾筆
    • 從第幾筆開始給
  • 可透過什麼條件進行篩選

以此方式進行介面設計,最後會在前端開發者處完稿。

前、後端分手後的好處

前、後端合併是傳統的合作模式,當時前端沒有好的方法可以呼叫後端API,所以所有的串接都必須由後端工程師進行協助,而自從前端程式可以透過AJAX的方式呼叫後端程式後,前、後端分離的做法就被廣為應用,他也帶來了以下的優點:

1. 權責區分明確

前、後端分離讓人員可以各自負責自己擅長的部份,前端工程師不會需要碰到伺服器端的程式,後端工程師也不會碰到前端的動畫或版面程式,能將權責清楚的區分出來,不會到時候發生網頁跑版、動畫出問題,但不清楚到底是誰動到了不該動的東西。

所以前、後端分離也就是權責上也更能夠釐清,別小看這個部分,因為這不僅僅讓雙方人員在專案開發上目標更為明確,也能夠讓專案管理變得更輕鬆。

2. 跨平台的API應用

專案中的應用平台有時不僅僅是Web,若有其他平台也有後端的需求,之前開發出來的API規格依然可以生效,就算有修改,也能依照相同的精神調整,對於後端工程師來說工作可以更單純一些。

3. 平行的開工時間

在看到ART Design所設計出來的頁面後,雙方可以迅速討論並且同時開工,不像傳統的專案,後端工程師需要等前端頁面完成後才可以施作,更能夠提升專案上的製作行程。

You may also like...

23,017 Responses

  1. Lewisslund表示:

    Hey are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and create my own. Do you need any html coding knowledge to make your own blog? Any help would be greatly appreciated!

    7slots giris

  2. H?zl? odeme yapan kumarhane Sweet bonanza

  3. JamesZiz表示:

    Latest Diablo news https://diablo-ar.com, detailed game descriptions and guides. Diablo.az – The largest Diablo information portal in Arabic.

  4. AaronTof表示:

    Latest news and analysis of the English Premier League https://epl-ar.com. Detailed descriptions of matches, team statistics and the most interesting football events.

  5. RobertOxync表示:

    Free movies https://www.moviesjoy.cc and TV streaming online, watch movies online in HD 1080p.

  6. WilliamCat表示:

    the most popular sports website https://sports-forecasts.com in the Arab world with the latest sports news, predictions and analysis in real time.

  7. Приветствую. Подскажите, где почитать полезные блоги о недвижимости? Сейчас читаю https://stilnyjpol.ru

  8. Jamesmamma表示:

    Activision and Call of Duty https://activision.call-of-duty.cz leading video game publisher and iconic shooter with a long history market dominance.

  9. seo 마케팅表示:

    I’m looking forward to your future posts!백링크 검사

  10. Earnestsox表示:

    Young Briton Lando Norris https://mclaren.lando-norris.cz is at the heart of McLaren’s Formula 1 renaissance, regularly achieving podium finishes and winning.

  11. DouglasOpero表示:

    The legendary Spanish racer Fernando Alonso https://formula-1.fernando-alonso.cz returns to Formula 1 after several years.

  12. StacySwers表示:

    Jon Jones https://ufc.jon-jones.cz a dominant fighter with unrivaled skill, technique and physique who has conquered the light heavyweight division.

  13. Henrytal表示:

    An article about the triumphant 2023 Ferrari https://ferrari.charles-leclerc.cz and their star driver Charles Leclerc, who became the Formula world champion 1.

  14. OLaneevige表示:

    What’s up to all, how is everything, I think every one is getting more from this website, and your views are fastidious for new users.

    официальный сайт 1го казино

  15. Guvenilir bir kumarhane tavsiye ederim Sweet bonanza

  16. Enhance Your Performance in NURS FPX 4030 Assessments with Our Professional Online Tutoring!

    Understanding NURS FPX 4030 Assessments
    NURS FPX 4030 Assessments are crucial milestones in your nursing journey, designed to ensure you grasp vital healthcare concepts and can apply them effectively. From mastering patient care protocols to analyzing intricate medical scenarios, each evaluation—whether it’s NURS FPX 4030 Assessment 1 or Assessment 3 Applying Ethical Principles—presents an opportunity for you to showcase your knowledge and skills.

    Why Choose Our Nursing Test Assistance?
    Our team of seasoned tutors comprehends the nuances of these assessments and is committed to easing your learning journey. Whether you’re grappling with the basics in Assessment 1 or navigating ethical dilemmas in NURS FPX 4030 Assessment 3, we’re here to offer the assistance and direction you require to excel. Our tutors possess not only expertise in nursing but also familiarity with the unique requirements and expectations of each evaluation, ensuring you receive tailored guidance.

    Personalized Support for Your Needs
    We understand that every learner has distinct learning needs and preferences. Hence, our tutors adopt a personalized approach, adjusting their teaching methods and resources to align with your individual requirements. Whether you prefer visual aids, interactive exercises, or one-on-one discussions, we tailor our assistance to facilitate effective comprehension. Whether you’re grappling with ethical principles in NURS FPX 4030 Assessment 4 or seeking refinement in your skills, our tutors are committed to providing the guidance you need to thrive.

    Expert Tutors at Your Service
    Our tutors are not only deeply knowledgeable in nursing concepts but also adept at navigating the complexities of NURS FPX 4030 Assessments. Whether you’re struggling with deciphering intricate medical terminology, analyzing patient data, or applying ethical principles, our tutors are here to support you every step of the way. With their expertise and guidance, you can approach each assessment with confidence, knowing you have the necessary support to succeed.

    Streamline Your Progress Efficiently
    Recognizing the significance of efficiency in completing your nursing program, we focus on facilitating your progress through NURS FPX 4030 Assessments 2 and 3 efficiently. By offering targeted support and resources, we empower you to complete your BSN and MSN program within a single billing cycle, aiding you in reaching your academic goals more expeditiously.

    Accelerate Your RN to BSN or RN to MSN Journey
    With our strategic, concentrated learning approach designed to optimize efficiency without compromising quality, you can expedite your journey from RN to BSN or RN to MSN. Our tutors are dedicated to helping you realize your academic and professional aspirations within the shortest possible timeframe, ensuring you’re well-prepared for success in your nursing career.

    Maximizing Your Time and Investment
    At Nurs Assessment, we recognize the significance of your time and investment. Hence, we are committed to delivering high-quality, efficient tutoring services that enable you to excel in your NURS FPX 4030 Assessments and complete your course within a single billing cycle. With our support, you can maximize your nursing education and embark on a successful career journey with confidence.

    Ready to Excel?
    Don’t let the challenges of NURS FPX 4030 Assessments stand in your way. Contact us today and take the first step towards mastering your nursing assessments with confidence and efficiency. Our expert tutors are here to guide you every step of the way!

  17. Raymondemimi表示:

    Witness the thrilling story of Jiri Prochazka’s https://ufc.jiri-prochazka-ufc.cz rapid rise to the top of the UFC’s light heavyweight division, marked by his dynamic fighting style and relentless determination.

  18. Derrickdonee表示:

    The inspiring story of the ascent of the young actress Anya Taylor https://queensmove.anya-taylor-joy.cz to fame after her breakthrough performance in the TV series “The Queen’s Move”. Conquering new peaks.

  19. Edwardkic表示:

    An indomitable spirit, incredible skills and five championships – how Kobe Bryant https://losangeles-lakers.kobe-bryant.cz became an icon of the Los Angeles Lakers and the entire NBA world.

  20. GarryVok表示:

    The inspiring story of Zendaya’s rise https://spider-man.zendaya-maree.cz, from her early roles to her blockbuster debut in Marvel Cinematic Universe.

  21. Dariusexews表示:

    Carlos Vemola https://oktagon-mma.karlos-vemola.cz Czech professional mixed martial artist, former bodybuilder, wrestler and member Sokol.

  22. Всем привет! Подскажите, где найти полезные блоги о недвижимости? Пока нашел https://simposad.ru

  23. Davidzoola表示:

    Follow Liam Neeson’s career https://hostage.liam-neeson.cz as he fulfills his potential as Brian Mills in the film “Taken” and becomes one of the leading stars of Hollywood action films.

  24. RobertDix表示:

    Emily Olivia Laura Blunt https://oppenheimer.emily-blunt.cz British and American actress. Winner of the Golden Globe (2007) and Screen Actors Guild (2019) awards.

  25. Richardbop表示:

    Jackie Chan https://peakhour.jackie-chan.cz from a poor boy from Hong Kong to a world famous Hollywood stuntman. The incredible success story of Jackie Chan.

  26. Calvintok表示:

    Try to make a fascinating actor Johnny Depp https://secret-window.johnny-depp.cz, who will become the slave of his strong hero Moudriho Creeps in the thriller “Secret Window”.

  27. RobertSmola表示:

    Fascinating event related to this Keanu Reeves helped him in the role of the iconic John Wick characters https://john-wick.keanu-reeves.cz, among which there is another talent who has combat smarts with inappropriate charisma.

  28. Приветствую. Может кто знает, где почитать полезные статьи о недвижимости? Сейчас читаю https://schuconvr.ru

  29. En iyi kumarhanede buyuk kazan?n Sweet bonanza

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。