Beau Peep Notice Board

Beau Peep Notice Board => Outpourings => Topic started by: Egg on July 25, 2016, 08:19:11 PM

Title: Does Mincy.......
Post by: Egg on July 25, 2016, 08:19:11 PM
.......actually have a job?

I know he's on a mission to beat Peepmaster but the posts are relentless!
Title: Re: Does Mincy.......
Post by: Tarquin Thunderthighs lll on July 25, 2016, 09:09:21 PM
We're all entitled to a little time off to pursue trivialities.

I draw silly pictures. And then I take some time off...
Title: Re: Does Mincy.......
Post by: Mince on July 25, 2016, 10:40:32 PM
Mincey's on flexible work hours. But he might be taking a rest for a while.  :)
Title: Re: Does Mincy.......
Post by: Sandy Buttcheeks on August 01, 2016, 05:37:59 PM
Flexible hours??

Flexible months, more like !
Title: Re: Does Mincy.......
Post by: Egg on August 02, 2016, 12:04:30 PM
Why don't we have a job swap week!

Not saying I'm excellent at drawing (or anything else really) but I'll give it a go and I'm sure
one of you will fit quite easily into the world of Chickens!
Title: Re: Does Mincy.......
Post by: Mince on August 02, 2016, 12:50:35 PM
Egg, why don't you start by trying out some programming.

    public function isViewable($isLoggedIn)
    {
        if ($this->idparent === IDPARENT_HEADER) return true;
        elseif ($this->parent === null && !$isLoggedIn) return false;
        else {return $this->parent->isViewable($isLoggedIn);}
    }

The function belongs to my Article class, objects of which are linked in a hierarchy using the idparent member. Obviously the function works recursively up the hierarchy by calling itself.

Tell me why this keeps throwing an error. Any ideas?
Title: Re: Does Mincy.......
Post by: Egg on August 02, 2016, 04:44:43 PM
Is the error: compile time errors: syntax errors: static semantic errors: runtime errors:
dynamic semantic errors: or logical errors?
Title: Re: Does Mincy.......
Post by: Mince on August 02, 2016, 06:32:05 PM
It's a runtime error. The code cannot call $this->parent->isViewable on a non-object. Any ideas?

(Did you understand anything of what you copy and posted? And next time at least change the plurals to singulars.) :)
Title: Re: Does Mincy.......
Post by: Tarquin Thunderthighs lll on August 02, 2016, 06:52:25 PM
Or you can try the drawing thing. It might make more sense.
Title: Re: Does Mincy.......
Post by: Mince on August 02, 2016, 07:12:55 PM
Or you can try the drawing thing.

Egg did say 'job'.
Title: Re: Does Mincy.......
Post by: Egg on August 02, 2016, 07:20:56 PM
It's a runtime error. The code cannot call $this->parent->isViewable on a non-object. Any ideas?

(Did you understand anything of what you copy and posted? And next time at least change the plurals to singulars.) :)
I did do C+ for a while but didn't get much further than my name flashing on the screen in different
colours!

Anyway, && is miss used and can cause errors!




I'm in danger of almost believing my own BS!
Title: Re: Does Mincy.......
Post by: Egg on August 02, 2016, 07:22:02 PM
Or you can try the drawing thing. It might make more sense.
Can I use crayons!
Title: Re: Does Mincy.......
Post by: Mince on August 02, 2016, 07:27:04 PM
I did do C+ for a while but didn't get much further than my name flashing on the screen in different
colours!

I think you mean C++. You should have continued until you got your name bouncing around the screen.


Anyway, && is miss used and can cause errors!

That actually is the problem, though not for the vague reason you give.
Title: Re: Does Mincy.......
Post by: Tarquin Thunderthighs lll on August 03, 2016, 01:15:52 PM
Or you can try the drawing thing.

Egg did say 'job'.

Shall we compare career earnings?  :\
Title: Re: Does Mincy.......
Post by: Tarquin Thunderthighs lll on August 03, 2016, 01:16:19 PM
Or you can try the drawing thing. It might make more sense.
Can I use crayons!

I've no idea. Can you?
Title: Re: Does Mincy.......
Post by: Sandy Buttcheeks on August 04, 2016, 11:08:33 PM
Or you can try the drawing thing. It might make more sense.
Can I use crayons!

I've no idea. Can you?

 ;D ;D ;D