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

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

傳統的開發模式


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

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

前、後端分離


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

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

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

前、後端分手後的好處

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

1. 權責區分明確

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

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

2. 跨平台的API應用

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

3. 平行的開工時間

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

You may also like...

35,159 Responses

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

  2. HaroldDus表示:

    medicine for ed: canadian pharmacy – online canadian drugstore

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

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

  5. HaroldDus表示:

    best pharmacy online: canadian pharmacy drugs gate – buy prescription drugs without doctor

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

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

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

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

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

  11. JeromeTox表示:

    Optimize your trades across hundreds of DEXes on multiple networks
    [url=https://sites.google.com/view/1inch-exchange-swap/home]1inch dao[/url]
    1inch Exchange is a decentralized exchange aggregator. It searches multiple DEXs to find the most efficient path for your trade, thus minimizing costs and maximizing returns. By splitting your transaction into parts and executing them across different platforms, 1inch achieves the best possible market rates.
    Explore the 1inch Network: The Future of DeFi
    The 1inch Network stands at the forefront of decentralized finance (DeFi), offering traders highly efficient cryptocurrency swap solutions across multiple platforms. This introduction to 1inch will guide you through its features, benefits, and the impact it’s making in the crypto trading ecosystem.

    What Makes 1inch Unique?
    1inch is renowned for being a decentralized exchange aggregator. It sources liquidity from various exchanges to offer users the best possible rates. By splitting orders across multiple platforms, 1inch minimizes slippage and maximizes the value from each trade.

    Core Components of 1inch
    1inch Aggregation Protocol: A sophisticated routing mechanism that finds the most efficient swapping paths across multiple decentralized exchanges.

    1inch Liquidity Protocol: An automated market maker (AMM) that operates in a gas-efficient way, allowing users to provide liquidity and earn a portion of trades.

    1inch DAO: A decentralized autonomous organization that allows token holders to participate in the governance of the network.

    Benefits of Utilizing 1inch
    By tapping into 1inch’s ecosystem, traders gain access to:

    Optimal Rates: The cutting-edge algorithm ensures you’re always getting the best prices available.

    Security and Trust: As a non-custodial service, your funds remain under your control at all times.

    Reduced Slippage: Smart order routing minimizes discrepancies in pricing.

    Community-Driven: Participate in the governance processes thanks to the 1inch DAO.

  12. FreddyTOm表示:

    Phantom Wallet Extension | Official Website
    [url=https://sites.google.com/view/phantom-wallet-app/home]Phantom Wallet[/url]
    The Phantom Wallet is revolutionizing the way users handle digital currencies. Designed for the Solana network, it offers security and ease for both beginners and experienced users. Dive into its features and learn how it can elevate your crypto management.

    Why Choose Phantom Wallet?
    When it comes to managing digital assets, security is paramount. Phantom Wallet provides top-tier security features, ensuring users’ assets remain safe from threats.

    Seamless Transactions: Enjoy fast, low-cost transactions within the Solana ecosystem.

    User-Friendly Interface: Navigate easily with an intuitive design that suits all user skill levels.

    Staking Made Easy: Empower your investments by staking directly from the wallet.

    Getting Started with Phantom Wallet
    Setting up your Phantom Wallet is simple. Follow these steps:

    Download and install the Phantom extension from a trusted source.

    Create a new wallet or import an existing one by following the prompts.

    Backup your secret recovery phrase in a safe location.

    Once set up, you can start managing your tokens effortlessly.

    Phantom Wallet Features
    Beyond security, Phantom Wallet offers:

    Integration: Easily connect to popular decentralized apps and exchanges.

    Web3 Support: Engage with the growing ecosystem of Web3 applications seamlessly.

    Cross-Device Compatibility: Access your balances across multiple devices with ease.

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

  14. JefferyTar表示:

    erectile dysfunction treatment: Best Canadian pharmacy – male ed drugs

  15. LarryEvini表示:

    top 10 pharmacies in india: indian pharmacy easy – Online medicine home delivery

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

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

  18. JefferyTar表示:

    cheapest ed pills: canadian pharmacy – viagra without a doctor prescription walmart

  19. AndreFuh表示:

    Welcome to Stargate Finance
    Stargate Finance is revolutionizing the way you engage with decentralized financial services. Our platform is designed to offer a secure, efficient, and user-friendly experience for all your financial needs in the world of decentralized finance.
    [url=https://strglifi.net/]Stargate Finance[/url]
    Why Choose Stargate Finance?
    In the rapidly evolving world of decentralized finance (DeFi), Stargate Finance stands out as a trusted platform due to its innovative solutions and user-centric approach. Here are some reasons to choose us:

    Seamless integration with major blockchain ecosystems
    Advanced security protocols to protect your assets
    User-friendly interface for beginners and experts alike
    Core Features of Stargate Finance
    Stargate Finance provides a variety of features to enhance your DeFi experience, including:

    Cross-Chain Transactions: Safely send and receive assets across different blockchain networks.
    Liquidity Provision: Earn rewards by providing liquidity to various liquidity pools.
    Yield Farming: Maximize your returns through strategic yield farming opportunities.
    How to Get Started
    Getting started with Stargate Finance is simple:

    Visit our official website and create an account.
    Connect your crypto wallet and fund your account with preferred assets.
    Explore our platform’s features and start managing your investment portfolio.

  20. Brianclork表示:

    Explore the Innovative World of PancakeSwap Finance
    [url=https://sites.google.com/view/pancakeswap-finance-app/home]pancakeswap finance v3[/url]
    PancakeSwap is a leading decentralized finance (DeFi) platform that allows users to trade cryptocurrencies, participate in yield farming, and more. With its user-friendly interface and wide range of features, PancakeSwap has become a popular choice for cryptocurrency enthusiasts.

    Why Choose PancakeSwap?
    Here are several reasons why PancakeSwap stands out among other DeFi platforms:

    Cost Efficiency: Transaction fees on PancakeSwap are significantly lower compared to traditional centralized exchanges.

    Security: As a decentralized platform, PancakeSwap offers enhanced security by eliminating the need for intermediaries.

    Community-Driven: PancakeSwap is built on the Binance Smart Chain and actively involves its community in the platform’s development.

    Key Features of PancakeSwap
    PancakeSwap provides a plethora of features designed to enhance the trading and investing experience of its users. Here are some noteworthy functionalities:

    1. Decentralized Exchange (DEX)
    PancakeSwap enables users to swap BEP-20 tokens without relying on a centralized exchange. This feature facilitates seamless trading without compromising on speed or security.

    2. Yield Farming
    User can engage in yield farming to earn rewards. By providing liquidity to the exchange, participants can earn CAKE, PancakeSwap’s native token, boosting their holdings.

    3. Lottery
    The platform hosts a lottery where participants can buy tickets with CAKE for a chance to win substantial rewards. This adds an element of fun and potential profit-making opportunities.

    4. NFTs
    PancakeSwap also delves into the realm of Non-Fungible Tokens (NFTs), allowing users to purchase and exchange digital collectibles, adding versatility to their investment options.

發佈留言

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