# How would you explain OTP to a newbie?

**URL:** <https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944>\
**Category:** How...\
**Tags:** otp\
**Created:** [January 18, 2022, 3:03am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944 "2022-01-18T03:03:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AstonJ](https://erlangforums.com/user_avatar/erlangforums.com/astonj/32/9_2.png) [@AstonJ](https://erlangforums.com/u/AstonJ)\
**Post date:** [January 18, 2022, 3:03am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/1 "2022-01-18T03:03:33Z")

</div>

Let’s kick off this section with the thing that most people wonder when they come to Erlang - what the heck is OTP? :lol:

**If a newbie asked you about OTP, how would you explain it to them in a way that is easy to understand?**

---

<div class="post-metadata">

**Author:** ![Rainer](https://erlangforums.com/user_avatar/erlangforums.com/rainer/32/210_2.png) [@Rainer](https://erlangforums.com/u/Rainer)\
**Post date:** [January 18, 2022, 5:55am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/2 "2022-01-18T05:55:14Z")

</div>

Maybe at the beginning I wouldn’t say anything about OTP but start with the actor model itself.

---

<div class="post-metadata">

**Author:** ![Maartz](https://erlangforums.com/user_avatar/erlangforums.com/maartz/32/1215_2.png) [@Maartz](https://erlangforums.com/u/Maartz)\
**Post date:** [January 18, 2022, 6:13am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/3 "2022-01-18T06:13:55Z")

</div>

I’d explain what a GenServer is first. In a OOP fashion, I guess.

---

<div class="post-metadata">

**Author:** ![elbrujohalcon](https://erlangforums.com/user_avatar/erlangforums.com/elbrujohalcon/32/241_2.png) [@elbrujohalcon](https://erlangforums.com/u/elbrujohalcon)\
**Post date:** [January 18, 2022, 7:46am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/4 "2022-01-18T07:46:20Z")

</div>

It’s like the [book of patterns](https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612), but instead of a book, you get running code that you can just use (you don’t need to write it yourself), and instead of 80 patterns, we only need 5. From them, 2 are very easy to implement, and 2 are hardly ever needed. So you can focus on really really understanding just one: `gen_server`.  
Besides that, you also get a huge standard library that encapsulates a lot of common functions and data structures so you don’t need to write them over and over yourself.

---

<div class="post-metadata">

**Author:** ![vkatsuba](https://erlangforums.com/user_avatar/erlangforums.com/vkatsuba/32/314_2.png) [@vkatsuba](https://erlangforums.com/u/vkatsuba)\
**Post date:** [January 18, 2022, 8:21am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/5 "2022-01-18T08:21:00Z")

</div>

![red-pill-blue-pill-sm1](https://erlangforums.com/uploads/default/original/2X/b/bb3f0da4b44c4d97dd5b13db54bcbb4e0f20c59f.jpeg)

---

<div class="post-metadata">

**Author:** ![josevalim](https://erlangforums.com/user_avatar/erlangforums.com/josevalim/32/353_2.png) [@josevalim](https://erlangforums.com/u/josevalim)\
**Post date:** [January 18, 2022, 11:24am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/6 "2022-01-18T11:24:38Z")

</div>

> [@AstonJ](#):
>
> Let’s kick off this section with the thing that most people wonder when they come to Erlang - what the heck is OTP?

My take: all languages have a set of modules and libraries that ship as part of the language. This is called the “Standard Library”. In Erlang, the standard library is known as OTP, Open Telecom Platform, because originally it had many functionality related to telecommunication, but today it is as general and standard as most other languages.

---

<div class="post-metadata">

**Author:** ![AstonJ](https://erlangforums.com/user_avatar/erlangforums.com/astonj/32/9_2.png) [@AstonJ](https://erlangforums.com/u/AstonJ)\
**Post date:** [January 18, 2022, 6:41pm UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/7 "2022-01-18T18:41:13Z")

</div>

> [@Rainer](#):
>
> Maybe at the beginning I wouldn’t say anything about OTP but start with the actor model itself.

Here ya go Rainer: [How would you explain the Actor model to a newbie?](https://erlangforums.com/t/how-would-you-explain-the-actor-model-to-a-newbie/947) :003:

> [@Maartz](#):
>
> I’d explain what a GenServer is first. In a OOP fashion, I guess.

And one for you too Maartz: [How would you explain what a gen\_server is to a newbie?](https://erlangforums.com/t/how-would-you-explain-what-a-gen-server-is-to-a-newbie/948) :003:

> [@elbrujohalcon](#):
>
> It’s like the [book of patterns](https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612), but instead of a book, you get running code that you can just use (you don’t need to write it yourself), and instead of 80 patterns, we only need 5. From them, 2 are very easy to implement, and 2 are hardly ever needed. So you can focus on really really understanding just one: `gen_server`.  
> Besides that, you also get a huge standard library that encapsulates a lot of common functions and data structures so you don’t need to write them over and over yourself.

That’s great Brujo :023: (You might like the thread posted [above](https://erlangforums.com/t/how-would-you-explain-what-a-gen-server-is-to-a-newbie/948) too!)

> [@vkatsuba](#):
>
> red-pill-blue-pill-sm1798×326 58.7 KB

Red pill explanation please! 😜

> [@josevalim](#):
>
> My take: all languages have a set of modules and libraries that ship as part of the language. This is called the “Standard Library”. In Erlang, the standard library is known as OTP, Open Telecom Platform, because originally it had many functionality related to telecommunication, but today it is as general and standard as most other languages.

_Moved my reply here: [Should OTP be the Standard Library?](https://erlangforums.com/t/should-otp-be-the-standard-library/957/)_

---

<div class="post-metadata">

**Author:** ![AstonJ](https://erlangforums.com/user_avatar/erlangforums.com/astonj/32/9_2.png) [@AstonJ](https://erlangforums.com/u/AstonJ)\
**Post date:** [January 20, 2022, 1:51am UTC](https://erlangforums.com/t/how-would-you-explain-otp-to-a-newbie/944/8 "2022-01-20T01:51:20Z")

</div>

Split this topic on January 20, 2022, 1:51am UTC

3 posts were moved into a new topic: [Should OTP be the Standard Library?](https://erlangforums.com/t/should-otp-be-the-standard-library/957/2)
