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

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

傳統的開發模式


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

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

前、後端分離


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

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

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

前、後端分手後的好處

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

1. 權責區分明確

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

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

2. 跨平台的API應用

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

3. 平行的開工時間

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

You may also like...

37,843 Responses

  1. AndreLig表示:

    Welcome to DeBank: Your Premier DeFi Portfolio Manager
    In the ever-evolving world of decentralized finance (DeFi), managing and tracking your digital assets is crucial. DeBank offers an innovative solution for users to seamlessly manage their DeFi investments, providing a comprehensive overview of their digital portfolio.
    debank portfolio tracker
    Why Choose DeBank for Your DeFi Needs?
    DeBank simplifies the complex landscape of DeFi by offering tools and insights that empower users to make informed decisions. Here’s why you should consider using DeBank:

    Comprehensive Asset Management: Track all your DeFi investments in one place for a holistic view of your financial health.
    Portfolio Optimization: Enhance your investment strategy with the help of detailed analytics and insights.
    Security and Privacy: Enjoy peace of mind knowing your data is protected with top-tier security protocols.
    Key Features of DeBank
    DeBank stands out with its robust set of features designed to accommodate both novice and experienced investors alike:

    Real-time Data Tracking: Stay updated with live data feeds that keep you informed about market trends and price changes.
    Wallet Integration: Connect multiple crypto wallets to manage and view your assets seamlessly.
    Customizable Dashboard: Tailor your dashboard to display the metrics and assets that matter most to you.
    Getting Started with DeBank
    Setting up your DeBank account is a straightforward process:

    Create an Account: Sign up with your email or integrate with your crypto wallet.
    Connect Your Wallet: Securely link your existing crypto wallets to start tracking your investments.
    Explore the Dashboard: Customize your interface to monitor your DeFi activities effectively.
    DeBank offers an intuitive and user-friendly platform that caters to the diverse needs of DeFi enthusiasts. Whether you’re looking to track your assets or optimize your investment strategy, DeBank provides the tools and insights needed to succeed in the DeFi space.

    Join the DeFi Revolution with DeBank
    As the DeFi market continues to expand, staying ahead is crucial. DeBank equips you with the knowledge and tools to harness the full potential of decentralized finance. today and take control of your financial future!

  2. 오피表示:

    Romantic Evening 오피

  3. ThomasOdoke表示:

    What is Curve Finance?
    Curve Finance is a decentralized exchange platform designed to facilitate low-cost, low-slippage trades of stablecoins and other assets. Built on the Ethereum network, Curve.fi optimizes trading and liquidity provision, making it a popular choice among decentralized finance (DeFi) users.
    curve fi
    How Does Curve Finance Work?
    Curve Finance employs an automated market maker (AMM) model, which eliminates the need for traditional order books. Instead, it uses liquidity pools to match trades and provide liquidity. This system is particularly effective for stablecoin exchanges, where price fluctuations are minimal.

    Key Features of Curve Finance
    Low Slippage: By focusing on stablecoins, Curve minimizes price volatility during trades.
    Efficient Trading: Curve’s AMM model enables quick and efficient transactions.
    Liquidity Incentives: Users providing liquidity earn rewards in the form of trading fees and CRV tokens.
    Benefits of Using Curve Finance
    Curve Finance offers numerous benefits for users looking to optimize their cryptocurrency trading experience:

    Competitive Rates: By reducing slippage and transaction fees, Curve provides a cost-effective solution for stablecoin trades.
    Decentralized Control: Users benefit from the security and autonomy of a decentralized network.
    Yield Farming Opportunities: Beyond trading, users can engage in yield farming, earning additional income by supplying liquidity.
    How to Get Started with Curve Finance
    To begin using Curve, you need an Ethereum wallet, such as MetaMask, and some ETH to cover gas fees. Here’s a quick guide to get you started:

    Connect your Ethereum wallet to Curve.fi.
    Select a trading pair from the available liquidity pools.
    Enter the amount you wish to trade or provide as liquidity.
    Confirm the transaction and pay the necessary gas fees.
    By following these simple steps, you can start taking advantage of the low-cost, low-slippage trades that Curve Finance offers.

    Conclusion
    Curve Finance is a robust platform for anyone looking to engage in efficient cryptocurrency trading. With its focus on stablecoins and low slippage, Curve.fi provides users with an optimized trading experience backed by the security of decentralized finance. Whether you’re a trader or a liquidity provider, Curve Finance offers tools and incentives to enhance your DeFi journey.

  4. BrettTIT表示:

    viagra canada: Fast Pills For Men – Viagra online price

  5. What The Actual Best Gospel Karaoke Data? 하이오피사이트

  6. Charlesbot表示:

    https://fastpillseasy.com/# ed prescription online

  7. Charlesbot表示:

    http://maxpillsformen.com/# Generic Cialis price

  8. вызвать капельницу от запоя на дому вызвать капельницу от запоя на дому .

  9. поставить капельницу от запоя на дому цена поставить капельницу от запоя на дому цена .

  10. Charlesbot表示:

    https://fastpillseasy.com/# online erectile dysfunction

  11. Donaldabula表示:

    buying erectile dysfunction pills online FastPillsEasy cheap ed pills online

  12. сравнение процессоров intel http://topcpu.ru/ .

  13. BrettTIT表示:

    Cheap generic Viagra: FastPillsForMen – Order Viagra 50 mg online

  14. Charlesbot表示:

    https://fastpillseasy.com/# online erectile dysfunction medication

  15. OP表示:

    Wine Tasting OP

  16. рейтинг игровых процессоров http://www.topcpu.ru .

  17. сравнение процессоров amd http://topcpu.ru/ .

  18. врач на дом капельница от запоя врач на дом капельница от запоя .

  19. вывод из запоя стационарно ростов http://vyvod-iz-zapoya-rostov222.ru/ .

  20. вывод из запоя цены на дому ростов вывод из запоя цены на дому ростов .

  21. Charlesbot表示:

    https://fastpillsformen.com/# Viagra online price

  22. 하이오피表示:

    Meet Women At Parties 하이오피

發佈留言

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