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

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

傳統的開發模式


前、後端人員會先針對頁面設計進行可行性的討論,在前端在頁面製作完成後,逐步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. Helenmus表示:

    Без своевременной и адекватной медицинской помощи длительный запой может перерасти в тяжёлую и угрожающую жизни форму алкогольной интоксикации, вызывая каскад серьезных сбоев в работе практически всех систем организма, от сердечно-сосудистой и нервной до пищеварительной и эндокринной, поэтому своевременное обращение к опытным и квалифицированным специалистам даёт реальную возможность предотвратить развитие тяжелых последствий и обеспечить безопасный и эффективный процесс восстановления, начиная с первичной детоксикации и заканчивая долгосрочной реабилитацией.
    Углубиться в тему – vivod iz zapoya arhangelsk

  2. Williszew表示:

    http://mexicanpharminter.com/# mexican pharmacy online order

  3. Williszew表示:

    https://interpharmonline.com/# is canadian pharmacy legit

  4. Sazrwvj表示:

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

  5. WilliamTaurl表示:

    Xavier completes thrilling comeback, Mount St. Mary’s advances as men’s First Four comes to a close
    changenow
    Wednesday saw the men’s First Four come to a close which means only one thing: the 64-team bracket is officially set following No. 11 Xavier’s thrilling come from behind win over No. 11 Texas and No. 16 Mount St. Mary’s victory over No. 16 American in Dayton, Ohio.

    The Musketeers trailed by as many as 13 points, but their offense came alive in the second half behind guard Marcus Foster and forward Zach Freemantle to down the Longhorns 86-80.

    The senior Foster scored a team-high 22 points while Freemantle, on his way to 15 points, threw down a dunk with a second left to seal the comeback win and ignite the fans at UD Arena, which is just over 50 miles away from campus in Cincinnati, Ohio.

    With just under four minutes remaining, Xavier went on an 8-2 run to take a 78-74 lead, their first since the early going of the first half.

    Musketeers head coach Sean Miller crowned Wednesday’s game as “one of the best” he’s been a part of.

    “I thought we were dead in the water two different times,” Miller told the truTV broadcast after the game. “But that’s the one thing about our team — the resiliency of our group has always won out for us. Just when you thought we weren’t gonna make the tournament, we kept winning. Even in this game, just when you’re like, ‘It’s not gonna work out,’ we have a funny way of staying with it.”

    The Longhorns did not go down without a fight as guard Tre Johnson scored a game-high 23 points in the loss.

    Xavier will face No. 6 Illinois in the first round on Friday at the Fiserv Forum in Milwaukee.

  6. Pingidiof表示:

    darknet drug store https://github.com/aresonioncq0a7/aresonion – dark web marketplaces

  7. Iariortks表示:

    Купить документ университета можно в нашем сервисе. journeywithin.co.in

  8. Sazrsyj表示:

    Мы предлагаем дипломы любой профессии по приятным тарифам. Цена может зависеть от выбранной специальности, года выпуска и ВУЗа. Всегда стараемся поддерживать для заказчиков адекватную ценовую политику. Важно, чтобы документы были доступны для большинства наших граждан. диплом вуза ссср купить

  9. Williamevads表示:

    A librarian ran off with a yacht captain in the summer of 1968. It was the start of an incredible love story
    metamask wallet
    The first time Beverly Carriveau saw Bob Parsons, she felt like a “thunderbolt” passed between them.

    “This man stepped out of a taxi, and we both just stared at each other,” Beverly tells CNN Travel today. “You have to remember, this is the ‘60s. Girls didn’t stare at men. But it was a thunderbolt.”

    It was June 1968. Beverly was a 23-year-old Canadian university librarian on vacation in Mazatlan, Mexico, with a good friend in tow.

    Beverly had arrived in Mazatlan that morning. She’d been blown away by the Pacific Ocean views, the colorful 19th-century buildings, the palm trees.

    Now, Beverly was browsing the hotel gift store, admiring a pair of earrings, when she looked up and spotted the man getting out of the taxi. The gift shop was facing the parking lot, and there he was.

    “I was riveted,” says Beverly. “He was tall, handsome…”

    Eventually, Beverly tore away her gaze, bought the earrings and dashed out of the store.

    “We locked eyes so long, I was embarrassed,” she says.

    No words had passed between them. They hadn’t even smiled at each other. But Beverly felt like she’d revealed something of herself. She felt like something had happened, but she couldn’t describe it.
    Beverly rushed to meet her friend, still feeling flustered. Over dinner in the hotel restaurant, Beverly confided in her friend about the “thunderbolt” moment.

    “I told my girlfriend, ‘Something just happened to me. I stared at this man, and I couldn’t help myself.’”

    Then, the server approached Beverly’s table.

    “He said, ‘I have some wine for you, from a man over there.’”

    The waiter was holding a bottle of white wine, indicating at the bar, which was packed with people.

    As a rule, Beverly avoided accepting drinks from men in bars. She never felt especially comfortable with the power dynamic — plus, she had a long-term partner back in Canada.

    “I had a serious boyfriend at home and thought my life was on course,” she says.

  10. Give your seed a selected task – to provide exactly what you might be believing God for.

  11. Diplomi_rcEa表示:

    Заказать диплом любого ВУЗа!
    Мы можем предложить документы институтов, расположенных в любом регионе России.
    diploml-174.ru/kolledzh-kupit-diplom-5

  12. Sazrhay表示:

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

  13. JamesGag表示:

    india online pharmacy store: IndiaMedFast.com – India Med Fast

  14. Jariorque表示:

    Где приобрести диплом по актуальной специальности?
    Наша компания предлагает выгодно заказать диплом, который выполняется на бланке ГОЗНАКа и заверен мокрыми печатями, водяными знаками, подписями. Документ пройдет любые проверки, даже с применением специальных приборов. Решайте свои задачи максимально быстро с нашей компанией.
    Заказать диплом о высшем образовании damdiplomisa.com/kupit-diplom-v-ekaterinburge-20/

  15. JackieBrign表示:

    В Новокузнецке клиники, специализирующиеся на лечении алкогольной зависимости, работают в соответствии с современными медицинскими протоколами, что обеспечивает максимально быстрый старт необходимой терапии, высокую результативность проводимого лечения и значительное улучшение состояния пациента уже в первые часы после обращения за помощью
    Детальнее – нарколог вывод из запоя новокузнецк

  16. KellyIroke表示:

    The fish collectors hoping to save rare species from extinction
    phantom wallet
    In the rural town of Petersham, Massachusetts, 78-year-old Peter George keeps 1,000 fish in his basement.

    “Baseball, sex, fish,” he says, listing his life’s great loves. “My single greatest attribute is that I am passionate about things. That sort of defines me.”

    All of George’s fish are endangered Rift Lake cichlids: colorful, freshwater fish native to the Great Lakes of East Africa. Inside his 42 tanks, expertly squeezed into a single subterranean room, the fish shimmer under artificial lights, knowing nothing of the expansive waters in which their ancestors once swam, thousands of miles away.

    Due to pollution, climate change and overfishing, freshwater fish are thought to be the second most endangered vertebrates in the world. In Lake Victoria, a giant lake shared between Kenya, Uganda and Tanzania, over a quarter of endemic species, including countless cichlids, are either critically endangered or extinct.

    But for some species, there is still hope. A community of rare fish enthusiasts collect endangered species of freshwater fish from the lakes and springs of East Africa, Mexico and elsewhere, and preserve them in their personal fish tanks in the hope that they might one day be reintroduced in the wild.

    “I’m a hard ass,” George says. “There is hope.”
    Insurance
    George has been collecting fish since 1948 when, as a four-year-old in the Bronx, he would look after his grandmother’s rainbow fish. He soon developed “multiple tank syndrome” – a colloquial term used by fish collectors to denote the spiral commonly experienced after acquiring one’s first tank, which involves the sufferer buying many more tanks within a short space of time. He has not stopped collecting since.

    Now, George sees himself as a conservationist; his tanks contain what is known as “insurance populations” – populations of endangered fish that are likely to go extinct in their natural habitats. He believes that when the time is right, they can be taken from his collection and returned to their homes. “I would never accept the fact that they couldn’t be reintroduced,” he says.

  17. MarvinDok表示:

    The world’s largest architectural model captures New York City in the ’90s
    aerodrome finance
    The Empire State building stands approximately 15 inches tall, whereas the Statue of Liberty measures at just under two inches without its base. At this scale, even ants would be too big to represent people in the streets below.

    These lifelike miniatures of iconic landmarks can be found on the Panorama — which, at 9,335 square feet, is the largest model of New York City, meticulously hand-built at a scale of 1:1,200. The sprawling model sits in its own room at the Queens Museum, where it was first installed in the 1960s, softly rotating between day and night lighting as visitors on glass walkways are given a bird’s eye view of all five boroughs of the city.

    To mark the model’s 60th anniversary, which was celebrated last year, the museum has published a new book offering a behind-the-scenes look at how the Panorama was made. Original footage of the last major update to the model, completed in 1992, has also gone on show at the museum as part of a 12-minute video that features interviews with some of the renovators.

    The Queens Museum’s assistant director of archives and collections, Lynn Maliszewski, who took CNN on a visit of the Panorama in early March, said she hopes the book and video will help to draw more visitors and attention to the copious amount of labor — over 100 full-time workers, from July 1961 to April 1964 — that went into building the model.

    “Sometimes when I walk in here, I get goosebumps, because this is so representative of dreams and hopes and family and struggle and despair and excitement… every piece of the spectrum of human emotion is here (in New York) happening at the same time,” said Maliszewski. “It shows us things that you can’t get when you’re on the ground.”
    Original purpose
    The Panorama was originally built for the 1964 New York World’s Fair, then the largest international exhibition in the US, aimed at spotlighting the city’s innovation. The fair was overseen by Robert Moses, the influential and notorious urban planner whose highway projects displaced hundreds of thousands New Yorkers. When Moses commissioned the Panorama, which had parts that could be removed and redesigned to determine new traffic patterns and neighborhood designs, he saw an opportunity to use it as a city planning tool.

    Originally built and revised with a margin of error under 1%, the model was updated multiple times before the 1990s, though it is now frozen in time. According to Maliszewski, it cost over $672,000 to make in 1964 ($6.8 million in today’s money) and nearly $2 million (about $4.5 million today) was spent when it was last revised in 1992.

  18. Arthurhow表示:

    https://indiamedfast.com/# india pharmacy without prescription
    my canadian pharmacy

  19. JamesGag表示:

    mexican pharmacy online: buying from online mexican pharmacy – Mexican Pharm Inter

  20. MarkNOblile表示:

    darknet markets links darknet sites

  21. Georgewhend表示:

    mexican pharmacy online store: mexican pharmacy online order – mexican pharmacy online

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

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