Fix That Code

collaborative code refactoring

Coding is an art. There are many ways to paint an apple, but which is better? Most of the code we write everyday can be written in better ways to achieve different objectives. Sometimes all it takes is a fresh pair of eyes. Code quality can be observed through various identifying markers. Perhaps you're not aware of them, don't have time to look for them or are too caught up in the moment to notice?

That's where FixThatCode.com steps in! Its a place where you can get feedback on your code, challenge other developers to improve it, work out ideas, in general just collaboratively discuss or rewrite a piece of code. It allows you to show pieces of bad code you find, but to also fix them and teach people how to avoid repeating those mistakes.

Come on in and help us write better code!

You can get help in these categories:

Make this code better

How can this code be improved? Readability, performance, architecture, all aspects.

Make this code faster

This code needs to fly, looking good does not matter, it just needs to be fast, how can it be improved?

Coding Horror, be scared

We see things that should never be done or repeated, these are good examples, teach people how to fix them.

Give me feedback

What's good or bad about this code? People trying to get a general idea of what their code looks like.

I dare you to improve this

I think this code is awesome, I challenge you to prove otherwise.

Latest Code Entries

  • Give me feedback

    Php object design - good practise to set attributes 0 reactions

    I have this Config class, taken from someone else project, and I'm trying to refactor it as an exercise. PHPMD guidelines say that an object shouldn't have more than 15 attributes. So I started working on this aspect and I'm looking for a good solution to improve the object. I will attach the

    wwr about 14 days ago

  • Give me feedback

    Php object design - good practise to set attributes 0 reactions

    I have this class (taken from someone else project) class Config { protected $database = array(); protected $hashMethod = 'bcrypt'; protected $defaultRounds = 8; protected $randomRounds = false; protected $minRounds = 5; protected $maxRounds = 9; //and 30+ othe

    wwr about 14 days ago

  • Give me feedback

    List to HTML Generator 0 reactions

    This is a simple class that converts a list into an html table. It accepts an array of strings as the table header, a map of strings that holds information such as css classes, id etc. As it is, the code runs and does what it is supposed to do. However, I am submitting this code in order to learn

    Adewale Afolabi about 31 days ago

  • Make this code better

    I need help on making my code better and faster when it loads up 0 reactions

    Its a code for school so need answers soon

    Caleb Schwartz about 41 days ago

  • Make this code better

    Photo gallery 1 reactions

    At some point the coding got messed up and instead of seeing a moving gallery of images, I now have a vertical row of images. Originally each photo also had a caption.

    judy robkin about 41 days ago

Add your own code

Want to improve your code? Or maybe just get some feedback from other developers?

Add your own code

Latest Users