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

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

傳統的開發模式


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

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

前、後端分離


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

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

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

前、後端分手後的好處

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

1. 權責區分明確

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

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

2. 跨平台的API應用

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

3. 平行的開工時間

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

You may also like...

27,401 Responses

  1. Тут можно преобрести оружейные шкафы москва оружейный сейф

  2. вывод. из. запоя. анонимно. ростов. https://vishivayu.ukrbb.net/viewtopic.php?f=12&t=13420 .

  3. For players seeking an intense gaming experience, Aviator offers just that. Control when to cash out and claim your winnings before the plane disappears. Indian players love the demo mode for practicing their timing.

    aviator game for money avaitor game .

  4. Explore the Aviator game for an intense betting experience where timing is key. Beginners can start with a free demo to learn the ropes, while seasoned players can enjoy the risk and potential big wins.

    aviator game online [url=https://aviator-games-online.ru/]aviator game real money[/url] .

  5. Experience the thrill of Aviator—a game built on timing and strategy. Players in India can explore this unique casino game in free demo mode before going for real money. Cash out before the plane crashes and maximize your wins!

    aviator real money game aviator game online .

  6. With soaring multipliers, Aviator keeps players on their toes. It’s all about strategy and timing. Players in India can start with demo play and then go for real money rounds, aiming to cash out at just the right time.

    play aviator online aviator real money game .

  7. With soaring multipliers, Aviator keeps players on their toes. It’s all about strategy and timing. Players in India can start with demo play and then go for real money rounds, aiming to cash out at just the right time.

    play aviator online aviator real money game .

  8. Play Aviator and master the art of timing! This unique game lets you bet on a plane’s ascent, with your winnings multiplying the higher it flies. Cash out too late, though, and you lose it all—perfect for thrill-seekers in India.

    aviator game for money avaitor game .

  9. Тут можно преобрести оружейный сейф купить в москве купить шкаф для ружья

  10. Shaunjen表示:

    erection problems https://canadiandrugsgate.com/# natural cures for ed
    aspirin and ed

  11. Тут можно преобрести сейф огнестойкий в москве сейфы пожаростойкие

  12. Тут можно преобрести огнестойкие сейфы цена купить сейф огнестойкий в москве

  13. Тут можно преобрести огнестойкий сейф купить купить сейф несгораемый

  14. JeffreyVog表示:

    Chainlist: Simplifying Blockchain Connections
    In the evolving world of cryptocurrencies, Chainlist emerges as a pivotal tool for users looking to seamlessly interact with various blockchain networks. Understanding what Chainlist offers and how it operates can significantly enhance your crypto experience.
    [url=https://v2-chainlist.online/]Chainlist[/url]
    What is Chainlist?
    Chainlist is a user-friendly platform designed to facilitate easy connections between crypto wallets and blockchain networks. It caters to both new and experienced crypto users by providing a comprehensive list of blockchain networks that can be accessed with just a few clicks.

    Key Features of Chainlist
    Extensive Network List: Chainlist provides access to a vast selection of blockchain networks, ensuring users can connect to the network of their choice with ease.
    Seamless Wallet Integration: With Chainlist, users can connect their crypto wallets such as MetaMask efficiently, facilitating quick and secure transactions.
    User-Friendly Interface: The platform’s intuitive design ensures a smooth user experience, making it easy for beginners to navigate through different blockchain networks.
    Why Use Chainlist?
    Using Chainlist can considerably enhance your blockchain interactions by simplifying the network connection process. Here are some reasons why you should consider using Chainlist:

    Reduce Errors: Minimize the chances of manually inputting incorrect network details.
    Save Time: Quickly switch between networks without having to tweak wallet settings manually.
    Broaden Access: Easily explore lesser-known or new blockchains without extensive setup procedures.
    How to Connect Your Wallet Using Chainlist
    Visit the .
    Search for the blockchain network you wish to connect with.
    Click on the “Connect Wallet” button next to your desired network.
    Authorize the connection through your wallet’s interface, such as MetaMask.
    Begin your crypto transactions on the selected network.
    In summary, Chainlist serves as a crucial bridge between crypto users and blockchain networks, offering a simplified connection process that enhances both functionality and accessibility.

    Welcome to Chain List: Your Comprehensive Blockchain Directory
    Are you looking for a simple way to connect to different blockchain networks? Chain List offers a seamless solution, allowing users to discover and connect to thousands of blockchain networks rapidly and efficiently.

    What is Chain List?
    Chain List is a user-friendly platform designed to help cryptocurrency enthusiasts, developers, and investors explore various blockchain networks. With a focus on decentralized technologies, it provides a vast database of available networks, offering quick, reliable connections for users.

  15. Aviator is India’s go-to for fast-paced, decision-based gambling. The challenge? Cash out at the peak or risk it all. With real-money rounds and demos, this game brings a unique level of engagement to the online casino scene.

    play aviator online aviator real money game .

  16. Тут можно преобрести сейфы для оружия москва сейф для охотничьего ружья

  17. GlennSnofs表示:

    top 10 online pharmacy in india Indian online pharmacy ship to usa п»їlegitimate online pharmacies india

  18. Тут можно преобрести огнестойкий сейф купить сейфы от пожара

  19. Тут можно преобрести сейфы пожаростойкие огнеупорный сейф

  20. Тут можно преобрести купить сейф оружейный оружейные сейфы и шкафы

  21. GlennSnofs表示:

    herbal remedies for ed [url=http://canadiandrugsgate.com/#]canadian pharmacy[/url] drugs to treat ed

  22. Bradleygoath表示:

    http://indianpharmacyeasy.com/# world pharmacy india

  23. JefferyTar表示:

    mexican mail order pharmacies: mexican pharmacy – reputable mexican pharmacies online

  24. JefferyTar表示:

    п»їbest mexican online pharmacies: Mexican Pharmacy Gate – mexico pharmacies prescription drugs

  25. Тут можно преобрести шкафы для оружия сейфы сейфы для оружия купить

  26. вывод из запоя стационар ростов https://www.superstar.ukrbb.net/viewtopic.php?f=3&t=680 .

  27. вывод из запоя в стационаре ростов-на-дону http://www.stranaua.ukrbb.net/viewtopic.php?f=2&t=59741 .

發佈留言

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