The Sierpinski triangle was what made me realise I have some talent as a programmer and is part to blame for my career:
When I was about 11 (mid 80s) our school got a shining new computer lab with original IBM 8086 PCs, and one teacher improvised a LOGO class. After a while we were divided into two groups of more advanced kids and the rest of the class. I was in the advanced team, and I think I was the only kid there who didn't have a computer at home and hadn't coded before. Anyway, we were learning about recursion, and the teacher gave us increasingly difficult tasks.
Then one day he showed us this triangle thingie, and told us to write an algorithm to draw it for the next class. I was shocked and stuck. Remember, I had no interwebs or even books on the subject. I spent hours in the computer lab banging at it, and couldn't do it. I went home, worried that I'll be the only one in the class who failed to do it - and that I'll be taken out of the advanced group. I was horrified, I was literally crying over it.
Then while taking a shower or something like that, the solution suddenly hit me. I ran to the school lab (it was open after hours) wrote the code and it worked. The joy and adrenaline rush of it was something out of this world, let alone the relief that I wouldn't be "downgraded" from the advanced class.
The next day in class, the teacher asked us to show him our code. It turned out I was the only kid who figured it out. It was one of the proudest moments of my life I guess, and I've been trying to recreate that rush of solving a hard task ever since.
Though I was a bit older at the time, I likewise had a lot of fun implementing a Sierpinski triangle algorithm (the chaos game version) in junior high or high school. I eventually wondered why not use four points, or five or more. The four- and five-point versions looked like they had a distinguishable pattern, but it still just looked like a mess. Eventually I tried 3D, and the first Sierpinski pyramid I'd ever seen found its way to my screen. I felt like I had just received some kind of revelation from abstract math itself.
My initial foray into 3D used a crude approximation based on the artistic concept of a vanishing point, implemented in QuickBasic with 2D drawing commands. Later a friend figured out projection using the concept of similar triangles.
I don't know exactly when (could be a math lesson) but when I have found memory of the Sierpinsky triangle, learned about it in class and programmed it in my home computer but it was very slow in BASIC, so I converted it in assembly language, much better.
Until I had access to a computer with a Pascal compiler and discovered that it was 'as fast as' assembly language and much easier to program.
Nice, vive Pascal but then I discovered that Pascal wasn't portable but C was so down to Pascal and here goes C (which I still like despite its numerous flaws)!
When I was about 11 (mid 80s) our school got a shining new computer lab with original IBM 8086 PCs, and one teacher improvised a LOGO class. After a while we were divided into two groups of more advanced kids and the rest of the class. I was in the advanced team, and I think I was the only kid there who didn't have a computer at home and hadn't coded before. Anyway, we were learning about recursion, and the teacher gave us increasingly difficult tasks.
Then one day he showed us this triangle thingie, and told us to write an algorithm to draw it for the next class. I was shocked and stuck. Remember, I had no interwebs or even books on the subject. I spent hours in the computer lab banging at it, and couldn't do it. I went home, worried that I'll be the only one in the class who failed to do it - and that I'll be taken out of the advanced group. I was horrified, I was literally crying over it.
Then while taking a shower or something like that, the solution suddenly hit me. I ran to the school lab (it was open after hours) wrote the code and it worked. The joy and adrenaline rush of it was something out of this world, let alone the relief that I wouldn't be "downgraded" from the advanced class.
The next day in class, the teacher asked us to show him our code. It turned out I was the only kid who figured it out. It was one of the proudest moments of my life I guess, and I've been trying to recreate that rush of solving a hard task ever since.