the difference between front-end and back-end in programming :)

Think of a program like a car. What the dashboard looks like, what each button does, in broad terms, is the front end. The user knows that when they turn this knob, the temperature of the car is adjusted. When they push this button, the music turns on. The back end is how exactly those things are implemented.

For the temperature, turning that knob could make a physical change that makes a fan spin faster, or it could make an electrical change that makes it spin faster. It could also open vents elsewhere, so that not all of the air is directed to you.

The knob could make a motor turn faster, causing the fan to spin faster (electronic), or it could shift gears in a gear box, making the same spinning of the motor translate into less spinning of the fan (physical). It could even change where it got the air from–does it go through a refrigeration unit (like an AC), or does it come from outside? The user may have control over these options, but sometimes all they have is a dial that controls the temperature.

For the music, think of a setup where button A turns on jazz, button B turns on classical, button C turns on rap, and button D turns on the news. When the user pushes a button, the expectation is that the music will change, but the user doesn’t know how it has changed.

Whether that change comes from changing from AM radio to FM radio, from changing stations on the same receiver, or from connecting wirelessly to their phone and searching for an appropriate track to play may be irrelevant to the user, all they know is which button maps to which genre.

Obviously these are a little contrived examples. In most cases you’d be able to dictate whether you want to listen to AM or FM, your iPod, or Spotify, but getting into more realistic examples pushes it out of the realm of “ELI5” and more like “ELI10.” A more realistic example might be looking at the list of music on your phone. Then front end is how it’s laid out, where the buttons are, which parts you can tap, which parts you can drag, etc. The user knows that if they tap here, the songs will get organized by artist name, but if they tap somewhere else, they’ll be organized by song name. The back end would be deciding if these lists are precomputed, or if they are sorted on the fly when the user taps. In the latter case, more “back end”ness would be deciding which algorithm to use to sort. The user doesn’t care, and probably doesn’t understand, anyway. All they know is “click here to sort by song name, click here to sort by artist name,” and that’s that.

www.reddit.com

165 Thoughts to “the difference between front-end and back-end in programming :)”

  1. how to get cialis prescription

    how to get cialis prescription

  2. simplicef vs cephalexin

    simplicef vs cephalexin

  3. zoloft and insomnia

    zoloft and insomnia

  4. metronidazole cipla

    metronidazole cipla

  5. escitalopram causa equivocado

    escitalopram causa equivocado

  6. fluoxetine hcl 10 mg

    fluoxetine hcl 10 mg

  7. gabapentin and duloxetine interaction

    gabapentin and duloxetine interaction

  8. weaning off cymbalta side effects

    weaning off cymbalta side effects

  9. buy sildenafil 50mg uk

    buy sildenafil 50mg uk

  10. can you take lexapro while pregnant

    can you take lexapro while pregnant

  11. will amoxicillin treat kidney infection

    will amoxicillin treat kidney infection

  12. can i drink alcohol while taking cephalexin

    can i drink alcohol while taking cephalexin

  13. ciprofloxacin over the counter substitute

    ciprofloxacin over the counter substitute

  14. what type of antibiotic is bactrim

    what type of antibiotic is bactrim

  15. neurontin doses for neuropathic pain

    neurontin doses for neuropathic pain

  16. what is cozaar used for

    what is cozaar used for

  17. what does flexeril do

    what does flexeril do

  18. flomax side effects edema

    flomax side effects edema

  19. contravene crossword clue 6 letters

    contravene crossword clue 6 letters

  20. diltiazem side effect

    diltiazem side effect

  21. what is ezetimibe/simvastatin

    what is ezetimibe/simvastatin

  22. diclofenac sodium gel 1

    diclofenac sodium gel 1

  23. effexor and alcohol

    effexor and alcohol

  24. what can i take for a headache while on citalopram

    what can i take for a headache while on citalopram

  25. signs of ddavp overdose

    signs of ddavp overdose

  26. side effects of depakote

    side effects of depakote

  27. what is augmentin used for

    what is augmentin used for

  28. bayer low dose aspirin

    bayer low dose aspirin

  29. allopurinol over the counter

    allopurinol over the counter

  30. aripiprazole generic

    aripiprazole generic

  31. another name for amitriptyline

    another name for amitriptyline

  32. augmentin strep throat

    augmentin strep throat

  33. bupropion for anxiety

    bupropion for anxiety

  34. how long does celebrex 200 mg last

    how long does celebrex 200 mg last

  35. repaglinide advantages

    repaglinide advantages

  36. acarbose drugs.com

    acarbose drugs.com

  37. is protonix over the counter

    is protonix over the counter

  38. abilify side effects weight gain

    abilify side effects weight gain

  39. tolterodine tartrate tamsulosin hydrochloride

    tolterodine tartrate tamsulosin hydrochloride

  40. tab sitagliptin 100 mg

    tab sitagliptin 100 mg

  41. 50mg spironolactone for acne

    50mg spironolactone for acne

  42. voltaren 1% gel days calcuation

    voltaren 1% gel days calcuation

  43. synthroid clenbuterol

    synthroid clenbuterol

  44. will tizanidine show up in a drug test

    will tizanidine show up in a drug test

  45. venlafaxine reviews for anxiety

    venlafaxine reviews for anxiety

  46. cialis online pills

    cialis online pills

  47. how long does it take sildenafil to work

    how long does it take sildenafil to work

  48. cytotec malaysia pharmacy

    cytotec malaysia pharmacy

  49. tadalafil 5mg tab

    tadalafil 5mg tab

  50. levitra where to buy

    levitra where to buy

  51. levitra dosing instructions

    levitra dosing instructions

  52. sildenafil para que sirve

    sildenafil para que sirve

  53. tadalafil vs sildenafil vs vardenafil

    tadalafil vs sildenafil vs vardenafil

  54. ivermectin for sale

    ivermectin for sale

  55. buy stromectol pills

    buy stromectol pills

  56. tadalafil pronounce

    tadalafil pronounce

  57. stromectol over the counter

    stromectol over the counter

  58. generic ivermectin for humans

    generic ivermectin for humans

  59. viagra 50 mg generic

    viagra 50 mg generic

  60. buy ivermectin cream

    buy ivermectin cream

  61. tadalafil and dapoxetine

    tadalafil and dapoxetine

  62. how much is sildenafil 50 mg

    how much is sildenafil 50 mg

  63. valacyclovir white pill vs blue pill reddit

    valacyclovir white pill vs blue pill reddit

  64. can prednisone make you tired

    can prednisone make you tired

  65. when to take ampicillin

    when to take ampicillin

  66. glucophage kontraindikation

    glucophage kontraindikation

  67. how long does nolvadex take to get rid of gyno

    how long does nolvadex take to get rid of gyno

  68. gabapentin for insomnia

    gabapentin for insomnia

  69. pregabalin reviews

    pregabalin reviews

  70. trazodone male side effects

    trazodone male side effects

  71. keflex for strep throat

    keflex for strep throat

  72. doxycycline while pregnant

    doxycycline while pregnant

  73. is cephalexin an antibiotic

    is cephalexin an antibiotic

  74. best time of day to take lisinopril

    best time of day to take lisinopril

  75. ciprofloxacin for pink eye

    ciprofloxacin for pink eye

  76. amoxil for ear infection

    amoxil for ear infection

  77. buy viagra online cheap

    buy viagra online cheap

  78. levitra discount cards

    levitra discount cards

  79. vardenafil 20mg how long does it take to work

    vardenafil 20mg how long does it take to work

  80. buy dapoxetine online pharmacy

    buy dapoxetine online pharmacy

  81. sildenafil dosage timing

    sildenafil dosage timing

  82. sildenafil or viagra

    sildenafil or viagra

  83. sildenafil generic name

    sildenafil generic name

  84. can i take 30 mg of cialis

    can i take 30 mg of cialis

  85. tadalafil 10mg para que serve

    tadalafil 10mg para que serve

  86. proscar inhouse pharmacy

    proscar inhouse pharmacy

  87. can you take levitra and viagra together

    can you take levitra and viagra together

  88. sildenafil 20 mg tablet price

    sildenafil 20 mg tablet price

  89. prescription cialis online pharmacy

    prescription cialis online pharmacy

  90. which is better tadalafil or sildenafil

    which is better tadalafil or sildenafil

  91. sildenafil 20 mg not working

    sildenafil 20 mg not working

  92. trusted online pharmacy no prescription of xanax

    trusted online pharmacy no prescription of xanax

  93. tramadol hcl online pharmacy

    tramadol hcl online pharmacy

  94. offshore pharmacy tramadol

    offshore pharmacy tramadol

  95. sildenafil for premature ejaculation

    sildenafil for premature ejaculation

  96. does tadalafil lower blood pressure

    does tadalafil lower blood pressure

  97. tadalafil interactions with alcohol

    tadalafil interactions with alcohol

  98. trust pharmacy viagra

    trust pharmacy viagra

  99. tramadol online pharmacy overnight shipping

    tramadol online pharmacy overnight shipping

  100. vardenafil hcl 20mg tab vs viagra

    vardenafil hcl 20mg tab vs viagra

  101. bystolic pharmacy discount card

    bystolic pharmacy discount card

  102. target pharmacy pantoprazole

    target pharmacy pantoprazole

  103. online pharmacy uk phentermine

    online pharmacy uk phentermine

  104. carbamazepine toxicity treatment

    carbamazepine toxicity treatment

  105. is gabapentin addictive

    is gabapentin addictive

  106. etodolac medication used

    etodolac medication used

  107. tegretol causing diarrhea

    tegretol causing diarrhea

  108. gabapentin carbamazepine

    gabapentin carbamazepine

  109. what does imitrex do to you

    what does imitrex do to you

  110. mebeverine brand names

    mebeverine brand names

  111. amitriptyline for sleep and anxiety

    amitriptyline for sleep and anxiety

  112. mestinon hypokalemia

    mestinon hypokalemia

  113. constipation from elavil

    constipation from elavil

  114. comparison cilostazol pentoxifylline

    comparison cilostazol pentoxifylline

  115. para que sirve la medicina indomethacin

    para que sirve la medicina indomethacin

  116. can i buy generic pyridostigmine without insurance

    can i buy generic pyridostigmine without insurance

  117. meloxicam cardiovascular safety

    meloxicam cardiovascular safety

  118. mobilat akut piroxicam creme

    mobilat akut piroxicam creme

  119. can you take baclofen with ambien

    can you take baclofen with ambien

  120. maxalt max 10 mg rizatriptan

    maxalt max 10 mg rizatriptan

  121. sulfonamide allergy and sumatriptan

    sulfonamide allergy and sumatriptan

  122. imuran hypersensitivity

    imuran hypersensitivity

  123. azathioprine and mercaptopurine lymphoma

    azathioprine and mercaptopurine lymphoma

  124. maxalt pediatric use

    maxalt pediatric use

  125. st david’s primary school artane

    st david’s primary school artane

  126. cyproheptadine hydrochloride dosage

    cyproheptadine hydrochloride dosage

  127. get cheap toradol without dr prescription

    get cheap toradol without dr prescription

  128. what does tizanidine show up in a drug test

    what does tizanidine show up in a drug test

  129. order ketorolac without prescription

    order ketorolac without prescription

  130. how much does zanaflex sell for on the street

    how much does zanaflex sell for on the street

Leave a Comment