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

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

傳統的開發模式


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

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

前、後端分離


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

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

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

前、後端分手後的好處

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

1. 權責區分明確

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

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

2. 跨平台的API應用

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

3. 平行的開工時間

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

You may also like...

60,767 Responses

  1. JosephCyday表示:

    taya777 app taya777 Resorts provide both gaming and relaxation options.

  2. DouglasAssow表示:

    A brief history of sunglasses, from Ancient Rome to Hollywood
    kraken сайт

    Sunglasses, or dark glasses, have always guarded against strong sunlight, but is there more to “shades” than we think?

    The pupils of our eyes are delicate and react immediately to strong lights. Protecting them against light — even the brilliance reflected off snow — is important for everyone. Himalayan mountaineers wear goggles for this exact purpose.

    Protection is partly the function of sunglasses. But dark or colored lens glasses have become fashion accessories and personal signature items. Think of the vast and famous collector of sunglasses Elton John, with his pink lensed heart-shaped extravaganzas and many others.

    When did this interest in protecting the eyes begin, and at what point did dark glasses become a social statement as well as physical protection?
    The Roman Emperor Nero is reported as holding polished gemstones to his eyes for sun protection as he watched fighting gladiators.

    We know Canadian far north Copper Inuit and Alaskan Yupik wore snow goggles of many kinds made of antlers or whalebone and with tiny horizontal slits. Wearers looked through these and they were protected against the snow’s brilliant light when hunting. At the same time the very narrow eye holes helped them to focus on their prey.

    In 12th-century China, judges wore sunglasses with smoked quartz lenses to hide their facial expressions — perhaps to retain their dignity or not convey emotions.

  3. Patrickspogs表示:

    The Philippines has a vibrant nightlife scene.: taya777 – taya777 login

  4. Brianquits表示:

    кракен купить – кра сайт, кракен купить

  5. Patrickspogs表示:

    Most casinos offer convenient transportation options.: phtaya login – phtaya.tech

  6. Williamgox表示:

    The poker community is very active here. http://jugabet.xyz/# La Г©tica del juego es esencial.

  7. DouglasAssow表示:

    A brief history of sunglasses, from Ancient Rome to Hollywood
    kraken вход

    Sunglasses, or dark glasses, have always guarded against strong sunlight, but is there more to “shades” than we think?

    The pupils of our eyes are delicate and react immediately to strong lights. Protecting them against light — even the brilliance reflected off snow — is important for everyone. Himalayan mountaineers wear goggles for this exact purpose.

    Protection is partly the function of sunglasses. But dark or colored lens glasses have become fashion accessories and personal signature items. Think of the vast and famous collector of sunglasses Elton John, with his pink lensed heart-shaped extravaganzas and many others.

    When did this interest in protecting the eyes begin, and at what point did dark glasses become a social statement as well as physical protection?
    The Roman Emperor Nero is reported as holding polished gemstones to his eyes for sun protection as he watched fighting gladiators.

    We know Canadian far north Copper Inuit and Alaskan Yupik wore snow goggles of many kinds made of antlers or whalebone and with tiny horizontal slits. Wearers looked through these and they were protected against the snow’s brilliant light when hunting. At the same time the very narrow eye holes helped them to focus on their prey.

    In 12th-century China, judges wore sunglasses with smoked quartz lenses to hide their facial expressions — perhaps to retain their dignity or not convey emotions.

  8. JosephCyday表示:

    taya365 login taya365 Online gaming is also growing in popularity.

  9. Davidzem表示:

    https://taya777.icu/# Some casinos have luxurious spa facilities.
    Gaming regulations are overseen by PAGCOR.

  10. Lannyhat表示:

    Many casinos host charity events and fundraisers.: phmacao com – phmacao com

  11. Lannyhat表示:

    Players enjoy a variety of table games.: taya777 login – taya777 login

  12. Brianquits表示:

    кракен клир – кра сайт, кракен официальная ссылка

  13. Today, I went to the beach with my children. I found a
    sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.”
    She placed the shell to her ear and screamed. There was a hermit crab
    inside and it pinched her ear. She never wants to go
    back! LoL I know this is completely off topic but
    I had to tell someone!

  14. I’m curious to find out what blog system you happen to be utilizing?
    I’m experiencing some minor security problems with my latest
    site and I’d like to find something more risk-free. Do you have any suggestions?

  15. Brianquits表示:

    Kra29.at – kra31, кракен официальный сайт

  16. Brianquits表示:

    Kra30.cc – Kra29.at, кракен зеркало

  17. Hi there, just wanted to mention, I liked this post.
    It was inspiring. Keep on posting!

    my site … escort in Kalyani

  18. Lannyhat表示:

    Players enjoy both fun and excitement in casinos.: phtaya.tech – phtaya login

  19. JamesTup表示:

    Индивидуальный предприниматель Сафин Ирек Фаатович

    Введение
    Ирек Сафин
    Ирек Фаатович Сафин – успешный индивидуальный предприниматель, который за годы своей деятельности смог создать устойчивый бизнес в различных сферах экономики. Его имя ассоциируется с профессионализмом, инновациями и ответственным подходом к делу. В этой статье мы рассмотрим ключевые аспекты его карьеры, достижения и принципы ведения бизнеса.

    Начало пути

    Ирек Сафин родился в 1978 году в городе Уфа, Республика Башкортостан. С детства он проявлял интерес к экономике и предпринимательству. После окончания школы поступил в Башкирский государственный университет на экономический факультет. Во время учебы активно участвовал в студенческих проектах и научных конференциях, что позволило ему получить ценный опыт и знания.

    Первые шаги в бизнесе

    Свою карьеру Ирек начал сразу после окончания университета. Он открыл свою первую компанию, которая занималась оптовой торговлей строительными материалами. Благодаря грамотному управлению и стратегическому планированию, компания быстро заняла лидирующие позиции на рынке. Это стало первым успешным шагом в карьере Ирека Сафина.

    Расширение бизнеса

    В последующие годы Ирек Сафин расширил свой бизнес, открыв новые направления. Он стал заниматься производством строительных материалов, а также оказанием услуг в сфере строительства и ремонта. Благодаря внедрению современных технологий и использованию качественных материалов, его компании смогли завоевать доверие клиентов и партнеров.

    Социальная ответственность

    Одним из важных аспектов деятельности Ирека Сафина является социальная ответственность. Он активно участвует в благотворительных проектах, поддерживает образовательные учреждения и спортивные мероприятия. Кроме того, он уделяет большое внимание экологии и внедряет экологически чистые технологии в своем производстве.

    Личные качества и принципы

    Ирек Сафин известен своим трудолюбием, ответственностью и стремлением к совершенству. Он всегда ставит перед собой высокие цели и стремится их достичь. Его принципами являются честность, открытость и уважение к партнерам и клиентам. Эти качества помогли ему завоевать доверие и уважение в деловом сообществе.

    Заключение

    Ирек Фаатович Сафин – яркий пример успешного предпринимателя, который сумел построить устойчивый бизнес и внести значительный вклад в развитие экономики региона. Его опыт и достижения могут служить примером для многих начинающих предпринимателей.

  20. Patrickspogs表示:

    Las apuestas deportivas tambiГ©n son populares.: jugabet.xyz – jugabet

  21. Davidzem表示:

    https://phmacao.life/# The Philippines has a vibrant nightlife scene.
    Casino visits are a popular tourist attraction.

  22. Mahjong Slot表示:

    Informative article, just what I needed.

  23. Williamgox表示:

    Slot machines attract players with big jackpots. http://winchile.pro/# La pasiГіn por el juego une a personas.

  24. Metropolis Government Website Archived July 21, 2005, at the Wayback Machine.

  25. Patrickspogs表示:

    Many casinos provide shuttle services for guests.: taya365 – taya365 login

  26. Patrickspogs表示:

    Slot tournaments create friendly competitions among players.: taya777 – taya777 app

  27. Carlsen signaled his willingness to accept a fast draw by playing one of the most strong variations towards the Berlin Defense.

  28. Williamgox表示:

    Loyalty programs reward regular customers generously. http://taya365.art/# Online gaming is also growing in popularity.

  29. Lannyhat表示:

    La iluminaciГіn crea un ambiente vibrante.: jugabet.xyz – jugabet.xyz

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

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