Quote of the Refresh

"What moves men of genius, or rather, what inspires their work, is not new ideas, but their obsession with the idea that what has already been said is still not enough."

Category: Life

Latest Three

Refactorific

click, click, click

I've refactored my site. ~Yay!~

You can't tell because it was all backend stuff. ~Boo~

I've OOP'd it all. Basically.

Current iTunes //
L'arsienne Georges Bizet

What's Goin' Down

da

I'm slowly finding out that putting together a shopping cart is a bit more complicated than I thought. I originally intended to slap one together to see if I could sell off random junk lying about the house. Being that this junk is random though, it ends up widening the range of considerations in putting together the database. At one point I had to resolve, in my head, whether or not a publisher could be considered a manufacturer or not, I mean, they do 'manufacture' the book, don't they?

Still going at it, but it's slow. and tedious. But I'm still too lazy to glance at the documentation for OS Commerce.

I'm comforted by the fact that it could be even slower.

Somehow.

Current iTunes //
Have Yourself A Merry Little Christmas Ella Fitzgerald

Using A Method Within A Method Within The Same Class In PHP (OOP)

bazzing

This is something simple that I don't see explained in too many texts. I guess it's just so simple that people should get it right away. This is for the ones that don't...

Basically, use '$this' to get the method (function) working if you want to use it inside another method, but within the same class.


class Fruitcake
{
function Cashews ()
{
echo "hello cashews!";
}
function Bread ()
{
$this->Cashews();
}
}

$obj = new Fruitcake;
$obj->Bread();

The resulting output will be: "hello cashews!"

Current iTunes //
It's A New Year Sister Hazel

Sketches, Doodles, & Portfolio

Latest Reads

books here