Page 1 of 1

Impressive code snippet?

Posted: Mon Oct 23, 2006 2:21 pm
by Charles256
Anyone think of anything they'd like to see coded that they'd estimate would take 5 or so hours and that you just think would be nifty? let me know. i've lost all my favorite code snippets ( damn crashes) and i need to code something with a quickness.help? :-D

Posted: Mon Oct 23, 2006 2:24 pm
by John Cartwright
  • a very focused, small framework
  • a tokenizer
  • pagination script
  • authentication and authorization script
to name a few

Posted: Mon Oct 23, 2006 2:25 pm
by Charles256
hum.ideas on the framework? and the authentication and authorization script is an idea...what level of abstraction are you looking for there? just asking because i plan on giving ya the code to use when i get done if you want it

Posted: Mon Oct 23, 2006 2:26 pm
by Flamie
Jcart wrote: [*]a tokenizer
http://www.php.net/explode ?

Posted: Mon Oct 23, 2006 2:41 pm
by MrPotatoes
Flamie wrote:
Jcart wrote: [*]a tokenizer
http://www.php.net/explode ?
there is more to a tokeniser than just that ;)

i've done an Access Control List (permissions System). still has major bugs butt he major hurdles have been crossed

i've done a pretty simple and easy user auth

and i've gotten a pretty sweet MVC framework going. i'm pretty proud of that.

soon i'll have alot more to say once i get this next project (assuming the head guy knows what he wants *sigh*)

Posted: Mon Oct 23, 2006 4:23 pm
by Chris Corbyn
A generic source code highlighter like Geshi/Enscript.

Posted: Mon Oct 23, 2006 4:41 pm
by RobertGonzalez
How about a bbCode parser? Nice regex use.

Posted: Mon Oct 23, 2006 5:51 pm
by alex.barylski
MrPotatoes wrote:
Flamie wrote:
Jcart wrote: [*]a tokenizer
http://www.php.net/explode ?
there is more to a tokeniser than just that ;)
Hmm...depends...even a simple explode() qualifies as a tokenizer...the difference is most powerful tokenizers can accept an arbitrary (or at least more than one) number of rules...whereas explode...takes only one. It is IMHO still a tokenizer, just a very trivial one is all... :)

Posted: Mon Oct 23, 2006 5:53 pm
by alex.barylski
I'd be interested ni seeing a authentication library...as I have yet to see one which meets enough requirements to be considered re-usable.

I second the authentication vote...

Posted: Wed Oct 25, 2006 5:36 am
by s.dot
d11wtq wrote:A generic source code highlighter like Geshi/Enscript.
UGH. I just spent about two hours trying this. I started off with PHP highlighting, then I planned on adding HTML & CSS.

I didn't get past the PHP highlighting part. I could do each section fine. Comments, variables, constructs, functions, and strings. But when they're nested................... too difficult for me. :cry:

Posted: Wed Oct 25, 2006 6:58 am
by patrikG
Hockey wrote:I'd be interested ni seeing a authentication library...as I have yet to see one which meets enough requirements to be considered re-usable.

I second the authentication vote...
viewtopic.php?t=38810

Posted: Wed Oct 25, 2006 11:45 am
by MrPotatoes
i vote for the BB Parser. or the wikipedia style parser. that would be killer

Posted: Wed Oct 25, 2006 2:24 pm
by feyd
MrPotatoes wrote:i vote for the BB Parser. or the wikipedia style parser. that would be killer
Wikiwiki style parsing: http://tatzu.net/examples/bbCoCode.phps