Code viewer

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
User avatar
House
Member
Member
Posts: 70
Joined: 23 Feb 2008, 12:49
Real name: Sean
Location: Hiding in Tree.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Code viewer

Postby House » 24 Aug 2008, 19:05

sTraTo, that would be called "karma". :P



And thanks evil for trying to straighten him out... Again. - I'm lookin' at you, Mr. PoPTarTo. Lesson one: do as thy eviL <3 say. >:P
Women should be obscene and not heard. X)

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Code viewer

Postby harmlessgoat22 » 24 Aug 2008, 19:52


That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Code viewer

Postby Obsidian » 26 Aug 2008, 05:53


harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Code viewer

Postby harmlessgoat22 » 26 Aug 2008, 20:38

Well, a while statement doesn't work in all situations. For example...

function this()
{
echo "hello";
this();
echo "goodbye;
}
This will (if it ended, which it won't...but you get the picture) return "hellohellohellohellogoodbyegoodbyegoodbyegoodbye", and you can't do this with a while statement, well you can, but with two...ok, bad example. But there are situations that it makes much more sense (or isn't even possible without) recursive functions.

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Code viewer

Postby Obsidian » 26 Aug 2008, 21:33

Well, the while statement I was using had a sizeof check and an array that had the to-do list of directories to check, so if it does take more memory for a recursive function, I might just stick with my own code...

Yea or nay as for recursive fn's using more memory and being more system taxing, though?

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Code viewer

Postby Obsidian » 30 Aug 2008, 18:46


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Code viewer

Postby Obsidian » 02 Sep 2008, 06:10


User avatar
House
Member
Member
Posts: 70
Joined: 23 Feb 2008, 12:49
Real name: Sean
Location: Hiding in Tree.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Code viewer

Postby House » 02 Sep 2008, 07:55

Not bad. *suckxor-cough* :)
Women should be obscene and not heard. X)

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Code viewer

Postby harmlessgoat22 » 02 Sep 2008, 12:18

Doesn't look half bad... :)

But...lets see, hack it...hmm. Where to start? :) *pokes Igor to find some easy way of exploiting it to teach sTraTo a life lesson: If you try, you WILL fail. I learned that a long time ago, so I've basically stopped trying :)

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Code viewer

Postby Obsidian » 02 Sep 2008, 15:26

Pah, if you never try, you never get anywhere. :lol:

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Code viewer

Postby harmlessgoat22 » 02 Sep 2008, 20:28

If you never try, you never fail either ;). (by the way, the above was complete satire...about not trying, etc.)

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Code viewer

Postby Obsidian » 02 Sep 2008, 20:55

I kinda got that...or did I? :shock:

(Find out live next episode, airs tomorrow!)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 19 guests