Someone on JSPerf dropped an amazingly fast implementation for checking leap years of the ISO calendar (link: Odd bit manipulations ):
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label implementation. Show all posts
Showing posts with label implementation. Show all posts
Thursday, May 10, 2012
Leap year check using bitwise operators (amazing speed)
Wednesday, May 9, 2012
How to improve the builder pattern?
Motivation
Recently I searched for a way to initialize a complex object without passing a lot of parameter to the constructor. I tried it with the builder pattern, but I don't like the fact, that I'm not able to check at compile time if I really set all needed values.
Subscribe to:
Posts (Atom)