{"id":2819,"date":"2020-09-20T08:20:42","date_gmt":"2020-09-20T08:20:42","guid":{"rendered":"https:\/\/swisstomato.ch\/2020\/09\/20\/comparing-backend-and-frontend\/"},"modified":"2020-09-20T08:20:42","modified_gmt":"2020-09-20T08:20:42","slug":"comparing-backend-and-frontend","status":"publish","type":"post","link":"https:\/\/swisstomato.ch\/en\/2020\/09\/20\/comparing-backend-and-frontend\/","title":{"rendered":"Comparing backend and frontend"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">When we talk about computer programming, code or web development, we are not always very familiar with technical jargon, yet certain expressions come up regularly. Backend and Frontend are part of it. Two terms that we hear more and more, but ultimately what is it? What does it represent and what is it for?<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15301\" src=\"https:\/\/swisstomato.ch\/wp-content\/uploads\/2020\/10\/pexels-anthony-shkraba-4348401-scaled.jpg\" alt=\"backend and frontend\" width=\"2560\" height=\"1713\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">There is backend and frontend everywhere<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In the field of IT development, we develop \u201capplications\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">These applications can take the form of a <a href=\"\/?page_id=383\" target=\"_blank\" rel=\"noopener noreferrer\">website<\/a> (f.ex: the Swiss Tomato digital agency\u00a0 website), a web application (f.ex: the Google Drive), a mobile application (f.ex: Waze).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To function, an <a href=\"\/?page_id=215\" target=\"_blank\" rel=\"noopener noreferrer\">application<\/a> or website very often needs what is called in tech jargon, a backend part and a frontend part. We can read on different resources, &#8220;the front is what the end user (you) see, and the back is what we don&#8217;t see&#8221;, but what does that mean?<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Backend and frontend in very simplified form<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">To better understand these two concepts, let&#8217;s move away from technical terms for a moment and take an example from everyday life: postal services<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Imagine the following situation: I have to send a letter to a company, and that company will have to send me a return mail in order to respond to my request.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this example, the letter I need to send represents my search for information on a website (or web application).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We are now going to break down the different actions that follow from sending my letter and all the necessary steps from sending it to receiving the company&#8217;s response to my request. Let&#8217;s see offline backend and frontend structure :<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15304\" src=\"https:\/\/swisstomato.ch\/wp-content\/uploads\/2020\/10\/pexels-markus-spiske-1089438-scaled.jpg\" alt=\"backend and frontend\" width=\"2560\" height=\"1707\" \/><\/p>\n<h3><span style=\"font-weight: 400;\">Several actors will be involved throughout the stages:<\/span><\/h3>\n<ul>\n<li><span style=\"font-weight: 400;\">the postman<\/span><\/li>\n<li>the mailbox<\/li>\n<li>the sorting center<\/li>\n<li>the counter<\/li>\n<li>the drawers in which the mail is stored<\/li>\n<li>the mail<\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400;\">Now let&#8217;s break down the steps of the process:<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">When I send my letter in the mail, all the physical interactions I will have while the mail is in my hands is the front-end part of the business.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Conversely, the entire routing and processing part of my mail (in which I am not directly involved) represents the back-end part of the business.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now you should better understand the sentence that we quoted above namely \u201cThe front is what we see and the back is what we do not see\u201d: We can see the mail when we post it, we can see the mailbox and the postman, it represents the front-end part, but when the mail is sorted, stored, in the routing phase, etc &#8230; that we do not see it, it represents the back-end part of the organization.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">And concretely for an application or a website<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The same concepts are found in the lifecycle of a website or an application:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I see the site I am viewing. To interact with the site, I click on links, or I fill out forms that I see, this is the front-end.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once my click action is complete, my site or application works independently: it receives my request, searches for the information I requested (for this it will consult the database and analyze \/ secure the data), then send it back to me, it&#8217;s the backend part,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once the backend sends the information back, I can view it again and interact with it, I&#8217;m back on the front end.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We realize here that these two facets of a site or an application are essential (in the same way as the sorting center and the postman in the postal services), one cannot go without the other and , as in the postal service, it is not the same person who delivers the mail and who sorts it.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Likewise when developing an application or a website, we need a front-end developer and a back-end developer in order to connect backend and frontend.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15307\" src=\"https:\/\/swisstomato.ch\/wp-content\/uploads\/2020\/10\/pexels-lukas-574071-scaled.jpg\" alt=\"backend developer\" width=\"2560\" height=\"1695\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">And the \u201clanguages\u201d in all this?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The company La Poste allows you to send your mail, but you could also choose another company (DHL, Fedex, etc &#8230;). Each has its own services, backend and frontend methods.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Well in development, it&#8217;s the same but we&#8217;ll call them languages. For example, to develop in the backend, you can use PHP, Java, Ruby, etc &#8230; On the other hand, to develop the frontend part we will mainly use <a href=\"https:\/\/www.javascript.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">JavaScript<\/a>, HTML or CSS.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a href=\"\/?p=15300#contact-us\" target=\"_blank\" rel=\"noopener noreferrer\">Meet our experts<\/a> of webdesign in Z\u00fcrich and Geneva and our app developers at Swiss Tomato to discover how the improvement of your digital life can change your business!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we talk about computer programming, code or web development, we are not always very familiar with technical jargon, yet certain expressions come up regularly. Backend and Frontend are part of it. Two terms that we hear more and more, but ultimately what is it? What does it represent and what is it for? There [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2838,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[],"acf":{"first_post_thumbnail":2823,"post_thumbnail":2829,"home_slider_image":2835,"custom_class":""},"featured_image_big_url":"https:\/\/swisstomato.ch\/wp-content\/uploads\/2022\/06\/pexels-markus-spiske-1089438_2_1_1117x564-1.jpg","featured_image_url":"https:\/\/swisstomato.ch\/wp-content\/uploads\/2022\/06\/pexels-markus-spiske-1089438_2_1_1117x564-1.jpg","date_formatted":" 20, 2020","month_number":"9","_links":{"self":[{"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/posts\/2819"}],"collection":[{"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/comments?post=2819"}],"version-history":[{"count":0,"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/posts\/2819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/media\/2838"}],"wp:attachment":[{"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/media?parent=2819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/categories?post=2819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swisstomato.ch\/en\/wp-json\/wp\/v2\/tags?post=2819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}