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

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

傳統的開發模式


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

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

前、後端分離


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

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

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

前、後端分手後的好處

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

1. 權責區分明確

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

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

2. 跨平台的API應用

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

3. 平行的開工時間

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

You may also like...

7,552 Responses

  1. WilliamSoorp表示:

    http://canadianinternationalpharmacy.pro/# best canadian pharmacy online

  2. beaxy表示:

    Multi Betting Tips is a free sports application for mobile devices from Multi Team. It’s a tips and advice platform for fans of various sports like football… Subscriptions are for the sole purpose of unlocking content within the app. All sports picks are for entertainment purposes only, and are not intended to be financial advice. T&Cs apply. New UK customers (Excluding NI) only. £20 in FREE Bets (FB) as £10 in sports bets & a £10 casino bonus (CB). Min Deposit £10. Min stake £10. Min odds Evs. FB applied on 1st settlement of any qualifying bet. FB 7-day expiry. 1 FB offer per customer, household & IP address only. Account & Payment restrictions. 14 days to accept £10 CB, then active for 3 days. CB 5x wagering & max redeemable £100. Game restrictions apply. Cashed out Free Bets won’t apply. 30 days to qualify. 18+. T&Cs apply. T&Cs apply.
    https://www.giantbomb.com/profile/kubet388/
    The best way to handicap NBA games is through consistent research and watching the games. This can give you the ability to identify trends for future games or for live betting. Read up on our How To Bet NBA guide to help you get started or you can always check out NBA consensus picks for further guidance on how to handicap NBA odds today. A video shows at least five sharks circling in the shallow waters of Skull Creek. Shark attacks actually hit a 10-year-low in 2022, with some spikes in regional hot spots, according to the International Shark Attack File, which maintains a database of shark attacks. In that example, the Bucks are the 4-point favorites, and have to win by 5 or more points to win the bet. If the Bucks win by exactly 4 points, it’s a “push” and the bet is refunded. These bets usually have -110 odds on each side, meaning bettors win $100 on a $110 wager.

  3. Fnlcdm表示:

    buy generic rybelsus online cheap semaglutide 14 mg semaglutide oral

  4. WilliamSoorp表示:

    https://medicinefromindia.store/# indian pharmacy online

  5. BennyNib表示:

    world pharmacy india: п»їlegitimate online pharmacies india – top online pharmacy india

  6. Eugenehaupe表示:

    mexico pharmacy mexico drug stores pharmacies reputable mexican pharmacies online

  7. Eugenehaupe表示:

    ed drug prices cheap erectile dysfunction ed drugs

  8. hello there and thank you for your info – I’ve definitely picked up something new from right here. I did however expertise several technical issues using this web site, since I experienced to reload the web site lots of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your high quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my email and could look out for much more of your respective exciting content. Ensure that you update this again very soon..

  9. Ded表示:

    The most popular casinos have a full-fledged mobile version, and many casinos are exclusive to mobile as well. The strength of Siru Mobile lies in the convenience of an anonymous payment from your smartphone. Due to its convenience, siru has been adopted by casinos in different parts of the world, and in this siru mobile casino 2023 review, you will find all you need to know about the best siru mobile gambling sites. Many casinos that offer the Siru mobile deposit option offer high-quality casino games, including slots and Live Casino. These casino games are developed by the best providers in the industry. One of the most popular types of Siru Mobile online casinos is a mobile casino. This format is convenient because it is suitable for any mobile device. Most developers create casinos in such a way that all settings automatically adjust to the gadget that you use. Enter your username and password, and the casino will open its doors to you.
    https://lorenzooeay629629.total-blog.com/gry-kasynowe-online-sloty-45246411
    An online casino may compensate you with bonus dollars or give you cashback for your lost bet. For some casinos, there is no wagering requirement at all. Casinos may not lose money off of no deposit bonuses. If you get a big bonus and play smart, you may well come out ahead of the casino – even after meeting the wagering requirements. Many players use the no deposit bonus without a big win, which costs the casinos nothing. There is almost no difference whether you play from the desktop or from your mobile devices. By signing up with Chumba Casino, new players automatically receive two million gold coins and $2 in $weeps Cash. No Chumba Casino Promo Code needed to get the bonus at this point. Read what does Sweepstakes Casino mean. Unfortunately, we can’t offer any Chumba Casino bonus from our name right now. But we work hard to get exclusive bonus for YummySpins subscribers.

  10. BennyNib表示:

    best online pharmacies in mexico: mexican online pharmacies prescription drugs – medicine in mexico pharmacies

  11. Eugenehaupe表示:

    ed medications erectile dysfunction drug cheap erectile dysfunction pill

  12. WilliamPaw表示:

    http://medicinefromindia.store/# reputable indian pharmacies

  13. WilliamSoorp表示:

    https://canadianinternationalpharmacy.pro/# canadian world pharmacy

  14. WilliamSoorp表示:

    http://edwithoutdoctorprescription.pro/# buy prescription drugs from canada cheap

  15. Ded表示:

    Thursdays in February* It’s a really nice casino if you want to spend a few days away from it all and treat yourself to a mini vacation. That’s because it includes a 234-room hotel, two bars, five restaurants, and, most importantly, a full-service spa for all guests. Thus, this casino is a perfect place to unwind and enjoy some of your favorite casino games at the same time. An additional 24-hour fitness center is included so you can keep up with your exercise routine. The Game Poker Club is a social gaming club that offers a variety of cash game tournaments. They offer free pool, a full bar and a rotating menu from the kitchen. How can I resolve this? OUR ALL-ENCOMPASSING MEETING SPACES share the convenient function of seamless partitioning to accommodate up to nine separate meeting venues.
    https://jarednsrn206396.blogrelation.com/25652700/poker-888-has%C5%82a
    Accessibility Tools Real money casino no deposit bonuses provide players with an opportunity to gamble without risking their own funds. They typically come as rewards for completing certain tasks such as opening an account, referring a friend, or participating in a social media contest. Casinos use these bonuses as an effective marketing tactic in hopes of drawing new customers through their doors; their goal being that those newcomers will remain paying customers who spend lots of money there down the road. You can win real money playing with a no deposit bonus. It’ll take a certain amount of luck, but it’s possible to fulfill the wagering requirements with some money left in your account. You just have to win a little along the way.  Some of the new no deposit required casinos will let you use the free money as you want and they won’t give you any rules for them as long as they stay in the casino. A cool variation of the no deposit casino bonus is the one with a time limit. You get a big amount of real money to play with for free (it can be more than $2,000!). The catch is that you will only have 60 minutes to use the money. This means that you have to play very quickly. Many players love the excitement that this creates.

  16. BennyNib表示:

    indian pharmacy paypal: top 10 online pharmacy in india – top 10 pharmacies in india

  17. WilliamSoorp表示:

    http://certifiedpharmacymexico.pro/# reputable mexican pharmacies online

  18. Ded表示:

    We can’t provide any details about the 32Red Casino welcome bonus, but we have more similar casino bonuses here. Only available to new, verified customers residing in the UK. Place a first ever bet (pre-match; £15 min. stake; min. 3 selections; min. odds 1.5 per selection). Get a £5 free in-play sports bet, 15 free spins on eligible games, £5 in bonus money (2x£5) on BetConstruct Blackjack and Keno and a £5 free bet at BetConstruct Virtual Sports. Payment method restrictions apply. T&Cs apply.18+. Please gamble responsibly. BeGambleAware.org All new players get £32 for every multiple of £10 deposited on their first purchase, up to £160 free 32Red Casino is licensed by the UK Gambling Commission and the Government of Gibraltar. This casino is renowned for being one of the most trustworthy casino’s in the world so you shouldn’t have any worries about signing up. All transactions are completely secure and all games are fair and tested.
    http://www.kiripo.com/forum/member.php?action=profile&uid=782466
    Fantasy Fortune Slot Review – Get 100 Free Spins No Deposit Bonus Fantasy Fortune slot by Rival offers a captivating gaming experience with its enchanting theme set in a fantasy… Free play bonuses used to be all the rage. However, they’re less common these days. Free play deals give a new signup a set time to play games at the casino with real money online casino no deposit bonus codes. It’s important to remember that all no deposit bonuses at casinos have terms and conditions. So, while free play deals may be appealing, they’re generally restricted with maximum win limits and other conditions. Betonline Casino Review – Is Betonline.ag a Legitimate Casino? BetOnline Casino Ultimate… And this is where No Deposit Casino jumps in, as a reliable resource site which has players’ benefit in mind as a top priority. Browse through all the casino reviews with detailed info and insight on each of the venue’s aspects, find out their strengths and weaknesses, and also search for other players’ experiences with your casino of choice. Equipped with all this info, you will be able to move forward and find a trustworthy place, benefit from its promotional offering and get pampered by its great service.

  19. WilliamPaw表示:

    https://medicinefromindia.store/# online shopping pharmacy india

  20. Eugenehaupe表示:

    best pills for ed pills erectile dysfunction ed medications online

  21. Eugenehaupe表示:

    buying from online mexican pharmacy mexican mail order pharmacies mexico pharmacy

  22. Ded表示:

    A third-party online payment processor like PayPal, the Skrill e-wallet lets you transfer funds in and out of several US online casinos. It’s just as easy to use, and it offers fast online casino transactions and few to no fees.  According to a CNBC report of September 2015, some US-facing online casinos started offering PayPal as a payment option after nearly 10 years of staying away from the US market. The online payment processor started pre-approving US online casinos very quietly and hardly released any information about any changes to its policies. PayPal is a favorite payment method for both players and casinos. As such, it’s available at most US online casinos (aka PayPal Casinos USA). Look at the toplist to pick from the best PayPal sites to play at.
    http://echo-wiki.win/index.php?title=New_online_casino_ideal
    This remains one of the most important factors to consider when choosing an online casino in the US. Therefore, we make sure all the online casino minimum deposit platforms we recommend are properly licensed. In the US, online casinos must meet stringent requirements before being licensed and offering their services to players. Only legal online casinos that have met this requirement make it to our list. This will ensure that your safety is certain when you play, and you are guaranteed a payout. If you play on an unlicensed casino platform, you may get defrauded and lose your money. The worst part is that nothing will be done because they are not regulated. This really is a case of both quantity and quality. The more banking tools available, the more inclusive an online casino is. Everyone has their preferred method of payment, and this matters a lot in the world of online gambling. We’re also looking for fast payout casinos.

  23. Eugenehaupe表示:

    prescription drugs without prior prescription cialis without a doctor prescription buy cheap prescription drugs online

  24. WilliamSoorp表示:

    http://edpill.cheap/# non prescription ed drugs

  25. Ded表示:

    Mandarin Palace Casino is one of the many casinos that use welcome bonuses and other promotional offers to attract new players to create an account in their casino. Keep reading to discover the best no deposit bonuses and deposit bonuses for you. Not only does Mandarin Palace Casino tick all of the boxes when it comes to accreditation, but they also provide plenty of helpful information on the website to make sure that players are clued up about things such as banking methods, promotions and terms and conditions. What’s more, the casino runs a 24 7 live chat service, although this is managed out-of-house by Genesys Casinos, which means that customers might not receive a fully personalised, dedicated and attentive support service. Mandarin Palace Casino software comes from the BetOnSoft game developers. When I first entered the casino, I wasn’t familiar with many of the games. However, after exploring, I realized that Mandarin Palace hosts a large variety of casino games that include Classic Slots, Video Slots, Table Games, Video Pokers, Keno, Scratch Cards, and more.
    https://gettogether.community/profile/73286/
    Recieve your 50% as welcome bonus in King Billy Casino. Min deposit to recieve your promo code is USD 10 . To make a withdrawal, Bonus amount awarded must be wagered a multiple of 35x times. you can play with this 2nd Deposit code in All except selected games games. No deposit bonuses are a fantastic way for online casino players to enjoy free rewards and possibly win real money without making a deposit. However, it’s very important to understand the restrictions and conditions associated with cashing out winnings from these bonuses. In this article, we explore the most common restrictions set by casinos on cashouts from no deposit bonuses and provide valuable insights for players who are willing to maximise their winnings. Unsurprisingly, King Billy casino takes on a medieval theme, with a design-rendered monarch as the hero of the story. Adding to the opulent and sophisticated feel of the casino, is the black and gold color scheme.

  26. WilliamSoorp表示:

    http://medicinefromindia.store/# indian pharmacy

  27. BennyNib表示:

    prescription meds without the prescriptions: non prescription ed drugs – discount prescription drugs

  28. Kwjsze表示:

    brand doxycycline 100mg buy doxycycline 200mg without prescription monodox canada

  29. WilliamSoorp表示:

    https://canadianinternationalpharmacy.pro/# canadian compounding pharmacy

發佈留言

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