Coding Trees in Python - Computerphile

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 492

  • @jpoopist
    @jpoopist 4 ปีที่แล้ว +64

    Thorsten's deadpan humor is great. I get the feeling that even the cameraman didn't catch all of his humorous little absurdities.

  • @Cesar-ey7wu
    @Cesar-ey7wu 4 ปีที่แล้ว +100

    "there is a limited amount of brackets in the world, and we try to save them"
    *looks at Lisp with anger*

    • @foggy7595
      @foggy7595 2 ปีที่แล้ว

      Thankfully, TCO lets us reuse our parens, they are weapons of a more civilized age after all...

  • @superceosnow9103
    @superceosnow9103 4 ปีที่แล้ว +340

    I love these videos withe Professor Thorsten, they are very educational and informative while also serving as a sort of ASMR.

    • @MrLeeKnees
      @MrLeeKnees 4 ปีที่แล้ว +19

      his voice is weirdly soothing

    • @EvolutionWendy
      @EvolutionWendy 3 ปีที่แล้ว +1

      The best relaxed style, making coding obvious and fun

  • @bennievaneeden2720
    @bennievaneeden2720 4 ปีที่แล้ว +399

    "I broke the first rule of programming and that is copying code. There are of course some exceptions, like if you're a professor"

    • @hifjurrahman8060
      @hifjurrahman8060 3 ปีที่แล้ว +6

      @Jaxon Valentino stop scamming people dickhead

    • @freezedTIM
      @freezedTIM 2 ปีที่แล้ว +18

      the first rule should be "your code is never unique just copy from others and make sure it works correctly by yourself

    • @Xx_Eric_was_Here_xX
      @Xx_Eric_was_Here_xX 2 ปีที่แล้ว +4

      @@freezedTIM horrendous mentality

    • @Trucho1996
      @Trucho1996 ปีที่แล้ว +1

      As a senior dev I too take exceptions

    • @fackyoutube8452
      @fackyoutube8452 ปีที่แล้ว +2

      @@Xx_Eric_was_Here_xXthat’s literally what the workplace is like what are you saying?

  • @paulnikonowicz
    @paulnikonowicz 4 ปีที่แล้ว +234

    I'd like to see a Computerphile-Advanced channel where we get to see more of what the instructors are really working on.

  • @kebman
    @kebman 4 ปีที่แล้ว +89

    ‘Very exciting! I always wanted to know where my _Times()_ object lives, in case I want to visit it…’
    - Professor Thorsten Altenkirch

  • @brownlantern_
    @brownlantern_ 4 ปีที่แล้ว +30

    thorsten is a really interesting guy. got to meet him in poland a few weeks ago, and it was an honor!

  • @Ownage4lif31
    @Ownage4lif31 4 ปีที่แล้ว +408

    Why are pple complaining. I can hear this man fine with no confusion.

    • @ishaanvatus3536
      @ishaanvatus3536 4 ปีที่แล้ว +24

      He does have an accent, but I can still understand him fairly well

    • @blutsport8979
      @blutsport8979 4 ปีที่แล้ว +5

      same here

    • @BorxFranker
      @BorxFranker 4 ปีที่แล้ว +62

      I understand him just fine and english is my second language. If you want confusing check the whiteboard.

    • @alexispalacios210
      @alexispalacios210 4 ปีที่แล้ว +1

      Que ? Nani? Wut?

    • @LenHarms
      @LenHarms 4 ปีที่แล้ว +6

      I like his accent but I can understand people not being able to. We aren't all taught the same language and accents throughout the world.

  • @psychoh13
    @psychoh13 4 ปีที่แล้ว +751

    The fact that he doesn't put spaces after his commas but does around his colons makes me very upset.

    • @StefanReich
      @StefanReich 4 ปีที่แล้ว +18

      LOL yeah that is utter madness

    • @dustysparks
      @dustysparks 4 ปีที่แล้ว +9

      I still put semicolons at the end of lines instinctively from c++/c#, but it's legal... and it's clearer to me at least

    • @mighty3257
      @mighty3257 4 ปีที่แล้ว +8

      ​@@dustysparks it is to be able to put more than one expression in a single line
      example:$
      x=1;x=2
      print(x)
      Most Code editors supporting Python will highlight the semicolon in red unless you put an expression after it.

    • @XDTuber
      @XDTuber 4 ปีที่แล้ว +3

      I don't put spaces after comma because I'll type much slower

    • @psychoh13
      @psychoh13 4 ปีที่แล้ว +3

      @@XDTuber Most of my code is autocompleted.

  • @smeuse
    @smeuse 4 ปีที่แล้ว +17

    I hadn't seen greenbar printer paper in 25 years, then I started watching Computerphile. I didn't realize they still made it, or printers that can print on it :)

  • @MecchaKakkoi
    @MecchaKakkoi 4 ปีที่แล้ว +187

    SAVE THE BRACKETS!

    • @felixthehuman
      @felixthehuman 4 ปีที่แล้ว +2

      @@perfumedmanatee6235 RPN vs prefix notation: who will win?

    • @Ceelvain
      @Ceelvain 4 ปีที่แล้ว +3

      @@felixthehuman Readability. Polish and reverse polish notations have nice properties. But they're harder to read than the infix notation with redundant bracket elimination.

    • @felixthehuman
      @felixthehuman 4 ปีที่แล้ว

      @@Ceelvainwhat is a redundant bracket? Are we counting on readers to know the order of operations?

    • @Ceelvain
      @Ceelvain 4 ปีที่แล้ว +2

      @@felixthehuman Of course.
      Not only they should know. But the context also help making sens of the expressions.

    • @drprzulj
      @drprzulj 4 ปีที่แล้ว +1

      And then he writes a line of code with 10 brackets :D 9:18

  • @elclippo4182
    @elclippo4182 4 ปีที่แล้ว +83

    3:18 Just use renewable brackets. Sustainable mathematics.

    • @mathis8210
      @mathis8210 4 ปีที่แล้ว +8

      You should also check if your brackets were raised under appropriate conditions and not in a disgusting bracket factory.

    • @crunchylemon2849
      @crunchylemon2849 4 ปีที่แล้ว +3

      Organic curly brackets and such, my Semi Colons are grown in my own garden.

  • @fodderhaystack3218
    @fodderhaystack3218 4 ปีที่แล้ว +151

    Warning: Liberally apply lotion prior to watching, to avoid Prof. Altenkirch's dry humor from shriveling you into a human Triscuit.
    P. S. - You are hilarious and informative. Love your videos.

    •  4 ปีที่แล้ว +4

      I never really (as in REALLY) felt the meaning of dry humor. Thanks to this video I now have something to illustrate the lunar-desert variety.

  • @Lexaire
    @Lexaire 4 ปีที่แล้ว +8

    This is my single favorite Python video. Huge thank you to Professor Altenkirch for sharing with us!

  • @MikeDest
    @MikeDest 4 ปีที่แล้ว +161

    I remember the part in Independence Day when this guy was killed by one of the aliens in Area 51.

    • @M1cr0p47
      @M1cr0p47 4 ปีที่แล้ว +3

      That's where I saw him before ;)

    • @chuckinator0
      @chuckinator0 4 ปีที่แล้ว +5

      No no no. That was lieutenant commander Data of the USS Enterprise

    • @machbauer132
      @machbauer132 4 ปีที่แล้ว +1

      Actually he wasn't for some reason...

  • @pskry
    @pskry 4 ปีที่แล้ว +57

    0:00 Ja... Gotta love Thorsten 😍

  • @thetraveller1246
    @thetraveller1246 4 ปีที่แล้ว +46

    Thank goodness Thorsten has finally brought the great bracket shortage to the public’s attention. Maybe something will get done now!

    • @cshairydude
      @cshairydude 4 ปีที่แล้ว +1

      Perhaps by coding in Python we can covert all the braces we're saving into precious brackets.

    • @myce-liam
      @myce-liam 2 ปีที่แล้ว +1

      @@cshairydude We need to start using trees more often in Python. They are abundant on this planet and frankly wouldn't be missed. Brackets are now an endangered species.

    • @vlaskz
      @vlaskz ปีที่แล้ว

      I see a pipBoy, I upvote. I'm a man of culture.

  • @dinofirechief40
    @dinofirechief40 4 ปีที่แล้ว +47

    At first when he said it's bad to copy code, my reaction is "what the heck is wrong with you?" But then I realized he's basically talking about DRY (don't repeat yourself) vs copy and paste. Sanity restored.

    • @FalkBay
      @FalkBay 4 ปีที่แล้ว +4

      Yes in fact, my experience is that it makes a huge difference in terms of maintainability of the code when you factor out repeated or almost repeated code.

    • @ecicce6749
      @ecicce6749 4 ปีที่แล้ว

      copy and paste in my experience is causing 80% of the bugs and errors in code though

    • @Norsilca
      @Norsilca 4 ปีที่แล้ว

      @@ecicce6749 If you literally copy and paste, that's bad. But if by "copy" you mean "transcribe", it's fine. Just make sure you understand what you're using.

    • @TheDeadSource
      @TheDeadSource 3 ปีที่แล้ว +1

      Wait, in all this time nobody made the pun about him having DRY humour?

  • @andyyyz9114
    @andyyyz9114 4 ปีที่แล้ว +144

    Didn't know there was a bracket shortage. I'll be leaving them out of all my code now !

    • @mal2ksc
      @mal2ksc 4 ปีที่แล้ว +15

      He's going on outdated standards. We've moved on to BPv6 and can handle 2^128 brackets now.

    • @schilduil
      @schilduil 4 ปีที่แล้ว +10

      That's also the reason he uses Python: no curly brackets, aka the 'endangered' brackets.

    • @v0ltgaming344
      @v0ltgaming344 4 ปีที่แล้ว +5

      Bert Raeymaekers dictionaries want to talk to you

    • @ekrem_dincel
      @ekrem_dincel 4 ปีที่แล้ว

      I didnt understand this.

    • @swapode
      @swapode 4 ปีที่แล้ว +3

      Try Rust. The compiler will politely ask you to remove superfluous brackets.

  • @fazlerabbi2666
    @fazlerabbi2666 4 ปีที่แล้ว +46

    I love his dry humor

  • @spot1401
    @spot1401 4 ปีที่แล้ว +34

    Profs can copy code! Reminds me of a colleague who convinced his children that the car stereo would only play grown-up cassettes (back in the 90s)

    • @RedHair651
      @RedHair651 10 หลายเดือนก่อน

      😂

  • @btonasse
    @btonasse 4 ปีที่แล้ว +6

    This guy is great! Love how he made me think for a split second that he wanted to evaluate Ivan. I was like "Who is Ivan? The cameraman?"

    • @ivannaydenov4051
      @ivannaydenov4051 3 ปีที่แล้ว +2

      Imaging me watching the video at half past midnight almost falling asleep and woke up shocked when heard my name 😄

  • @scriptworld
    @scriptworld 4 ปีที่แล้ว +21

    19:35 "twölf" ...thats awesome!

  • @mfaizsyahmi
    @mfaizsyahmi 4 ปีที่แล้ว +18

    Everyone else: Save the Trees!
    Professor Thorsten Altenkirch: Save the Brackets! 3:18

  • @Trevor13666
    @Trevor13666 4 ปีที่แล้ว +416

    Oh dear! Looks like someone accidentally bought permanent markers for his whiteboard!!

    • @SupraTreck
      @SupraTreck 4 ปีที่แล้ว +24

      Just use a regular whiteboard pen on the permanent ink and you can remove it

    • @alicewyan
      @alicewyan 4 ปีที่แล้ว +26

      @@SupraTreck or some alcohol

    • @somethingsomething4103
      @somethingsomething4103 4 ปีที่แล้ว +3

      Many whiteboard pens get very hard to wipe away if you let them stay on the whiteboard too long. Maybe it's just the cheap ones, but that's my experience anyway.

    • @leo848
      @leo848 3 ปีที่แล้ว

      @@SupraTreck How does this work?

    • @SupraTreck
      @SupraTreck 3 ปีที่แล้ว

      @@leo848 Most likely the alcohol in the ink

  • @CatzHoek
    @CatzHoek 4 ปีที่แล้ว +20

    I absolutely love his dry humor. Save the brackets! And don't forget about the exceptions about copying code! Professors can copy code!

    • @retrorewind6042
      @retrorewind6042 2 ปีที่แล้ว

      us germans have a great sense of humor, haha

  • @JNCressey
    @JNCressey 4 ปีที่แล้ว +267

    imagine concatenating lots of little parts of strings and variables together
    this post by the f-string gang

    • @talhatariqyuluqatdis
      @talhatariqyuluqatdis 4 ปีที่แล้ว

      Wots an f string

    • @whuzzzup
      @whuzzzup 4 ปีที่แล้ว +28

      @@talhatariqyuluqatdis The best thing to ever been introduced to Python.

    • @Kenionatus
      @Kenionatus 4 ปีที่แล้ว +13

      @@talhatariqyuluqatdis In Python, you can construct strings from variables by writing e.g.
      f"The number is {numberVariable}"
      It looks arguably nicer than
      "The number is " + str(numberVariable)

    • @yeyu8521
      @yeyu8521 4 ปีที่แล้ว +14

      i worship the superior "".format()

    • @hexatested
      @hexatested 4 ปีที่แล้ว +19

      @@yeyu8521 on python3.6+, f-string much much faster than str.format().

  • @TheCrazySharkOrTheManicShark
    @TheCrazySharkOrTheManicShark 2 ปีที่แล้ว +5

    I really liked viewing this video after I learned about the compiler compilation method and how it basically breaks apart into various trees via tokens to represent data and special characters to compute processes. So watching this video after learning about that was a nice connection.

  • @RoelAdriaans
    @RoelAdriaans 4 ปีที่แล้ว +146

    Cries in pep-8 some more...

    • @pitrk
      @pitrk 4 ปีที่แล้ว +2

      Oh no, not again!

    • @dariuselijah9277
      @dariuselijah9277 4 ปีที่แล้ว +3

      "Pep8 unto thyself, not unto others" - Raymond Hettinger

    • @JGnLAU8OAWF6
      @JGnLAU8OAWF6 3 ปีที่แล้ว +1

      @@dariuselijah9277 it still hurts

  • @615bla
    @615bla 4 ปีที่แล้ว +13

    3:20
    i still remember the big brackets shortage of the 80's
    never again

  • @Lumpiluk
    @Lumpiluk 4 ปีที่แล้ว +42

    This video has taught me that Jupyter notebooks should really support linting for PEP 8 by default

  • @seinodernichtsein8710
    @seinodernichtsein8710 4 ปีที่แล้ว +82

    Denglisch ist immer wieder schön zu hören ;)

    • @jope4009
      @jope4009 4 ปีที่แล้ว +9

      Englisch mit deutschem Akzent ist nicht Denglisch.

    • @kinngrimm
      @kinngrimm 4 ปีที่แล้ว

      Denglish < "Nämberch English Spoken"

    • @alexss3
      @alexss3 4 ปีที่แล้ว

      Nein, Dänglisch ist was die Dänen eine Mischung von Englisch und Dänisch nennen

    • @gdash6925
      @gdash6925 4 ปีที่แล้ว

      uni-denglisch lets go

    • @DataMysterium
      @DataMysterium 4 ปีที่แล้ว

      I thought this is how french accent works...

  • @ziggyspaz
    @ziggyspaz 3 ปีที่แล้ว +7

    This makes complete sense, he’s building a partial interpreter by creating a parse tree and evaluating the tokenized expression that he self Lexed by hand

  • @micahpowch
    @micahpowch 4 ปีที่แล้ว +8

    "there is only a limited number of brackets in the world, we try to save brackets, its a bracket saving device"
    Get this man a podium, I wanna see him advocate more for bracket rights!

  • @heathfiebert5454
    @heathfiebert5454 4 ปีที่แล้ว +2

    I love listening to him so much that I bought his book to add to my Python collection. Only issue is, I don't hear his voice talking when I read it.

    • @ThorstenAltenkirch
      @ThorstenAltenkirch 3 ปีที่แล้ว +1

      I don't think an audio book version would catch on... :-)

  • @aldobernaltvbernal8745
    @aldobernaltvbernal8745 4 ปีที่แล้ว +73

    love the way he pronounces r

    • @michel3329
      @michel3329 4 ปีที่แล้ว +8

      ze Germans...

    • @bankoftrustnwobot3218
      @bankoftrustnwobot3218 4 ปีที่แล้ว +1

      ツMichel He is from spain

    • @daheck81
      @daheck81 4 ปีที่แล้ว +6

      BankOfTrust NWOBOT Are you kidding?

    • @davidschroeder3731
      @davidschroeder3731 4 ปีที่แล้ว

      p - "hlch" - lint, it's oddly satisfying

    • @michel3329
      @michel3329 4 ปีที่แล้ว +2

      @@bankoftrustnwobot3218 yeah nah. He's not

  • @0x656e
    @0x656e 4 ปีที่แล้ว +2

    I want more of this *LEGEND* videos I wish we had professor like him in our college.

  • @anocco
    @anocco 4 ปีที่แล้ว +3

    I love the way he teaches! We want next video on machine learning

  • @clemensbene1874
    @clemensbene1874 2 ปีที่แล้ว +1

    „This is why i‘m behind the camera“ i really felt that one 😂

  • @zss123456789
    @zss123456789 4 ปีที่แล้ว +5

    That's quite interesting, I never thought of the math expressions like that

  • @pedrov8868
    @pedrov8868 4 ปีที่แล้ว +2

    This guy is hilarious (both his humor and his mannerisms). Also very clever

  • @piyh3962
    @piyh3962 4 ปีที่แล้ว +36

    Gutteral "print" 11:07

    • @kurisu-makise
      @kurisu-makise 4 ปีที่แล้ว +5

      the hero we need but don't deserve

    • @devrim-oguz
      @devrim-oguz 4 ปีที่แล้ว +7

      Pğiinnt

  • @HISEROD
    @HISEROD 2 ปีที่แล้ว

    This is why node-based editors for various applications are so great. No more worrying about order of operations of figuring out how many brackets to type!

  • @michael-h95
    @michael-h95 4 ปีที่แล้ว

    Really enjoy your videos with Professor Altenkirch! He makes complex subjects easy to understand and fun to learn about.

  • @TheRandomSpectator
    @TheRandomSpectator 4 ปีที่แล้ว +73

    K but why did he draw the reddit snoo on his whiteboard?

  • @olfmombach260
    @olfmombach260 4 ปีที่แล้ว +2

    In this video especially the end about using this structure to generate derivatives is very interesting

  • @xdepictrolle3908
    @xdepictrolle3908 4 ปีที่แล้ว +32

    5:25 humble camera man ))

    • @KazzArie
      @KazzArie 4 ปีที่แล้ว +1

      Trollface.exe прав. Знаешь periodicvideos?

    • @xdepictrolle3908
      @xdepictrolle3908 4 ปีที่แล้ว

      what?

  • @charstringetje
    @charstringetje 4 ปีที่แล้ว +7

    @3:18 I never delete a bracket. I keep a file where I paste brackets whenever I cut them, for later use. ♻ Maybe I should scale that effort up and turn it into a REST interface and a vim plugin bound to x that will send them online for everyone to reuse... A question to TH-cam chat, should that use the POST verb or the PUT verb? I'm afraid the idempotency of PUT might break brackets beyond reusability.

  • @qugart.
    @qugart. 4 ปีที่แล้ว +4

    The Joy of Live Coding
    I'd order the whole blu-ray box. All 31 seasons.

  • @kaifkohari5298
    @kaifkohari5298 4 ปีที่แล้ว +2

    My concepts of trees got cleared after watching this video. 👍👍👍

  • @crashgamesuhd
    @crashgamesuhd 4 ปีที่แล้ว +30

    Öttinger intensifies

  • @VidNudistKid
    @VidNudistKid 4 ปีที่แล้ว +2

    If you make a BinaryOper as a subclass of Expr, you can give it the __init__(self, l, r) function that you typed for Plus and Times, and make those subclasses of BinaryOper

  • @VidNudistKid
    @VidNudistKid 4 ปีที่แล้ว +7

    Give each class a precedence property, and then the use of parentheses around each expression in its str form can be added or not based on comparison of its precedence with the precedence of its parent

  • @franciscogarcia9441
    @franciscogarcia9441 4 ปีที่แล้ว +8

    The next step would be writing a function that reads the expression as a string and creates the corresponding tree!

    • @Norsilca
      @Norsilca 4 ปีที่แล้ว

      *Professor Brailsford has entered the chat*

    • @yoyoclockEbay
      @yoyoclockEbay ปีที่แล้ว

      How do you do that?

  • @Warpgatez
    @Warpgatez 4 ปีที่แล้ว

    I 100% thought this was a joke video when I saw the thumbnail but then I realized it's not and stayed for the knowledge.

  • @DanCojocaru2000
    @DanCojocaru2000 4 ปีที่แล้ว +7

    I love how messy the whiteboard is

  • @clapton79
    @clapton79 4 ปีที่แล้ว +1

    Me: What are we talking about today?
    Prof: Trees
    Me: Bless you.

  • @vinzent1992
    @vinzent1992 3 ปีที่แล้ว +3

    "Trees are a bracket-saving device.." So nice of you to be environmental with your brackets.

  • @basement3301
    @basement3301 4 ปีที่แล้ว +130

    came for python, stayed becouse of the accent :D digga i cant even

    • @infernocaptures8739
      @infernocaptures8739 4 ปีที่แล้ว +20

      wia luking et trieß!

    • @SiriusGG
      @SiriusGG 4 ปีที่แล้ว +12

      @@infernocaptures8739 piepel mäy ßink siß iß ä dschook

    • @allmycircuits8850
      @allmycircuits8850 4 ปีที่แล้ว +3

      @JAFFE KīkëSTEIN BLAHA parsertongue :)

    • @Scorpion2321-o9o
      @Scorpion2321-o9o 4 ปีที่แล้ว

      @@infernocaptures8739 😂😂😂

  • @vladodjuric3347
    @vladodjuric3347 4 ปีที่แล้ว +23

    Where was this video when I was failing last year

    • @feliperocha6521
      @feliperocha6521 4 ปีที่แล้ว

      def not on youtube since it was just posted. sry, had to.

  • @brandonbahret5632
    @brandonbahret5632 4 ปีที่แล้ว +1

    The panning on the screen capture at 14:57 was intense. 😮

  • @senoctar
    @senoctar 4 ปีที่แล้ว +21

    "trees in computer science are upside down". Many say this, but there is nothing relating to orientation in the computer or the math. It's just the way we generally draw them. Most useful ways to construct a tree are from the root and we tend to draw them the same way we write.

    • @Kern3lly
      @Kern3lly 4 ปีที่แล้ว

      Came to the comments to write this ;)

    • @EvolutionWendy
      @EvolutionWendy 3 ปีที่แล้ว

      Another example of lunar dry humor

  • @cristianpalici8728
    @cristianpalici8728 4 ปีที่แล้ว +5

    This is an very helpfully video!

  • @tahmimahmed8316
    @tahmimahmed8316 4 ปีที่แล้ว +4

    Funny enough I have to create a parser with a parse tree for class, and this video just popped up.

  • @FLUFFSQUEAKER
    @FLUFFSQUEAKER 4 ปีที่แล้ว

    I think i have never heard a stronger german accent.
    I love it

  • @RahulJoshi
    @RahulJoshi 4 ปีที่แล้ว +20

    OK, I'll say it. Professor Thorsten looks like Dave Grohl's elder brother.

    • @toastertag7536
      @toastertag7536 4 ปีที่แล้ว

      Gefühlt der Deutscheste der Deutschesten

    • @raymeester7883
      @raymeester7883 4 ปีที่แล้ว

      LSD dealing uncle.

  • @Diachron
    @Diachron 4 ปีที่แล้ว +1

    This is really a PSA to start recycling brackets. ♻
    P. S. Great talk as always.

  • @pauldiam0nd
    @pauldiam0nd 4 ปีที่แล้ว +3

    I never knew, the scientist from "Independence Day" was really a scientist!

  • @kristoffseisler2163
    @kristoffseisler2163 4 ปีที่แล้ว +2

    Professor Thorsten Altenkirch is my favorite Ed Bassmaster character

  • @mustafasalih5328
    @mustafasalih5328 3 ปีที่แล้ว +1

    I'd love to program and smoke trees with this professor

  • @ADR69
    @ADR69 4 ปีที่แล้ว +7

    This dude is awesome

  • @cyboticIndustries
    @cyboticIndustries 4 ปีที่แล้ว

    Great presenter, Great information - Thanks! Please do more with the Prof.

  • @neeyotube
    @neeyotube 3 ปีที่แล้ว +1

    9:57 oh my that keyboard is dirty.

  • @JNCressey
    @JNCressey 4 ปีที่แล้ว +33

    imagine not catching type errors until runtime.
    this post by the type annotations gang
    edit: did say typing.py, but apparently typing has gone native

    • @JNCressey
      @JNCressey 4 ปีที่แล้ว

      @@pilattebe, very great. that means there's even less of an excuse to not do type annotations.

    • @Axman6
      @Axman6 4 ปีที่แล้ว +7

      Imagine having mutation and an ad hoc type system. This post brought to you by the Haskell cabal.

    • @kurisu-makise
      @kurisu-makise 4 ปีที่แล้ว +2

      @@Axman6 Haskell master race LOL

    • @rahulbansode1537
      @rahulbansode1537 4 ปีที่แล้ว +2

      Imagine using English for writing code.
      FF 0F A1 B8 99

    • @qzbnyv
      @qzbnyv 4 ปีที่แล้ว +1

      Alex Mason How nice is writing tree structures and functions on them in Haskell, eh? 😍 ADTs are nice

  • @lolatomroflsinnlos
    @lolatomroflsinnlos 4 ปีที่แล้ว +4

    What's your bracket footprint?

  • @lorenzvo5284
    @lorenzvo5284 3 ปีที่แล้ว

    Everytime I see a new altenkirch video I haven't seen my mind reads the title in his accent

  • @thetastefultoastie6077
    @thetastefultoastie6077 4 ปีที่แล้ว +25

    Hey I have some spare brackets, you can copy these (((
    sorry I only have the left ones

    • @rickbude3866
      @rickbude3866 4 ปีที่แล้ว

      I have some curly right brackets left from some program I wrote before. But hey if you can't remember, it's probably not important right?

    • @user-rv7mj9xw1u
      @user-rv7mj9xw1u 4 ปีที่แล้ว +1

      if you only have left brackets left, then it makes it squared left, I cannot use then :(

    • @r1pfake521
      @r1pfake521 4 ปีที่แล้ว +2

      A few weeks ago my '[' didn't work anymore, but I had to finish the code so I literally had to copy the '[' everytime from the previous code.

  • @CameraGuy19
    @CameraGuy19 2 ปีที่แล้ว +1

    It's like Arnold teaching you Python without actually touching the 🐍

  • @michael182
    @michael182 3 ปีที่แล้ว +1

    This man just casually did the first steps of a compiler.. tokenize and parse

  • @jewulo
    @jewulo 4 ปีที่แล้ว +3

    Dear Professor Thorsten Altenkirch, thank you so much for this. Is there going to be a part two to this? Are you going to extend the interpreter any further?

  • @zeroxcrusher
    @zeroxcrusher 4 ปีที่แล้ว +6

    geralt in alternate universe

  • @Shardic
    @Shardic 4 ปีที่แล้ว +2

    I need the machine learning video he's talking about in the end!

  • @Z0Gab
    @Z0Gab 4 ปีที่แล้ว +1

    You can recognize which element come first in a tree, by asking which one of the derivative rules come first, as in if i am going to derivate this expression which operation come first.

  • @Pistoletjes
    @Pistoletjes 4 ปีที่แล้ว +1

    Thanks for yet another great video. I really wished it continued after 21 minutes... Or is it a cliffhanger?

  • @kitgary
    @kitgary 4 ปีที่แล้ว

    This is what a programming geek should look like!!!

  • @Reactstudiong
    @Reactstudiong 4 ปีที่แล้ว +1

    Nice video. I love it and learn a lot

  • @b2c205
    @b2c205 4 ปีที่แล้ว

    Incredible mate !

  • @matrixstuff3512
    @matrixstuff3512 4 ปีที่แล้ว +4

    I think he should go by Professor Lorax since he speaks for the trees

  • @hadurrehman1597
    @hadurrehman1597 4 ปีที่แล้ว +11

    Why does it edited like an episode from The Office ....!!!???

  • @NFSHeld
    @NFSHeld 2 ปีที่แล้ว +1

    Tries to save brackets by using trees. Implements the trees in Python which uses at least 6 brackets per class. Proceeds to make the __str__ method print unnecessary brackets. Goal achieved 😁

  • @racecar7808
    @racecar7808 4 ปีที่แล้ว

    He is really computer maniac, catch my like bro

  • @XnecromungerX
    @XnecromungerX 4 ปีที่แล้ว +1

    his last closing sentences i really really want to know more about! is that called parameter optimisation?

  • @donaldstrubler3870
    @donaldstrubler3870 2 ปีที่แล้ว

    His dry parenthesis saving joke had me rolling

  • @Strelnikov10
    @Strelnikov10 4 ปีที่แล้ว +2

    This guy seems like he'd be cool to hang out with.

  • @kyoujinko
    @kyoujinko 2 ปีที่แล้ว

    I think Professor Altenkirch just does these videos to sell his book, and it works I bought his book :D

  • @eccentriccode3158
    @eccentriccode3158 4 ปีที่แล้ว +2

    The witheboard is my brain at 2 am when i am trying to fall asleep

  • @fouzaialaa7962
    @fouzaialaa7962 4 ปีที่แล้ว +15

    7:05 "never copy code "
    StackOverFlow : am i a joke to you ?

    • @m.h.6470
      @m.h.6470 4 ปีที่แล้ว +2

      he is talking about having duplicate code inside one program, not about copying code from other sources...

    • @fouzaialaa7962
      @fouzaialaa7962 4 ปีที่แล้ว

      @@m.h.6470 you obviously dont spend enough time on the internet to realize it was a joke bro ....

    • @fouzaialaa7962
      @fouzaialaa7962 4 ปีที่แล้ว +1

      @@m.h.6470 *Am i a joke meme* : am i a joke to you ?

    • @diamondflaw
      @diamondflaw 4 ปีที่แล้ว +6

      This question has been answered elsewhere already. You should really Google this stuff before submitting a new question.

    • @m.h.6470
      @m.h.6470 4 ปีที่แล้ว

      @@fouzaialaa7962 there is the internet and THE internet... i usually stay away from the latter, as it mostly entails brain cell loss.

  • @markmoz
    @markmoz 4 ปีที่แล้ว +4

    He looks like every Hollywood super villains computer guy.

  • @schrodinger6991
    @schrodinger6991 4 ปีที่แล้ว +6

    Man I love the accent

  • @gregtee
    @gregtee 4 ปีที่แล้ว

    Thorsten is the Bob Ross of code!