Coding Challenge 108: Barnsley Fern

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

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

  • @allaheadflank3213
    @allaheadflank3213 6 ปีที่แล้ว +8

    I've got it! For the past like 3 weeks I've been binge-watching your videos, Dan, and I've learned more about programming in that short amount of time than I've ever learned before. But, the thing that's been eating away at me is simply how you are such a wonderful teacher with these videos. I've been trying to figure it out, and I have, at least for my experience. It's that it's not like teaching! It's like a conversation! You make mistakes, like we all do and will, and you make silly awesome dad jokes, and most importantly when you explain concepts you use very simple analogies and clear depictions. Many have said this before me, but you a natural teacher, and I truly hope you never stop making these videos, because I know they've reignited my love of programming, and I'll never stop being happy when I see a new video of yours pop up in my subscription box! Thank you!

  • @RexTorres
    @RexTorres 6 ปีที่แล้ว +18

    Seriously, you are becoming one of my favorite channels.

  • @Invalid571
    @Invalid571 6 ปีที่แล้ว +80

    Another excellent challenge. ☺
    (I love fractals)

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

    Man... I'm always amaized how simple this generations are, maths are beautiful!!

  • @MetalStorm66
    @MetalStorm66 6 ปีที่แล้ว +8

    3 hours 45 mins!! So glad I watched the edited version. Great coding challenge as always 👍🏼

    • @StopBuggingMeGoogleIHateYou
      @StopBuggingMeGoogleIHateYou 2 หลายเดือนก่อน

      Wtf? How did it possibly take that long? All of the pseudocode was on Wikipedia. I'm not even sure what could have been removed in that time since it all seemed to flow pretty easily.

  • @OrangeC7
    @OrangeC7 6 ปีที่แล้ว +5

    Huh, this is really cool! ( I played around with it for two seconds and decided to change 'stroke(255);' to 'stroke(random(255));', and it gives it a glittery effect. )

  • @amanadwani9100
    @amanadwani9100 6 ปีที่แล้ว +5

    amazing! that feeling when the fern appeared is so satisfying

  • @Guglioz01
    @Guglioz01 6 ปีที่แล้ว +31

    omg thanks Dan really, i'm learning programming with your processing tutorials videos and this is helping me a lot (also to improve my english). REALLY thank you so much and greetings from Italy XD

    • @cicciobombo7496
      @cicciobombo7496 6 ปีที่แล้ว

      Matteo Gugliotta ma buongiorno

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

      Ma buonasera

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

      mi fa piacere che ci siano anche degli italiani che guardano questi video molto interesanti.

    • @chang112x
      @chang112x 6 ปีที่แล้ว

      italiano anche io

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

    At 8:00 this fixed point, if you consider the 3x3 affine transformation matrix A, its actually an eigenvector with length 1!
    Av = λv Av=v
    (applying the affine transform A to v (Av) gives (=) back the inital vector v)

    • @joshinils
      @joshinils 6 ปีที่แล้ว

      ye

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

      Cool, thanks for the comment!

    • @giorgosd3624
      @giorgosd3624 6 ปีที่แล้ว

      The Coding Train Thanks Daniel! Keep making inspiring videos!

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

      joshinils I didnt see your comment yesterday, thought i was the only one who spotted this :p

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

    You're giving me all kinds of motivation to do some more casual little coding challenges! Subbed, thanks for the inspiration :)

  • @alexfrasca673
    @alexfrasca673 6 ปีที่แล้ว +5

    omg that outtro.. excellent video

  • @Kitulous
    @Kitulous 6 ปีที่แล้ว +19

    15:08 I though he was gonna throw that stick :D

  • @offtheball87
    @offtheball87 6 ปีที่แล้ว +34

    1:18 I FEEL GOOD

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

    Only when he said it was a fractal at the end did I realise. Amazing video

  • @C204unit
    @C204unit 6 ปีที่แล้ว

    Daniel I have noticed that when you draw a rectangle on the board it is always a lille bit jagged to the bottom right. Then I realised that from your perspective while you draw it, it should appear fairly rectangular.

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

    Thanks as always for a great tutorial Dan.

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

    14:58 Pure satisfaction.

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

    this is so freakin cool. i hope to understand this fully in a few months haha!

  • @YourSuizo
    @YourSuizo 6 ปีที่แล้ว +11

    You should try doing Recamán Sequence with processing/p5.js

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

      Did you watch the Numberphile video from a week ago by any chance? :D

    • @miikey_lol
      @miikey_lol 6 ปีที่แล้ว

      I had the exact same idea, although it wouldnt be too difficult just arrays and drawElipse pretty much

    • @YourSuizo
      @YourSuizo 6 ปีที่แล้ว

      Azayles Yes

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

      Please suggest here (or maybe it's there already?)! github.com/CodingTrain/Rainbow-Topics/issues

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

    Is there a set of equations to draw the outline only of the fern?

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

    Im really enjoying my typing and your frustration going along with the progress,
    Cannot wait to attain my mechanical keyboard and make an evolutionary step Tuesday 27 August, 2018;
    Thanks for all the hard work and original content,
    Love it as a learning experience, thanks a lot mister. :) ♥
    ∞South Africa

  • @IsaacAshtox
    @IsaacAshtox 6 ปีที่แล้ว +11

    How do you find all of these neat algorithms? I'd like to research my own but I don't even know what to search for. I'd never think to look up ferns

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

      I get many great suggestions from the community!
      github.com/CodingTrain/Rainbow-Topics/issues

    • @lafeo0077
      @lafeo0077 6 ปีที่แล้ว

      I agree and this one is beautiful.

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

    You're awesome mate.

  • @corduneanuclaudiu8231
    @corduneanuclaudiu8231 6 ปีที่แล้ว

    You are amazing man ... BRAVO

  • @maehmaehmaeh9560
    @maehmaehmaeh9560 6 ปีที่แล้ว

    You could try visualizing the buddhabrot, its related to the mandelbrot set and very interesting

  • @AlexHuebi
    @AlexHuebi 5 ปีที่แล้ว

    I may be late.. but while you did this in JS - I thought to myself: I might be able to do this in Python
    Well.. here we are. Mine took about twice as long to program as yours but I got it to work :)
    Next on my bucketlist: do it in cpp..

  • @tx6723
    @tx6723 6 ปีที่แล้ว

    Awesome tutorial, idk if you’ve done this before but I would want to see some videos on how to do fluid simulations applying the physics behind it :D

  • @snowman7514
    @snowman7514 6 ปีที่แล้ว

    I feel like I'm not nerd-y enough everytime when I watch codetrain

  • @rahulgeorge2409
    @rahulgeorge2409 6 ปีที่แล้ว

    Could you do a parabola challenge next?
    This was cool. Love fractals!!

  • @Maolo92
    @Maolo92 6 ปีที่แล้ว

    oh! thanks for the link to the video about matrix math!

  • @DiogoSantos-dw4ld
    @DiogoSantos-dw4ld 6 ปีที่แล้ว +2

    Hello Dan, great video! I've gone back and watched a few of your other videos including the one on the mandelbrot set! I've since coded it myself but I was wondering, usually depictions of the mandelbrot set have a different colour gradient than just the usual grayscale, I was wondering if you could do a video on different gradient techniques and applying it to the color function and more specifically the pixel array? If anyone knows of any videos where he talks about this (which I probably have missed, sorry), please let me know! Thank you

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      This is a great question! Would love ideas and suggestions form the community around ways to color the mandelbrot set (and other similar challenges I've done)!

    • @michaelburns8073
      @michaelburns8073 6 ปีที่แล้ว

      I did this as a senior project many, many years ago. If I remember correctly, a very easy way to do it is to map the grayscale value to an HSB (Hue, saturation, brightness) value. Processing allows you to set the colorMode to HSB. Set it to something like colorMode(HSB, 255), and then use stroke(pixelGrayVal, 1.0, 1.0) to set the color of the point. These would generate some *beautiful* Mandlebrot graphics. That's all you have to do. On the old graphics systems, you used to have a color pallete, instead of an RGB pixel, so you could get some basic 'animation' by a process called pallette rotation.

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

    Please tell how to make a rainbow version of this

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

    Barnsley Fern and Chaos Game
    Part 1
    Investigate the Barnesley Fern code above and write a report on it. You may wish to try varying the parameters (slightly) to generate your own fractals.
    Part 2
    The Chaos Game is an algorithm for generating a fractal:
    define the 𝑛 vertices of a regular polygon;
    choose an initial point, (𝑥0,𝑦0) at random within the polygon;
    generate a sequence of points, starting with (𝑥0,𝑦0) , where each point is a fraction 𝑟 of the distance between the previous one and a polygon vertex chosen at random.
    Write your own Python program for the above algorithm, and using NumPy and Matplotlib, explore the Chaos Game for different values of 𝑛 and 𝑟 and present your findings. how do answer that one?

  • @Snakebite420
    @Snakebite420 6 ปีที่แล้ว

    woooooooooooooooooooooooow, that fractal is beautiful..

  • @RMy4v5aPte
    @RMy4v5aPte 6 ปีที่แล้ว

    For your next coding challenge you should try to animate Viviani's theorems using your mouse to move a point.

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      Please suggest here! github.com/CodingTrain/Rainbow-Topics/issues

  • @simonmaracine4721
    @simonmaracine4721 6 ปีที่แล้ว

    I like this type of videos.

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

    Going to try this todaY

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

    Thank You! I'm trying to download barnsleyjava into my student IDE (i'm using IntelliJ IDEA) to do my first assignment but it doesn't work...yet (i'm getting a file not found error and Usage error: ...What types of IDEs do you recommend for Java in reference to someone who aspires working in machine learning one day? Also, is it easier to lear C language after learning Java?

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

    Kiwi coders should like this

  • @ImZyron
    @ImZyron 6 ปีที่แล้ว

    is there any way to make it move kinda like how you did with the fractal tree? like you set up a slider that changes the "trunk's" position, can you do that with the stem of the leaf? and have it kind of wave at you XD

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

    Where do you find these coding challenges? I'd love to find some challenge on Wikipedia and try it on my own!

  • @jakobkreft7797
    @jakobkreft7797 6 ปีที่แล้ว

    Hi! I have a question, it is not related to the video though. how can I get average color on the canvas? I tried with get() to get colors of singe pixels and than calculating the average, but it turned out VERY s l o w and I had a memory leak :/ I would really appreciate any advice! Thanks!

  • @Remls
    @Remls 6 ปีที่แล้ว +15

    The Farnsley bern.

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

    at first i thought you spotted some kind of creature/insect/spider on the wall out side our view. but it was the matrices.

  • @ramseybeing
    @ramseybeing 6 ปีที่แล้ว

    this is freakin awesome business!

  • @lukeletica3661
    @lukeletica3661 5 ปีที่แล้ว

    10:05 "NO NO THIS PLUS HAS TO GO HERE!" Now I have an inside joke between me, myself, and I

  • @sohailape
    @sohailape 6 ปีที่แล้ว

    how about using genetic algo to reconstruct image using different shapes??

  • @uddeshyasingh4200
    @uddeshyasingh4200 6 ปีที่แล้ว

    Hey! Another great coding challenge (and yet another question) . May I know what API references I have to use if I am to display it in an HTML file?

    • @uddeshyasingh4200
      @uddeshyasingh4200 6 ปีที่แล้ว

      Also if this is p5.js , that loop didn't work out for me (to speed up the process) , any idea why that might be?

  • @jesperhermenius919
    @jesperhermenius919 6 ปีที่แล้ว

    Pearson correlation coefficient based on random points. maybe an idea for the next video?

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      Please suggest here! github.com/CodingTrain/Rainbow-Topics/issues

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

    Can we do this with recursion ? I mean to repeat this pattern over again .

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

      I think you can, declare a constant x and y, have the function compute new x and new y overwrite the constants and then call your function again, but with some end condition

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

      I guess it would have taken way too much memory, because every recursion of the function is stored in the ram.

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

      Ozkee Yee Yes I agree on that

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

      There doesn't really have to be an end condition there. Dan's version keeps going forever as well.

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

      The main difference is Dan's version is essentially an infinite loop which only covers a small space in the memory whereas the recursive version will have increasing number of function pointers in memory to keep track of where in the recursion the program is. It will run out of memory eventually (and quite fast)

  • @mohamedtalaatharb2441
    @mohamedtalaatharb2441 6 ปีที่แล้ว

    What about en.wikipedia.org/wiki/De_Rham_curve or en.wikipedia.org/wiki/Fractal_flame as your next challenge?

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      Please suggest here! github.com/CodingTrain/Rainbow-Topics/issues

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

    4:47 - quality sound

  • @omkashyap5109
    @omkashyap5109 6 ปีที่แล้ว

    Fabulous. can I get your Code. I will try in my PC to understand vividly and descriptively.
    Your challenges are really awesome.
    Good going buddy.

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

      You can grab the code here: thecodingtrain.com/CodingChallenges/108-barnsley-fern.html

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

    I like your effort

  • @robertgomez5378
    @robertgomez5378 6 ปีที่แล้ว

    Hey sir what computer do you use!

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

    i have many of Dawan motif Picture to coding with p5.js, why i know the matrix transformation?

  • @Luftbubblan
    @Luftbubblan 6 ปีที่แล้ว

    Very cool stuff.

  • @dev4666
    @dev4666 6 ปีที่แล้ว

    Can I code that in swift playground too?

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

    16:58 My face when the actual fern appear

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

    this is so cool

  • @wilwad
    @wilwad 6 ปีที่แล้ว

    I love coding

  • @hamade7997
    @hamade7997 6 ปีที่แล้ว

    I'm not that familiar with processing, so I'm wondering how you keep calling the functions if they are not in a loop? What exactly is the condition that keeps drawing the points? When does is stop, and how is it defined?

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

      Hamade Moodie void draw( ) is a built in function in processing, it loops by default.

    • @hamade7997
      @hamade7997 6 ปีที่แล้ว

      brendon wood Thank you for the clarification!

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      Thanks for replying brendon!

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

    I have no idea how the math works, but the result is cool!

    • @hanniffydinn6019
      @hanniffydinn6019 6 ปีที่แล้ว

      Daniel F don't think anyone really understands why fractals produce those specific fractals, but in IFS fractals you can kinda understand how the base shapes re- iterated by shrinking and moving create the fern, as a small fern leaf is like the lager fern leaf.
      You just use a triangle to represent the fern leaf. And move shrink rotate that into a smaller leaf. That's repeated randomly.

    • @TheofilosMouratidis
      @TheofilosMouratidis 6 ปีที่แล้ว

      watch?v=kbKtFN71Lfs watch this numberphile video, very cool

  • @Naej7
    @Naej7 6 ปีที่แล้ว

    How the hell did these simple functions and probabilities draw this ?

  • @johnniegilkerson4724
    @johnniegilkerson4724 5 ปีที่แล้ว

    How would you add color to this?

  • @nikolaviktorov5139
    @nikolaviktorov5139 6 ปีที่แล้ว

    I actually do C# but this is so logically the same

  • @leonardofranca7226
    @leonardofranca7226 6 ปีที่แล้ว

    Can I do that in Python?

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

    ANGEL WİNG FORMULA,
    change, permutation 2
    nextX= 0.85 * x + 0.10 * y + 0;
    nextY= -0.75 * x + 0.50 * y+1.6; // -0.75 , -0.50 , Angel wing, MELEK KANadı ( turkish) or -0.25, 0.50
    } else if (r>=0.86 & r

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

    what editor are did you use ?

    • @lionhardt75
      @lionhardt75 6 ปีที่แล้ว

      Nae Bara it's called processing

    • @naebara1297
      @naebara1297 6 ปีที่แล้ว

      it is only for Mac ?

    • @lionhardt75
      @lionhardt75 6 ปีที่แล้ว

      Nae Bara no, it's for Windows too. You can find it at processing.org.

    • @naebara1297
      @naebara1297 6 ปีที่แล้ว

      thanks .

  • @haxue
    @haxue 6 ปีที่แล้ว

    Try making a java code of x = sin(x/y).

  • @shedrickwilliams7049
    @shedrickwilliams7049 6 ปีที่แล้ว

    Is it just me or have there been a little bit of lack of views. Not that the videos that you did release are not absolutely fascinating. Lol that was kind of a wierd comment 😂 Your awesome by the way. ;) My dream to go to NYU but I'm nowhere near old enough to go to college lol. What do you teach?

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      For more about the program where I teach visit itp.nyu.edu/ima/ and itp.nyu.edu

  • @thg7267
    @thg7267 6 ปีที่แล้ว

    Para cuando los subtítulos en español!?

  • @hamburgrhelpless
    @hamburgrhelpless 6 ปีที่แล้ว

    2:54 you went back to fix 0.85 plus x1 to 0.85 times x1 but then you still wrote a plus sign (@ 2:57) where you had just erased it lol

  • @DanielAlvarezMaldonado
    @DanielAlvarezMaldonado 6 ปีที่แล้ว

    Excelent friend

  • @hirokiendo7380
    @hirokiendo7380 6 ปีที่แล้ว

    what libraries were used in this video?

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      This video uses Processing (which is built on top of the Java programming language). For more info, visit processing.org and also this video might help th-cam.com/video/AmlAiKsiy0o/w-d-xo.html.

  • @ophello
    @ophello 6 ปีที่แล้ว

    You should practice drawing rectangles that don’t have a sloped right corner.

  • @AamirKhan-zy5yt
    @AamirKhan-zy5yt 6 ปีที่แล้ว

    i wish i could do programming just like you,

    • @yungnut4247
      @yungnut4247 6 ปีที่แล้ว

      Start watching his tutorials now

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

    Sup Daniel!? Greetings from Brazil!
    Do you think it would be possible some tutorials about web app development with server-side javascript on glitch.com website?
    Also, great content on this one (as aways)!
    Thx!

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

      yes! please suggest here: github.com/CodingTrain/Rainbow-Topics/issues

  • @phethomberg9669
    @phethomberg9669 6 ปีที่แล้ว

    Do you have udemy course, i wish i could learn with you

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      No but I have almost 1,000 videos on this channel and many are organized into courses, check the playlists!

  • @CharlesGouin
    @CharlesGouin 6 ปีที่แล้ว

    Amazing

  • @ghgodsexposed
    @ghgodsexposed 6 ปีที่แล้ว

    This looks like evidence that plants develop using fractal geometry

  • @TheSentientCloud
    @TheSentientCloud 5 ปีที่แล้ว

    Fractals

  • @xsound2173
    @xsound2173 6 ปีที่แล้ว

    I LIKE YOUR VIDEOS SOOOOOOOO MUCH!!! THX FOR THE GREAT WORK!! YOU ARE AMAZING!!

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

    👍
    👌
    👏👏👏

  • @saurabhmoharir7159
    @saurabhmoharir7159 6 ปีที่แล้ว +14

    Which video editor u use,sir?????

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

      Processing is not a video editor.

    • @saurabhmoharir7159
      @saurabhmoharir7159 6 ปีที่แล้ว +17

      superlogl I am asking about Video editor used before uploading Videos on youtube. Video editor,examples like Camtasia,Adobe after effects,Filmora,Sony Vegas,etc.

    • @reimarpb
      @reimarpb 6 ปีที่แล้ว

      It doesn't seem like he edits his videos at all except cutting out the rest of the stream

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

      I think that's just mac OS zoom

    • @mxr1337x
      @mxr1337x 6 ปีที่แล้ว

      som1 answered your question w/ processing, I was responding to that but he deleted the comment.

  • @TrollolloXD
    @TrollolloXD 5 ปีที่แล้ว

    i have a problem with drawing this
    i have the same exact code as in the video but in my case the main core isn't drawing.
    Any ideas? :(((

    • @TheCodingTrain
      @TheCodingTrain  5 ปีที่แล้ว

      Would you mind asking at discourse.processing.org/! It's a better platform for Processing and p5.js related code questions. You can share code there easily! Feel free to link from here to your post.

    • @TrollolloXD
      @TrollolloXD 5 ปีที่แล้ว

      @@TheCodingTrain Okay i have found this bug (:
      in the section with the lowest probability i was multiplying by the "Y"
      and i declared a variable as "y"
      and that was it

  • @maninarush2112
    @maninarush2112 6 ปีที่แล้ว

    That's some dirty Java... Cool vid tho

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

    Why did you stop using p5?

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

      I haven't stopped I just like to go back and forth.

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

      They are almost identical, you can write absolutely the same with p5.js, Processing is just another programming language (which is by the way very similar to JS, but not really, it's statically typed so you have to implicitly write the variable types that you don't have to in JS). But it's faster because Java is a compiled language and JS is an interpreted one.

  • @steff420
    @steff420 6 ปีที่แล้ว

    Why not use p5?

    • @TheCodingTrain
      @TheCodingTrain  6 ปีที่แล้ว

      I like to go back and forth between the environments. I'll post a p5 port of the code soon (if someone from the community doesn't get to it first!)

    • @steff420
      @steff420 6 ปีที่แล้ว

      Oh okay. So whats the big difference between processing and p5?

    • @devilmanscott
      @devilmanscott 6 ปีที่แล้ว

      JS is an interpreted language, while Java is a compiled language, they both have their pluses and cons, basically you should learn to love multiple languages.

  • @samferrer
    @samferrer 5 ปีที่แล้ว

    Now we are talking ... that's a fractal ... not the cheaty tree from some other video ...

  • @kubogi
    @kubogi 6 ปีที่แล้ว

    Next challenge: Hello World in 15 seconds

  • @scavi
    @scavi 6 ปีที่แล้ว

    My 3AM mind decided the title was ‚Gordon challenge: Ramsay fern‘

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

    Noice

  • @Courserasrikanthdrk
    @Courserasrikanthdrk 6 ปีที่แล้ว

    fine ; it was lightning 🚘👍🤦

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

    Он делает такое движение с дудкой в руке, как будто он её выбрасывает. Меня это пугает.

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

      самое интересное, что это заметил только ты и я, и мы оба русскоговорящие :D я ни одного коммента на английском еще не заметил, где бы говорили про то, что он почти выкидывает дудку :D:D:D

  • @1MantisPhoenix
    @1MantisPhoenix 6 ปีที่แล้ว

    my left hand side of the frame failed

    • @1MantisPhoenix
      @1MantisPhoenix 6 ปีที่แล้ว

      imgur.com/gallery/wWPpr1l

    • @1MantisPhoenix
      @1MantisPhoenix 6 ปีที่แล้ว

      FOUND THE MISTAKE! :DHHAHAH thanks! :D

    • @1MantisPhoenix
      @1MantisPhoenix 6 ปีที่แล้ว

      imgur.com/gallery/NPwUngZ

  • @johnosborne3766
    @johnosborne3766 5 ปีที่แล้ว

    when i tried it i just got a straight line... anyone got suggestions?

    • @TheCodingTrain
      @TheCodingTrain  5 ปีที่แล้ว

      You can compare your code to what is here: thecodingtrain.com/CodingChallenges/108-barnsley-fern.html

  • @kiyajinpele4life98
    @kiyajinpele4life98 6 ปีที่แล้ว

    Thats a beard!

  • @obitoss136
    @obitoss136 6 ปีที่แล้ว

    I absolutely dont know how to do it

  • @addowhite6331
    @addowhite6331 6 ปีที่แล้ว

    had a play with this in C++ and tried rendering the fern with unicode characters in the console
    makes a cool effect when you resize the console while it's running :P
    github.com/addowhite/Console-Barnsley-Fern/
    wanted to add this as a community contribution on the website but this coding challenge doesn't seem to be on there?

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

      Apologies, it hasn't been posted yet, I would welcome a pull request to create the markdown page but @mathblank should get to it soon! github.com/CodingTrain/website

    • @addowhite6331
      @addowhite6331 6 ปีที่แล้ว

      The Coding Train awesome 👌 I'll keep an eye out