Most definitely FALSE. I am a Computer Engineer, and I hate snowflakes, politically defined ones of course... Can you think of something better than holding a real, white, frozen water that has fallen from the sky... And shape it into Frosty?
"I will refactor this later" AKA programmer's code for 'it'll be like that forever, because I've got better things to do than fix stuff that mostly works" XD
Hey!! I did an assignment on this exact Fractal in my Calc I Course for my first year of University! We found that the area of the whole shape is [2*sqrt(3)*s²]/5 (when starting with a triangle), and that it’s perimeter is the limit as n -> ∞ of 3s(4/3)^n, where s is the initial sidelength and n is the iteration through, starting at 0. I’m very excited to finally see a coding challenge about something I’m familiar with!! :D
16:00 you could actually accomplish the same result with such function: f(x)=sin(a*x) where a->infinity The sine wave will be more "squeezed", proportionally to the 'a' parameter, resulting in infinite length of the curve in a finite space (for example 2 PI). Of course there are many more examples, but this is a little bit easier to explain, because most people know how a sine wave looks like.
For the coding part and doing it "functional". You have an Input Line and a function that takes a Single input line and gives you 4 lines back. So function is like "Line -> Line list". You just run your function on every line and collect all result into a new list. You just repeat that step as how often you want your recursion to happen.
Every next step, you divide the curve by 3, and multiply the length by 4! Since you do that every step, they get multiplied together, so the length of one side is (4/3)^n Since lim n->inf+ a^n goes to infinity for a > 1, the length of one side goes to infinity, and therefore the whole perimeter!
Koch is a very difficult name for native English speakers :D Check it out in google translator with german or swiss as language and let google say it - i believe the "ch" gets pronounced in a way that most english speaking people dont know :) Amazing Video! I had to program this Koch Snowflake in my first year of highschool with the python turtle :D brings back highschool memories ^^
Try either of these playlists to start from scratch! ua-cam.com/users/shiffmanplaylists?view=50&shelf_id=14&sort=dd ua-cam.com/users/shiffmanplaylists?view=50&shelf_id=2&sort=dd
You don't need an infinite amount of ink. When i pour a single drop of ink on a sheet its probably fills out more than needed. Now think of it as removing ink to create the structure. You now can basically remove ink up to infinity, but it never will come to zero.
Wouldn't this be a perfect example for recursive objects where the show function either draws a line (no children generated yet), or calls the show function of it's children
I'm just starting my third year of SE having never coded before starting the course but still don't feel like I know that much about the practical side of things compared to that of the planning/design side - do you think the majority of the technical ability comes through experience when eventually working in the industry or has my course neglected it?
I hope I’m not the only one who didn’t get anything cause that will make me feel very dumb. Is there a beginner channel or videos someone can recommend Ps:I’m really new to coding
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 ua-cam.com/video/AmlAiKsiy0o/v-deo.html.
Code challenge for you: amino acid folding challenge(will be a hard one) if you can do it, I will share your video everywhere I can then give a sub. Good luck new protein for New Years
Dude! how i can get this kind of skills? Drugs, Satan, Angels, witches? how? I feel so depressed right now becouse i can't get this of programming skills! :( i want to die.....! i have to leave the code....
Ok so... Lets say you are a two dimensional being. If you want to paint the perimeter of this, you would need an infinite amount of paint right? Just using a paint brush would be useless. BUT what would happen if you took the paint bucket and splashed the paint all over it? Would it cover the perimeter in paint, or would the paint seem to disappear as at comes into contact? Where did the paint go? What maniac made this two dimensional structure? WHERE DID THE MATERIAL COME FROM? WHAT IS LIFE?!?
Find the code and submit your version here! thecodingtrain.com/CodingChallenges/129-koch-snowflake.html
20:02 Haha! That moment when you get your code right on the first compile. Feels so good!
I approve that !
Mathematicians and Programmers are the only people on the internet that welcome snowflakes
That's funny because only snowflakes complain about snowflakes.
Most definitely FALSE. I am a Computer Engineer, and I hate snowflakes, politically defined ones of course... Can you think of something better than holding a real, white, frozen water that has fallen from the sky... And shape it into Frosty?
"I will refactor this later" AKA programmer's code for 'it'll be like that forever, because I've got better things to do than fix stuff that mostly works" XD
Lmao
Hey!! I did an assignment on this exact Fractal in my Calc I Course for my first year of University! We found that the area of the whole shape is [2*sqrt(3)*s²]/5 (when starting with a triangle), and that it’s perimeter is the limit as n -> ∞ of 3s(4/3)^n, where s is the initial sidelength and n is the iteration through, starting at 0. I’m very excited to finally see a coding challenge about something I’m familiar with!! :D
I do love me some snowflakes
16:00 you could actually accomplish the same result with such function:
f(x)=sin(a*x)
where a->infinity
The sine wave will be more "squeezed", proportionally to the 'a' parameter, resulting in infinite length of the curve in a finite space (for example 2 PI).
Of course there are many more examples, but this is a little bit easier to explain, because most people know how a sine wave looks like.
For the coding part and doing it "functional". You have an Input Line and a function that takes a Single input line and gives you 4 lines back. So function is like "Line -> Line list". You just run your function on every line and collect all result into a new list. You just repeat that step as how often you want your recursion to happen.
You are the BEST programmer I know...
I wish that i could be soo good at programming.
Kind regards from Austria
EDIT:
Thank you so much for the ❤
I love to watch this guy and all knowledge he's got
My ego is too high for this. I would say I'm better. I do far fewer small challenges, but many more big ones.
list.addAll(Arrays.asList(array));
Great video!
Never find someone in france that can make coding fun for everyone ! thank you to bring that part of my life at a funnier step for other people !
You are an inspiration. Most enthusiastic and entertaining programmer I've ever seen.
Dude, this challenge is insane
I would honestly buy that jumper / sweater in a heartbeat if I could. Great video, thanks!
Where did you study? You are too good
Congratulations on 700k keep up the great work!
Really Cool
I didn't know the videos were distributed first through the "The Coding Train" website :o
He did this in live video on thursday or something. most of his videos are like that.
Great video! P.S. addAll takes only arraylists as a parameter so you need to make the array a list first by doing Arrays.asList(myArray)
Actually, it will take any argument (parameter value) that implements the Collection interface.
Thank you so much!!!
Every next step, you divide the curve by 3, and multiply the length by 4! Since you do that every step, they get multiplied together, so the length of one side is (4/3)^n
Since lim n->inf+ a^n goes to infinity for a > 1, the length of one side goes to infinity, and therefore the whole perimeter!
More christmas coding challanges!
Koch is a very difficult name for native English speakers :D Check it out in google translator with german or swiss as language and let google say it - i believe the "ch" gets pronounced in a way that most english speaking people dont know :)
Amazing Video! I had to program this Koch Snowflake in my first year of highschool with the python turtle :D brings back highschool memories ^^
I dont know how to code at all and i am still completely hypnotized by your videos. Keep it up. Much love from sweden
Try either of these playlists to start from scratch!
ua-cam.com/users/shiffmanplaylists?view=50&shelf_id=14&sort=dd
ua-cam.com/users/shiffmanplaylists?view=50&shelf_id=2&sort=dd
If you start with the equilateral triangle, the infinite curve surrounds a finite area.
Nice coding video tutorials ...
You all videos are very very helpful
thanks for making these videos
You don't need an infinite amount of ink. When i pour a single drop of ink on a sheet its probably fills out more than needed. Now think of it as removing ink to create the structure. You now can basically remove ink up to infinity, but it never will come to zero.
Gotta love those snowflakes
Over and over again
Wouldn't this be a perfect example for recursive objects where the show function either draws a line (no children generated yet), or calls the show function of it's children
Yes, this could be done elegantly and with very few lines of code with a recursive function!
Happy new year, Dan!
Great advance in pronounciation, from Kotsch to Koke. I always wonder why the "ch" sound is so difficult for non-germans ^_
^
This one is easy with recursion
Good video as always!
wow! amazing
You did some snowflakes, but what about flow snakes?
21:20 Just FYI, the Swedish name Koch is pronounced /ˈkɔkː/.
Hey can you make a video about generating terrain with the Diamond-Square algorithm
Good job !
Suggestion: make a game using UnityScrip, a language made to program games in Unity, based in JS
happy halloween
Wow.
next thing ...
some random walking, fire works snowflakes ;)
I really like your hat :)
Amazing as always :D
1:36 Coke line? :p
How did you learn about programming ?? books ? Internet ?? university ???
Infinite ink reminded me of coastline paradox 8D
where can I listen to the refactor song?
soundcloud.com/kristianpedersen/sets/coding-rainbow-remixes
@@TheCodingTrain thank you!
Where do you get ideas for your coding challenges?
Here! github.com/CodingTrain/Rainbow-Topics/issues
The Coding Train Thank You!
I'm just starting my third year of SE having never coded before starting the course but still don't feel like I know that much about the practical side of things compared to that of the planning/design side - do you think the majority of the technical ability comes through experience when eventually working in the industry or has my course neglected it?
what if you made it zoom in to the area near your mouse, to kinda zoom into the fractal a bit
Without Turtle Graphics and recursion, it sounds so complicated.
Please do Riemann surface 😃😃
Where can I find the live streams and live chat. Love you videos
Right here on this channel! If you subscribe and click alarm bell you'll get a notification when I schedule a live stream.
Thanks so much your the best
It took me 2 days to code this
.
.
.
.
Shiffman does it in 20 mins...
length of Gen n = (4/3)^n
von koch curve
Where can I find the shirt you are wearing. I do need it.
p5 thinks setup = set() and setBPM() .
When Dan says “Koch” it sounds like he’s had three too many eggnogs, if ya know what I mean 😏
can you teach me how to zoom in/out?
3:23 Why? You never said why...
amazing as always ^_^
Every time I'm watching you, I'm wondering.
Are you on drags?
he’s on Koch
😏👌🏻
didn't you already do something similar in the nature of code chapter on fractals?
Yes, this is true!
1:27 you forgot a line segment :(
I hope I’m not the only one who didn’t get anything cause that will make me feel very dumb. Is there a beginner channel or videos someone can recommend
Ps:I’m really new to coding
Try this playlist to start from the beginning! ua-cam.com/video/yPWkPOfnGsw/v-deo.html
ignore this comment----
selber mit funktion (eingabe iteration) for loop
mathe funktion selbst machten
😄
The coke snowflake?
Pls do processing.py
I can't find the "I will refactor this later" song. I need it for...reasons. Does anyone know where to find it?
soundcloud.com/espen-sande-larsen-365984601/refactor
make trigonometry visualization tools. I meant interactive one.
Why is this video unlisted?
8:40 - where this song comes from??
soundcloud.com/kristianpedersen/sets/coding-rainbow-remixes
Wonder if you can snort it
Can you make Pacman game please?
Comment section, help! If I code a version of any challenge in other enviroment like unity, can I add into coding train repo?
Yes! More info:
github.com/CodingTrain/website/wiki/Community-Contributions-Guide
@@TheCodingTrain Thank you! Happy new year!! :D
how transform this to p5?
You can find the p5 version here! thecodingtrain.com/CodingChallenges/129-koch-snowflake.html
0:28 no, no you're not xD
Return children? If only . . .
No, seriously. We need a link to the "refactor this later" song!
So very well explained, thanks!
soundcloud.com/espen-sande-larsen-365984601/refactor-1
yes, you were pornouncing the 'ch' incorrectly, since he has a 'germanic' name :D english doesn't use such sound
Which language does he uses?
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 ua-cam.com/video/AmlAiKsiy0o/v-deo.html.
“Koch” is actually pronounced “kokk”.
Love your videos and keep up the good work.
@@beyondcatastrophe_ "swedish mathmatician"
Helge von Koch
[ˌhɛlːgə fɔnˈkɔkː]
That is a
k
with a normal
o
behind and a long
k
Idk how a long k sounds but that is what (the German) Wikipedia says
8th(im being honest)
maybe you should start to use Collections instead of arrays...
It's pronounced koh
"Coke"
Code challenge for you: amino acid folding challenge(will be a hard one) if you can do it, I will share your video everywhere I can then give a sub. Good luck new protein for New Years
Please suggest here! github.com/CodingTrain/Rainbow-Topics/issues
Dude! how i can get this kind of skills? Drugs, Satan, Angels, witches? how? I feel so depressed right now becouse i can't get this of programming skills! :( i want to die.....! i have to leave the code....
Don't be depressed! If you are new to coding maybe start here! I believe in you! ua-cam.com/users/shiffmanplaylists?view=50&shelf_id=14&sort=dd
It's funny how English people can pronounce words like "massachusetts" but not "Koch" xD
Ok so...
Lets say you are a two dimensional being. If you want to paint the perimeter of this, you would need an infinite amount of paint right? Just using a paint brush would be useless. BUT what would happen if you took the paint bucket and splashed the paint all over it? Would it cover the perimeter in paint, or would the paint seem to disappear as at comes into contact? Where did the paint go? What maniac made this two dimensional structure? WHERE DID THE MATERIAL COME FROM? WHAT IS LIFE?!?