Second up in the line of sorting algorithms I'll run through is the insertion sort algorithm. It's fairly different from the bubblesort algorithm in that bubblesort will go through every element that you're trying to sort and compare it with every other element (meaning, you're looking ...read more
In Sorting algorithms: bubblesort I started working on implementations of different sorting algorithms. The first obviously being bubble sort. I hadn't worked up a proper framework for the implementations though, so the implementation was just a flat file - not great for reusing code. Seeing as I plan to do ...read more
I decided recently that it was time to add to my knowledge of sorting algorithms. I didn't just want to read some quick descriptions on names of algorithms but to actually prod my knowledge-muscle with some stuff. So, I started out on Wikipedia, reading the article on sorting algorithms ...read more
I've lately started implementing unit-tests for the BeWelcome codebase and from the get-go it's been a joy. Well, almost. Spent a little time figuring out how to get the framework working and making it accessible, but after that's it's been sweet. Just running the tests gives ...read more
I can't ever recall the magic methods of PHP and sometimes google doesn't seem to display them as the first couple of hits, so for my own sake, a cheat-sheet of them with a few notes:
- __construct(/* arguments */) : called on construction of the object
- __destruct() : called when the ...
« Page 2 / 2