I like to dip my feet into writing a little bit of code now and then. Most of the times I like to modify or in geek speak ‘refactor’ already written code to make it do what I want.
As I have mentioned earlier, my blogging efforts started with my interest in learning PHP & MySQL. Running a WordPress powered blog provides with plenty of opportunity for tinkering with PHP code. For better or worse. 😈
RefactorMyCode.com
Now, I can find and learn how to write a better piece of code by going to RefactorMyCode. It is community driven where other coders help you write better and efficient code.
You post your half-baked or noble prize winning code here and others will take a look at it and tell you how it should be written. The result is a little bit of humiliation with the bright side being able to see how it should have been written in the first place. Clean and efficiently.
Every code refactoring is rated by fellow coders in the community so it helps to find the best possible solution to a problem.
Here is a question on how to improve a piece of code to find if it is a leap year in Javascript.
And here is an elegant one-line solution offered by a coder. (Sorry if the words in the picture are blurry.. please follow the link to see the code)
Whatever flavor of code you might like, Java, PHP, Javascript, or Ruby, you can find some great help refactoring your code here. It looks like I might hang out here more often in the coming weeks.
Just browsing through the ‘Best’ and ‘Popular’ sections can be a learning experience. I see a lot of potential for a site like this. This sort of refactoring help happens in tech forums all the time but the way this has been built around helping budding programmers somehow makes it stand out for me.
What do you think?
[via MakeUseOf]
Hey thanks for the great review!
Glad you like the site
(I’m the creator of RefactorMyCode.com)
Thanks for info