Impressive code snippet?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Impressive code snippet?

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

  • a very focused, small framework
  • a tokenizer
  • pagination script
  • authentication and authorization script
to name a few
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post 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
Flamie
Forum Contributor
Posts: 166
Joined: Mon Mar 01, 2004 3:19 pm

Post by Flamie »

Jcart wrote: [*]a tokenizer
http://www.php.net/explode ?
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post 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*)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

A generic source code highlighter like Geshi/Enscript.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

How about a bbCode parser? Nice regex use.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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... :)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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...
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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:
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

i vote for the BB Parser. or the wikipedia style parser. that would be killer
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
Post Reply