Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Then take your solution and do it in half the lines. Now, read more of the Python docs (maybe read about generators and list comprehensions and decorators) and make it even shorter.

I don't agree with this. Shorter lines of code don't really express anything beyond how cuthulu-inspired your code will read, and performance is very likely to take a hit. Euler problem 2 solutions that are simply a for-loop rather than take advantage of geometric progression are slow and don't indicate higher-level abstraction of problems or the tools to solve them. Almost any programmer should be able to do the first 50 programs with random brute-force methods that are only a few lines long, but that doesn't do anything other than demonstrate you can have a computer add together numbers based on an if-statement.

It especially doesn't show you know how to bring together technologies that are useful for doing things such as building a website.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: