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 moreSorting algorithms: quick update
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 moreSorting algorithms: bubblesort
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 morePHP switch script
As promised in PHP 5.2.x and 5.3.x side by sidehere's a script that switches not just the php module for Apache but also the command line version
read more1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ...
PHP 5.2.x and 5.3.x side by side
A while ago I ripped out my PHP 5.2 installation (nicely handled by apt-get) in favour of manually installing 5.3 so I could play around. Yesterday I then installed Ubuntu 9.10 (info and download at ubuntu.com) and after quite a lot of installing I suddenly found ...
read moreRanting about PHP
Came across this blog post on PHP today. Seems to me the author needs a fair amount of sleep and then a cop of coffee or two ...
First,
... it all started with me trying to be clever with array_map and array_filter.
Being clever is not a good thing. In my ...
read moreBeginning unittests
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 moreLists of x
PHP magic methods
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