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

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

傳統的開發模式


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

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

前、後端分離


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

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

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

前、後端分手後的好處

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

1. 權責區分明確

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

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

2. 跨平台的API應用

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

3. 平行的開工時間

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

You may also like...

53,106 Responses

  1. Charleskepsy表示:

    online pharmacy no prescription needed https://easycanadianpharm.shop/# easy canadian pharm

  2. Kevinnem表示:

    ??????? ????????? ????? ?? ?? ?????????
    ?? ????? ???? ??? ????? ??????? ???????
    ??? ??????? ?????? ?????????? ???? ??? ?? ????? ?????? ?????? ?????????? ????? ???? ??«???? ???» ????? ?? “????? ?????”. ????? ?? ??????? ???? ????? ?????? ??????? ???????? ?????? ??? ????? “?????? ???????” (Zheleznaya Stavka) ??????????? ??????????? ?????? ??????? ???????? ???????/???????? ???????? (Phishing)? ?????? ?????? ????? ???????? ??? ????? ?????? ?? ???.
    ?? ??? ???? ????? ?????? ??????? ???? ???? ??? ??????? ???? ?????? ?????? ????????? ??? ????? – ??????? ?????? ????? – ?? ??? ????? ????? ????? ?????.

    ???????? ?????? ????????
    ?????????? ??? ?? ?????? ????? ??????? ??? ???? ?????? ?? ?????? ????? ????? ??? ???????? ???????.
    ???? ????? ???? ??????? ?? ???? ???????? ???? ????? ?? ?????? ???? ???????? ?? ????? ???????? ?????? ??????? ??? ?????? ???????? ???? ?????? ???????? ?? ????? ?? ??????? ???????? ?????? ?? ???? ?? ????? ?????????.

    ?????? ??? ??????? ??????????
    ???? ????????? «?????? ???????» ???? ??????? ????? “????” ???????? ??????? “???????” (???? ??????? ?????????) ????? ????? ??? ???????? “??????” ?? ?????? ?????? ??????????? ????????? ????? ????????? ????.
    ???? ?????? ??????? ?? “???????? ???????” ?? ???????????? ??? ????? ????? ??????? ??? ????? ???????? ??? ????: ????? ??????? ???? ????????? “???????” – ???? ??? ????????? “??????” – ?? ?? ?????? ??.
    ?????? ?? ????? ????????? ????? ??????? ??????: ?????? ?????? ????? ??????? ????? ??? ????? ??? ?????. ???? ???? ??????? ???? ??? ??????? ??????.

    ??????? ????????? ?? ???
    ?? 1 ????? 2025? ???? ??????? ?? ????????? ??????? ??????? ?? ??? ?????? ???? ?? ???? ?? ?????? ???? ?????? ????? ???? ??????.
    ?????? ??? ????????? 12 ???? ????? ??? ??? ????? ??? ????? ????????? ??? ????? ???? ??? ??????? ??? ????? ?????? ??????? ?? ????????. ??? ????? ?? ??????? ?????? ???????? ????????? ??? ??????? ???????? ?? ????????? ????? ????? ???? ????? ????? ?? ????????? ??? ????? ???? ??????? ????? ?????????? ??????.
    ???? ??? ?? ??? ?? ??? ???????? ?? ??? ????? ???? ??? ????? ?? ????? – ?? ???? ????? ??? ?????? ??????? ?????? ??????? ?????????? ????????? ???????? ????? ???? ??????? ?? ????????. ???? ???? ???? ?????? ?? ????? ?????? ?????? ?????? ?? ???? ????? ??? ??????.
    ???? ????????? ???? ???? ????????? ????? ???????? ?? ??? ????? – ???????? ???? ?????? ?? ???????. ???? ??? ?? ????? ??????? ?????? ????? ??? ???? ???????? ?? ??? ?? ????? ??????? ?? ?????
    ??? ????? ??? ????? ???? ????? ??????? ?? ?????? ????? ?? ?????? ??? ????? ????? ??????? ??? ?????. ??? ???? ???? ??????? ?????? ????.
    ???? ????? ?????? ???? ????????? ????? ?? ??? ??????? ???? ??????? ??? ?? ?????? (?? ???????) ?? ??? ????? ????????? ????? ???????? ??????? ??????? ??? ????? ?? ???????? ?????????.
    ???? ???? ????????? ???? ????????? ????? ??????? ?????? ?????? ????? ????? – ???????? ???? ?? ??? ?? ??? ???? ????? ????.

    ???????? ?? ????
    ?? ???? ????? ??????? ???? ????????? ??????? ????????? ????? ???????? ??? ????? ??? ?????? ??? ???????? ?????? ?????? ???? ???????? ?? ?????? ??????? – ??? ?? ??? ?????? ????? – ????? ??? ?????. ????? ????????? ???? “?????” ?? ????? ??? ???? ????? ???? ??? ????? ????? ?????.
    ??? ??????? ??? ???? ?????? ????? ?? ???? ????? ?? ?????? ????? ?????? ?????: ??????? ?? ?????? ?????? ???????? ??????.
    ??? ????? ??? ???? ??? ???? ?? ??? ????? ??????? ?? ????? ???????? ???????? ???? ???? ????? ?? ??????????. ????? ???? ???? ??????? ????????? ??? ????? ?? ???.
    ?? 2022? ?????? ????? ??? ????? ?????????? ???? ?? ???? ???? ???????? ??? ??????? ?? ???? ??? ?????? ??????? ???????? ?? ???? ???? ?????? – ??? ?????? ?????? ????. ??? ????????? ???????? ???????? ???? ??? ?????? ???????? ??????? ?????? ??????? ?????? ????? ?????????.
    ????? ????????? ??? ????????? ??? ????? ???? ?? ????? ????? ??? ??? ????? ???????? ?????????? ????? ?? ??? ????? ?????? ?? ???????? ?? ?????? ???? ?????? ???? ?????? ????? ????????? – ??? ??? ?????? ???????? ????? ????.
    ???? ?????? ????? ?????? ??????? ??????? ??? ?????? ?? ????? ????? ???? ??????. ???? ?????? ??????????? ?? ??????? ?? ????? ???? ???? ????? ????? – ??? ???? ????? ????? ??????? ???? ????????? ???? ????? ???? 2022 ??? ?? ?????? ?? ????? ??????? ??????? ??????. ??? ???? ????? ?????? ??? ???.
    ?????? ????? ????????? ????? ??????? ??????? ??? ?????? ???? ?? ??? ????? ?????? ???? ?????? ????? ??? ???? ???? ??????? ???? ???? ????? ??20 ????? ???? ?? ?????? ????????? ???? ???? ????? ?? ????? – ??? ??? ????? ???? ????? ??? ????? ?? ?????? (???? ????? ??? ??????? ??? ????).

    ???????? ?? ??????
    ??? ????????? ??????? ?? ??? ???? ???? ?? ????? ???????? ?????????? ????? ?????? ????? ??? ?????. ???? ??? ????? ???????? ???? ??????? ???? ??? ???? ???? ?????? ?? ??? ???????? ??? ??????.

    ?????? ???????? ?? ?????
    ??? ????????? ?? ???? ????? ???? ??? ???? ???? ????? ??? ????? ?? ?? ???????.

    ??? ??? ?????? ?? ?????? ?????????
    ??? ?? ???? ???? ????? ???? ????? ????????? ?????? ?????? ????? ????? ?????? ??? ????????? ?? ??? ???????? ?? ??? ??? ??????. ????????? ???? ??????? ??? ???? ??????? ?? ???.

    ?????? ?? ?????????
    ????? ????????? ???? ?????? ???????? ??? ???? “??? ?????? ????????” ?”????? ?????”.
    ??? ???? ????? ????????? ?????? ????? ??????? ??????? ??????.

    #??????_?????????

  3. Ronaldgibra表示:

    Мне просто горько видеть, как разваливается то, что строилось для людей. Мы реально помогали семьям получить квартиры, строили честную работу, а теперь что? Бест Вей обвиняют в пирамиде, опираясь на чьи-то домыслы. Парфенова не то что не изучила деятельность кооператива, она вообще в кооперативах не разбирается! Все её выводы – это переписка с какого-то старого документа, причём без анализа, без доказательств. Смешно и грустно, когда такие люди могут рушить жизни тысяч людей только потому, что им так сказали сверху. Это не правосудие, это какой-то фарс.

  4. Charleskepsy表示:

    prescription free canadian pharmacy https://easycanadianpharm.shop/# easy canadian pharm

  5. philfodenbnSi表示:

    Phil Foden’s wife, Rebecca Cooke, is a supportive partner in his journey | The family of Phil Foden has always been supportive of his career | Phil Foden’s England journey has been nothing short of spectacular | Phil Foden enjoys fishing in his free time | Phil Foden’s parents nationality is a common trivia question Phil Foden early life and football career.

  6. philfodenppSi表示:

    Phil Foden’s stats continue to impress season after season | The family of Phil Foden has always been supportive of his career | Phil Foden and Rebecca Cooke have been together since their teenage years | Phil Foden’s number 47 represents his journey at Manchester City | Phil Foden’s grandfather is a lesser-known figure in his life story Phil Foden football journey.

  7. philfodenunSi表示:

    The hairstyle of Phil Foden has become a trend among young football fans | Phil Foden’s age surprises many fans considering his achievements | Phil Foden’s wife age is often searched by fans curious about his personal life | Phil Foden’s partner Rebecca Cooke keeps a low profile | Phil Foden’s parents nationality is a common trivia question Phil Foden club and national team highlights.

  8. philfodenekSi表示:

    The net worth of Phil Foden reflects his success in football | Phil Foden’s kids are growing up watching their father shine on the pitch | Phil Foden’s dancing skills went viral on social media | The number of games Phil Foden has played for Manchester City is remarkable | The ethnicity of Phil Foden adds to his unique background Phil Foden latest updates and interviews.

  9. WillieRap表示:

    Mega India Pharm: indian pharmacies safe – MegaIndiaPharm

  10. Davidmoits表示:

    canadian pharmacy without prescription: cheapest pharmacy for prescriptions – promo code for canadian pharmacy meds

  11. MichaelGeony表示:

    online pharmacy no prescription needed https://familypharmacy.company/# Online pharmacy USA

  12. WillieRap表示:

    no prescription required pharmacy: Cheapest online pharmacy – online pharmacy delivery usa

  13. Porterfax表示:

    canadian pharmacy online reviews legitimate canadian pharmacy online canadian pharmacy near me

  14. Davidmoits表示:

    Online pharmacy USA: Online pharmacy USA – family pharmacy

  15. Davidmoits表示:

    world pharmacy india: top 10 pharmacies in india – Mega India Pharm

  16. MichaelGeony表示:

    canadian pharmacy without prescription https://familypharmacy.company/# Best online pharmacy

  17. WillieRap表示:

    xxl mexican pharm: mexican drugstore online – xxl mexican pharm

  18. Porterfax表示:

    easy canadian pharm canadian drug pharmacy easy canadian pharm

  19. Hey this is kind of of off topic but I was wanting
    to know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted to get advice
    from someone with experience. Any help would be enormously
    appreciated!

  20. Charleskepsy表示:

    cheapest pharmacy to get prescriptions filled http://xxlmexicanpharm.com/# xxl mexican pharm

發佈回覆給「eskort moskva_wqOi」的留言 取消回覆

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