Project Euler

󰃭 2013-03-12

I started doing the Project Euler problems last weekend. So far managed to get to problem 10.

I have realized how much I suck at math, and now I want to learn more. I know people with knowledge in math will probably laugh at my solutions, I really feel like I half-assed most of them so far.

Those with knowledge in math will probably find the problems easier than those with knowledge only in programming… Being good at math makes you a better programmer.

Did I mention I’m trying to program the solution to each problem in a different programming language? Last one I used was pascal. Never had used it before. It’s a horrible language, I’m glad I don’t have to use it ever again for anything.

By the way, every time I solve a problem I will updated my github repo. Check it out here. Feel free to critique!



More posts like this

Rainbow Tunnel

󰃭 2013-03-07 | #canvas #fun #javascript #programming-projects

Today I had some more time to code something fun, so I decided to make a tunnel of sorts. The trick is really simple, first you just draw rings around the center of the page, and tweak their position a bit depending on the position of the mouse. To achieve the rainbow effect, you just have to make it so each ring has its hue value a little higher than the ring before it, and increase all of the rings’ hues each frame.

Continue reading 


Go Learn

󰃭 2013-09-08 | #golang #programming-projects

Today I decided to try out Go. What is Go? Go is a programming language designed and developed at Google. It was designed by really smart people: Robert Griesemer, Rob Pike, and Ken Thompson. Syntax-wise, it looks a lot like C, except the ending semicolons are optional, and parentheses for if, for, etc are not required. Here’s a gist showing some syntax: It’s a fibonacci calculator made using a closure, caching previously calculated numbers.

Continue reading 