Erlang Tutorial

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 182

  • @vickyconnelly3831
    @vickyconnelly3831 7 років тому +20

    Thank you so much for this. I requested it months ago and though you were never going to do it :(
    I learned a lot from the video however you really should have covered message passing between processes (since that is the main thing about erlang). Still this is great! Love you!

    • @derekbanas
      @derekbanas  7 років тому +7

      Thank you :) Sorry it took so long. I'll cover Elixir next and will definitely do a little about message passing.

    • @delamberty
      @delamberty 3 роки тому

      Thank you, waiting for elixir part

    • @AliAzizQualityEducation
      @AliAzizQualityEducation Рік тому

      Erlang Interview latest Q & A : ua-cam.com/video/2DiEAAo2Rbo/v-deo.html

    • @JuLimaNeres-ft2ri
      @JuLimaNeres-ft2ri 3 місяці тому

      47:23 47:24 47:27 47:28

  • @jaspersanchez7606
    @jaspersanchez7606 4 роки тому +4

    This is the best Erlang tutorial so far. Thank you so much for this!

    • @derekbanas
      @derekbanas  4 роки тому +1

      Thank you for the compliment :)

  • @MarvinDHernandez
    @MarvinDHernandez 4 роки тому +2

    The custom for loop does not yield the correct answer if Min != 1. It also does not print out the numbers from low to high (as stated in the video). The following does work :
    for(Max, Min) when Max < Min ->
    ok;

    for(Max, Min) when Max >= Min ->
    io:fwrite("Num : ~p
    ", [Min]),
    for(Max, Min+1).
    Thanks Don for pointing out the order was incorrect.

  • @MrNemhiszemel
    @MrNemhiszemel 7 років тому +6

    Thank you for creating this video. It is really great!
    I found one thing, which I hardly understand first:
    You put that extra parameter into the function "sum" around 35:10 and say that the value would be seen as it runs but after that while you ran it nothing was visible from the "io:.." line..
    I put this into main():
    sum([1,2,3], 0)
    and I received this as output:
    Sum : 0
    Sum : 1
    Sum : 3
    6
    I think this is the way the function should work. It needs to get that extra parameter..

    • @tiborszalay2812
      @tiborszalay2812 6 років тому +2

      Thank you so much, I have been thinking of the solution for several hours. Derek of course should not be blamed because the IDE has a very annoying caching which can confuse a lot of us. Messing up the code on purpose then going back resets that caching.

  • @OrchidAlloy
    @OrchidAlloy 5 років тому +20

    Only downside to this tutorial is using Eclipse

  • @ethanpaulmorgan5123
    @ethanpaulmorgan5123 7 років тому +5

    Thank you Derek, you're a phenomenal man. Keep up the fantastic work :D

  • @thanhquocbaonguyen8379
    @thanhquocbaonguyen8379 3 роки тому

    thank you for your video briefly going through all the introductions into the Erlang language. it was really helpful for my internship.

    • @derekbanas
      @derekbanas  3 роки тому +1

      I’m very happy to be of help :) I wish you the best on your internship

  • @OliverBenson2024
    @OliverBenson2024 7 років тому +1

    Thanks for the video on Erlang Derek!

  • @mukut5ul
    @mukut5ul 3 роки тому +2

    sum([],Sum) ->Sum;
    sum(H|T,Sum)->H+Sum.
    Throwing error in main sum([1,2,3]).
    sum/0 undefined
    Should be right cal?
    sum([1,2,3],0).

  • @RockingGuySumit
    @RockingGuySumit 7 років тому

    thanks a lot Derek Banas, I am one of those who requested you to make video on Erlang programming. you replied me too on that comment request. i will tell everyone in my university to watch this video(without 'ad block'). thank you.

    • @derekbanas
      @derekbanas  7 років тому

      Thank you very much :) I appreciate it greatly when people turn off adblock :D

  • @markh1791
    @markh1791 2 роки тому

    Wow, that was a great summary. Thanks!

  • @uzKantHarrison
    @uzKantHarrison 5 років тому +1

    Another great video to get started with a new language, you even talk about concurrency! Good good job!

  • @SVGc1993
    @SVGc1993 3 роки тому

    It bothered me that you put semicolon in the beginning of a new line in the if statement at 14:39.... Just WHY. I looked up for if-else statement on Erlang somewhere else and you are the only one using it like that. It made me think semicolon meant "else", when it actually is there for finishing a single if statement.

  • @ilyeshammadi7278
    @ilyeshammadi7278 7 років тому +5

    Great video as always, will be awesome to do one for Elixir.

    • @derekbanas
      @derekbanas  7 років тому +3

      Thank you :) Elixir will be up very soon

  • @romanext921
    @romanext921 2 роки тому

    41:40 why is the record needed when we can create maps with #{} ?

  • @Ellenki_007
    @Ellenki_007 3 роки тому +1

    Today i learnt upto 29:50 but you never taught how to take user inputs in this programming lanuage I am exhausted I need a break any ideas anyone what i should do.

  • @keviballa9033
    @keviballa9033 7 років тому +11

    Your voice sounds different in a good way

    • @derekbanas
      @derekbanas  7 років тому +4

      Thank you :) For a short period I added a slight treble boost to my voice, but now it is 100% natural

  • @mukut5ul
    @mukut5ul 3 роки тому

    Nice tutorial for starting up erlang

  • @pabloraindogarcia8107
    @pabloraindogarcia8107 4 роки тому +1

    Omg advanced mathematics videos pleaaase topology, calculus of variations, etc in one video.

    • @derekbanas
      @derekbanas  4 роки тому

      Calculus is coming next. I just finished Linear Algebra

  • @MathematicalCowboy
    @MathematicalCowboy 4 роки тому +3

    Did you also create an Elixir tutorial? You're great! Where do you teach, Derek? How do you know so many different programming languages? Do you also know Wolfram Mathematica? Mathematica is very cool! The way Mathematica deals with lists is very similar to how lists are handled in Python, Haskell, Erlang, etc. List comprehensions and writing recursive functions that traverse and manipulate lists. Very cool stuff. And you are a wonderful teacher! I love your videos. Oh yeah, can you PLEASE make a video that introduces us to concurrent programming in Erlang. I sort of get the basics of it, but concurrent programming can get very confusing. Much more complicated than regular functional programming. Thank you.

    • @derekbanas
      @derekbanas  4 роки тому +1

      Thank you for the nice compliment :) Here is my Elixir tutorial ua-cam.com/video/pBNOavRoNL0/v-deo.html I used to teach at a community college years ago, but aside from that I've been making videos like this for over a decade. I'll see what I can do about your requests.

    • @AliAzizQualityEducation
      @AliAzizQualityEducation Рік тому

      Erlang Interview latest Q & A : ua-cam.com/video/2DiEAAo2Rbo/v-deo.html

  • @marcelabend7857
    @marcelabend7857 Рік тому

    Hey Derek, the link in the description does not work. I also tried to check out your "LEARN TRIGONOMETRY" but it's the same issue. Just wanted to let you know.

  • @chuanweitu2886
    @chuanweitu2886 6 років тому

    35:58 there is an compile error. Why can still run the program? Please Help.

  • @pauldhartley
    @pauldhartley 8 місяців тому

    I think there is an error in the for loop example as Min is not used. This is demonstrated in the spawn example. Otherwise good video, thank you. I see this has already been mentioned below.

  • @2271masoud
    @2271masoud 7 років тому

    Thanks derek.great tutorial

  • @andressolar517
    @andressolar517 3 роки тому

    excellent tutorial!!! Thx

  • @MagicShasam
    @MagicShasam 2 роки тому

    Great Video! Thank you

  • @RjAhtesham
    @RjAhtesham 3 роки тому

    AMAZING, AND THANKS FOR THIS TUTORIAL

    • @derekbanas
      @derekbanas  3 роки тому

      Thank you very much :) I'm happy I could help

  • @MatsBohlinsson
    @MatsBohlinsson 4 роки тому

    Extremely good!

  • @michaelrichter119
    @michaelrichter119 6 років тому +2

    Very nice, I learned a lot! But I think your for-function needs tweaking, since it ignores the Min-value. How about something like this:
    for(Max, Min) when Max =< Min ->
    ok;
    for(Max, Min) when Max > Min ->
    io:fwrite("Num: ~p
    ", [Max]),
    for(Max-1,Min).

    • @MarvinDHernandez
      @MarvinDHernandez 4 роки тому

      Does not print out numbers from low to high. Also, both Max and Min should get printed out.

  • @temidaratemitade2325
    @temidaratemitade2325 4 роки тому

    This makes a lot of sense,thank you.

  • @michaeltheisen
    @michaeltheisen 2 роки тому

    how do you keep managing to save my life at least once every school quarter?
    we just started erlang and I got lost so I googled a tutorial and lo and behold!!

  • @MarkVolkmann
    @MarkVolkmann 7 місяців тому

    Does Erlang really refer to function parameters as attributes?

  • @Mcblaze55
    @Mcblaze55 7 років тому

    For the do math protion you have A + B, A - B. But your program only outputs the A - B portion and not both math operations. Why is that? I'm currently trying to create a program that has a main function and is passing 2 variables to two other functions which are sum and difference but only one function output and its only the bottom one.

  • @venkatakalyanichillapalli562
    @venkatakalyanichillapalli562 3 роки тому

    Please do more videos on erlang programming language

  • @draakisback
    @draakisback 7 років тому

    very cool that you did Erlang. I'm surprised that it was more highly in demand then elixir but I guess knowing Erlang helps with elixir as well. thank you for the video, it will be invaluable for me.

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I'll do Elixir next

    • @draakisback
      @draakisback 7 років тому

      Elixir is great, the syntax is a drastic improvement over Erlang by itself, but it also comes with some really nice features that aren't in erlang.
      It also seems to be gaining a ton of traction in the industry despite it being a FP language. (I wish clojure was getting the same traction.)

    • @AliAzizQualityEducation
      @AliAzizQualityEducation Рік тому

      Erlang Interview latest Q & A : ua-cam.com/video/2DiEAAo2Rbo/v-deo.html

  • @johnpaul2402
    @johnpaul2402 4 місяці тому

    Who's here after the stack overflow developer survey 😂

  • @alessadrodiantonio3186
    @alessadrodiantonio3186 6 років тому

    I would like to know in case my console dose not taking my orders to run the code
    what i have done , I have written this code , then to run the fist example in the video. I have to set the path for example C:\Users\acer\eclipse-workspace\Tut.erl.
    my problem is that the console is not taking it to continue on running the example .
    I am learning this for my project at the school.
    thanks for your tutorial its very good for beginners.

    • @alessadrodiantonio3186
      @alessadrodiantonio3186 6 років тому

      and I always have a box with msg telling me : there are no runtime launched , please start a runtime to send to commands to.

  • @bharat639
    @bharat639 7 років тому

    Excellent tutorial.

  • @MattieCooper10000
    @MattieCooper10000 7 років тому

    Splendid! Thanks!

  • @ramasubbareddy6147
    @ramasubbareddy6147 7 років тому

    you are simply super, keep going

    • @derekbanas
      @derekbanas  7 років тому +1

      Thank you :) Many more videos are coming

  • @doanahmed2983
    @doanahmed2983 7 років тому

    do you have angular 2 tutorial ? or i could not see, keep up good work, thanks a lot for each video separately

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I only have an Angular 1 tutorial at this time

  • @ethanpaulmorgan5123
    @ethanpaulmorgan5123 7 років тому

    I understand that this isn't to do with Erlang, But what is the best lisp dialect to learn? Possibly to make small games/software

    • @derekbanas
      @derekbanas  7 років тому

      Common Lisp is what you'll see with most commercial apps. For games I definitely wouldn't use Lisp

    • @scopestacker9787
      @scopestacker9787 7 років тому

      Emacs Lisp perhaps. But it already has Pong and Tetris lol

    • @ethanpaulmorgan5123
      @ethanpaulmorgan5123 7 років тому

      I'm looking into Common Lisp as Derek already has a tutorial on it. But thanks anyway @scopestacker

    • @ethanpaulmorgan5123
      @ethanpaulmorgan5123 7 років тому

      Okay. Thanks Derek :)

  • @vinuhosanagar1
    @vinuhosanagar1 7 років тому

    Thank you Derek. When is C# going to resume?
    I mean WPF MVVM, Xamarin, Unity?

    • @derekbanas
      @derekbanas  7 років тому +1

      In a week I'll upload 2 more C# tutorials. I hope to start Unity soon after

  • @pavanikumbam5714
    @pavanikumbam5714 2 роки тому

    Can you give example for one camel case program in erlang

  • @johannbauer2863
    @johannbauer2863 6 років тому +1

    That looks like a functional prolog :D

  • @SouthernSemicolon
    @SouthernSemicolon 4 роки тому

    Thank you so much guy. I love your video.

  • @cacianobeast
    @cacianobeast 7 років тому

    you and mindspace are the two best tutorial makers

    • @derekbanas
      @derekbanas  7 років тому

      Thank you for the compliment :)

  • @johngalew2155
    @johngalew2155 7 років тому

    Shalt ye do algorithms videos any time soon? if yes could thou please include "Dynamic Programming"?

    • @derekbanas
      @derekbanas  7 років тому

      I have an algorithms tutorial ua-cam.com/video/f5OD9CKrZEw/v-deo.html I'll see what I can do about dynamic programming

  • @vasilnszografos2231
    @vasilnszografos2231 7 років тому

    Can you create a series of videos for the Clojure programming language ?

    • @derekbanas
      @derekbanas  7 років тому +1

      I'm working on it. Here is my Lisp tutorial in the mean time if your interested ua-cam.com/video/ymSq4wHrqyU/v-deo.html

  • @martinh7544
    @martinh7544 7 років тому

    U are the best!

  • @SurajKumar-dh9uo
    @SurajKumar-dh9uo 7 років тому

    Finally!!!!

  • @gabriellindemann2163
    @gabriellindemann2163 7 років тому

    Hey Derek! Thanks a lot for covering the stuff I requested, I'm very grateful :) Are you going to do Phoenix sometime after Elixir? Could you perhaps share what videos are coming up next? :)

    • @derekbanas
      @derekbanas  7 років тому +2

      I'm very happy that you liked the video :) Phoenix is coming, but first I'll cover Elixir, F# and Swift 3

  • @rollinpotato9222
    @rollinpotato9222 7 років тому

    Derek can you please make a tutorial on opencv? Thank you! Love your videos!

  • @vinuhosanagar1
    @vinuhosanagar1 7 років тому

    thank you. Is MVVM included in agenda?

  • @raj-cp5nu
    @raj-cp5nu 7 років тому

    Hey Derek what sort of industries/jobs use Erlang

    • @derekbanas
      @derekbanas  7 років тому +1

      It is used a lot in the telephone space. That is where it originated. It is also used by messaging apps like whatsapp, facebook, yahoo, etc.

  • @sugandhsai
    @sugandhsai 7 років тому

    man you are good...I wish I had this skill.

    • @derekbanas
      @derekbanas  7 років тому +1

      Thank you :) You can do anything I can I promise

  • @saajid6149
    @saajid6149 7 років тому

    When is C# again?And what is the first game ur doing?

    • @derekbanas
      @derekbanas  7 років тому +1

      I'll have another C# tutorial next Saturday. Unity is in the works

  • @cliffmathew
    @cliffmathew 5 років тому

    thanks

  • @АртёмБухавцов
    @АртёмБухавцов 7 років тому +1

    cool!

  • @lisbey759
    @lisbey759 4 роки тому

    min 35:46 when you dont care about the function Arity .... lol :)

  • @brucewayne7195
    @brucewayne7195 7 років тому +2

    what can you do with this language

    • @Twister915
      @Twister915 7 років тому +2

      It's used for applications that need to stay online for years, processing tons of requests. It's popular in telecoms for processing SMS and internal authentications. It's very popular in chat servers, and was used for a while by Facebook, and has always been used by WhatsApp. The entire point of erlang is high throughput, cross process communications, in a simple language.

    • @KrishnaDasPC
      @KrishnaDasPC 6 років тому

      Whatsapp was originally made in Erlang.

  • @GASRON
    @GASRON 7 років тому

    can u made few another video about erlang?

    • @derekbanas
      @derekbanas  7 років тому

      I'll do anything with enough requests

  • @BlackJaguarTV
    @BlackJaguarTV 7 років тому +10

    please do a brainfuck tutorial :D

    • @scopestacker9787
      @scopestacker9787 7 років тому

      Haha, this would be definitely something for later

  • @daniellaszlo7049
    @daniellaszlo7049 7 років тому

    Will you also make a video about Elixir? Would be aweeesome :)

    • @derekbanas
      @derekbanas  7 років тому +2

      Yes that is coming next. I just need some time to finish it

    • @daniellaszlo7049
      @daniellaszlo7049 7 років тому

      Derek Banas yay, thank you!

  • @scopestacker9787
    @scopestacker9787 7 років тому

    Hmm, Erlang Syntax highlightning seems a bit poor in Eclipse. Good part by the way!

    • @derekbanas
      @derekbanas  7 років тому +1

      Yes I know it kind of stinks. I used Eclipse only because I was asked to set it up that way. I'd use Sublime or Atom

  • @ravenclaw2437
    @ravenclaw2437 7 років тому

    I never hear about that language, what people use for?

    • @derekbanas
      @derekbanas  7 років тому +1

      The people that I know that use it use it because it scales extremely well for large distributed systems. It is great at running millions of concurrent processes.

  • @manhpham3917
    @manhpham3917 5 років тому +1

    Good

  • @itbitsofknowledge5597
    @itbitsofknowledge5597 4 роки тому

    Whatsapp was created using such a complex language?😱😱 Calling and video calla are possible in this language?

    • @derekbanas
      @derekbanas  4 роки тому +1

      I wouldn't use Erlang for that

  • @paulfrischknecht3999
    @paulfrischknecht3999 4 роки тому

    i don't know about you, but I could not care less about what the standard library provides and built in structures/operators and pattern matching and everything in Erlang. If you have seen this tuff in any language you got the gist. The actor model/shared nothing and message passing and error handling stuff is what really makes erlang stand out. All the actual sequential implementation of the processes could be done in any language for all I care... It is unfortunate that you cannot easily use C or any language to implement the processes... the process system should be independent of how the processes are implemented.

  • @RoniStiawan_physics
    @RoniStiawan_physics 7 років тому

    Please make R and Julia tutorial. thanks

  • @rawannona5682
    @rawannona5682 7 років тому +1

    helloo i have question pls about imo application ..deos imo recorder video calls in a server or imo save all video call online in server ...thank you ...

  • @eldersprig
    @eldersprig 7 років тому

    Elixer?

    • @derekbanas
      @derekbanas  7 років тому +1

      It is coming in about a week

  • @mib3487
    @mib3487 7 років тому

    Thanks for the java tutorials bro.
    What's ur major

    • @derekbanas
      @derekbanas  7 років тому

      You're very welcome :) I went to school for electrical engineering and illustration

    • @Dekutard
      @Dekutard 7 років тому

      Derek Banas HOW DO YOU KNOW EVERYTHING

    • @derekbanas
      @derekbanas  7 років тому

      I don't. I'm actually not that smart

    • @mib3487
      @mib3487 7 років тому

      What made you interested in CS?

    • @mib3487
      @mib3487 7 років тому

      Derek Banas ^

  • @rydohg
    @rydohg 7 років тому +7

    No April fools?

    • @ethanpaulmorgan5123
      @ethanpaulmorgan5123 7 років тому +2

      Shit, you're making me skeptical now haha

    • @derekbanas
      @derekbanas  7 років тому +26

      No I always want to do a whitespace tutorial, but I never get to it. Maybe next year :)

  • @sobanya_228
    @sobanya_228 6 років тому

    Why is Erlang called purely functional? You just throw in IO everywhere.

  • @YTcss
    @YTcss 7 років тому

    how do you even learn so many programming language when i'm struggling to even get one right :'D

    • @derekbanas
      @derekbanas  7 років тому +1

      After you learn a few the rest are pretty easy. Stick to it and you'll be able to switch

    • @scopestacker9787
      @scopestacker9787 7 років тому +2

      Once you learned 2 languages, one functional, one object oriented, you will be able to learn anything quickly. Trust me there is no magic.

    • @scopestacker9787
      @scopestacker9787 7 років тому +1

      Also the best way to learn is in my opinion to take existing code study and modify it and you ll get to it very fast

    • @YTcss
      @YTcss 7 років тому

      woah didn't expect to get any reply from my silly comment especially from Derek hahah. Anyway thanks guys for all the feedback and comment. Cheers :)

    • @strengthbro0
      @strengthbro0 5 років тому

      @@YTcss how's your quest going since it's been 2 years?

  • @constantinezh7156
    @constantinezh7156 6 років тому

    Sup Derek? ?

  • @pavlospanteliadis5595
    @pavlospanteliadis5595 6 років тому

    I'm watching your videos because I have a mandatory course in functional programming and I FOOCKIN HATE IT!

    • @lincolnsand5127
      @lincolnsand5127 6 років тому

      Functional programming is good. Stop being silly.

  • @andreberloth9325
    @andreberloth9325 5 років тому

    I made it!

  • @scopestacker9787
    @scopestacker9787 7 років тому

    Tomorrow Elixir showtime?

    • @derekbanas
      @derekbanas  7 років тому +1

      The Elixir tutorial will probably be up next Saturday. Sorry these learn in ones are hard to make.

  • @jakkjs3290
    @jakkjs3290 7 років тому

    watched

    • @derekbanas
      @derekbanas  7 років тому +1

      Thank you :)

    • @jakkjs3290
      @jakkjs3290 7 років тому

      Derek Banas i want lern E so what do you recommend but i want speak with any friend American on fecabook ; WhatsApp; anything​ . so.what I do ?

    • @derekbanas
      @derekbanas  7 років тому

      Have you seen Duolingo? www.duolingo.com/

    • @jakkjs3290
      @jakkjs3290 7 років тому

      Derek Banas thanks for u I'll install on Google play . . I hope you come one visit to Egypt . welcome to anytime

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I would definitely like to visit some day

  • @Karonclip
    @Karonclip 2 роки тому

    A bit of java here

  • @temidaratemitade2325
    @temidaratemitade2325 4 роки тому

    what's your email id, Got few questions for you

    • @derekbanas
      @derekbanas  4 роки тому

      UA-cam is the best way to reach me. My email gets 5,000 messages a day

  • @TheMatrix987
    @TheMatrix987 2 роки тому

    I Made It!

  • @kumu2024
    @kumu2024 Рік тому

    Thanks. But I never seen any other computer language that is so dirty, not understandable syntax like erlang.
    Horrible syntax, horrible to convert to any other language.
    I am trying to convert Wings3D .. and it is just so not understandable code. .. oh!
    I tried to find any converter to assembly that works not just some sites admit that but you don't find it. or to any other language, there is not. Don't waste your time with this horrible language.

  • @goldensimp7729
    @goldensimp7729 7 років тому

    second

  • @skullteria
    @skullteria 7 років тому +5

    The language looks unnecessary complicated. Why should anyone prefer this syntax? hipster nerd swag? btw the syntax is not an excuse for the use of compiled code

    • @derekbanas
      @derekbanas  7 років тому +5

      It isn't for everyone. It is a specialized language that is great at executing thousands of processes

    • @skullteria
      @skullteria 7 років тому +3

      What I meant with my last sentence was: I know the great power of this language in use for this specific area, but I also know that this doesn't explain why they designed the syntax so unattractive. As cool as the power of the language is as lame is the syntax u have to use for it. Btw I love this tutorial u explain everything so simple and interesting. The power of the compiler is awesome, but the language for the compiler is the problem.

    • @OverG88
      @OverG88 7 років тому +3

      Erlang is actually very simple language and fairly old. It just uses different approach to solve problems. It will take way less time to learn Erlang than e.g. Scala.

    • @markdanforth3226
      @markdanforth3226 6 років тому +3

      Hipster nerd swag is very dismissive considering the language came out decades before those terms became a thing. Not knocking on you in particular just the phrasing. Listen to Joe Armstrong's (inventor of Erlang) speeches.

    • @sobanya_228
      @sobanya_228 6 років тому +2

      After watching video about prolog and then this video, this syntax is actually makes sense.
      It's not like in 1985 there was many modern syntaxes around. There was no Haskell, Python or Ruby. Between syntaxes of Prolog, Lisp and C, seems like Prolog was the best choice at the time.

  • @bharat639
    @bharat639 7 років тому

    Excellent tutorial.

  • @harsharaikkonen1
    @harsharaikkonen1 6 років тому

    Excellent tutorial