PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Nov 26, 2014 11:13 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: The [Challenge] Index
PostPosted: Tue Aug 25, 2009 3:59 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
[Challenge] threads are essentially puzzles. Someone (you!) can post a question that would be interesting to see various solutions to. Just pop [Challenge] in the thread subject somewhere.

When someone posts a [Challenge] thread it'll be linked to here so they're easy to find again:


Syntax: [ Download ] [ Hide ]
.....................................................
: Challenge                          : Author       :
:....................................:..............:
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105200" class="postlink">Database Connection</a>                : klevis miho  :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105220" class="postlink">Secret Decoder Ring</a>                : McInfo       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105238" class="postlink">What color is the text?</a>            : onion2k      :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105337" class="postlink">Draw a chess field</a>                 : klevis miho  :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105420" class="postlink">Snakes and ladder style board</a>      : mikemike     :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105592" class="postlink">largest factorial</a>                  : jazz090      :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106110" class="postlink">Array Reversing button</a>             : lunaticrabic :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106119" class="postlink">Colour rotation</a>                    : SimonMayer   :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106143" class="postlink">Create a Form Description Language</a> : joeynovak    :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106495" class="postlink">Seeing Stars (and a Diamond)</a>       : McInfo       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106778" class="postlink">Make a functional calendar</a>         : Griven       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=107654" class="postlink">Images the Hard Way</a>                : McInfo       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=108087" class="postlink">The Coder Cypher</a>                   : Weiry        :
: <a href="http://forums.devnetwork.net/viewtopic.php?f=1&t=110387&start=0&st=0&sk=t&sd=a" class="postlink">Zig-Zag Traversal</a>                  : VladSun      :
:....................................:..............:


(Thanks to McInfo for the fancy table thing)


Top
 Profile  
 
PostPosted: Tue Aug 25, 2009 6:28 am 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
With kudos to ~klevis miho of course for originally coming up with the idea :P


Top
 Profile  
 
PostPosted: Thu Aug 27, 2009 12:03 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
The moderation team has been discussing ideas for challenges and we think that it's a very good idea. We invite everyone to get involved in solving and coming up with ideas for challenges.

_________________
Image


Top
 Profile  
 
PostPosted: Thu Aug 27, 2009 5:11 am 
Offline
Forum Contributor

Joined: Wed Oct 29, 2008 2:59 pm
Posts: 413
Location: Albania
You should really open a category for that man :)


Top
 Profile  
 
PostPosted: Fri Aug 28, 2009 6:11 pm 
Offline
Forum Contributor
User avatar

Joined: Sun May 24, 2009 5:37 pm
Posts: 355
Location: Chester, UK
viewtopic.php?f=1&t=105420


Top
 Profile  
 
PostPosted: Fri Sep 11, 2009 7:35 am 
Offline
Forum Newbie

Joined: Fri Sep 11, 2009 5:57 am
Posts: 1
astions wrote:
The moderation team has been discussing ideas for challenges and we think that it's a very good idea. We invite everyone to get involved in solving and coming up with ideas for challenges.



nice


Top
 Profile  
 
PostPosted: Fri Dec 18, 2009 8:19 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
:)
viewtopic.php?f=1&t=110387&start=0&st=0&sk=t&sd=a

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
PostPosted: Fri Dec 18, 2009 5:02 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
VladSun wrote:


Added.


Top
 Profile  
 
PostPosted: Wed Feb 10, 2010 11:57 pm 
Offline
Forum Newbie

Joined: Sun Jan 24, 2010 8:37 pm
Posts: 2
Testing


Top
 Profile  
 
PostPosted: Fri Feb 12, 2010 6:27 am 
Offline
Forum Contributor
User avatar

Joined: Thu Oct 29, 2009 6:48 am
Posts: 239
Location: UK
viewtopic.php?f=1&t=112782

:)


Top
 Profile  
 
PostPosted: Tue Mar 02, 2010 10:05 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
viewtopic.php?f=1&t=113599
:lol:

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
PostPosted: Sun Mar 21, 2010 12:31 am 
Offline
Forum Newbie

Joined: Sun Mar 21, 2010 12:24 am
Posts: 1
[quote="Benjamin"]The moderation team has been discussing ideas for challenges and we think that it's a very good idea. We invite everyone to get involved in solving and coming up with ideas for challenges.[/quote]

That is great to know. I love to face new "challenges" LOL, although I am not (regretfully) always very good at solving them. But I keep trying ... ;)


Last edited by sukrityt8 on Fri Aug 20, 2010 4:34 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Mar 31, 2010 7:44 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
:)
viewtopic.php?f=1&t=114832&start=0

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
PostPosted: Thu Apr 01, 2010 3:26 am 
Offline
Forum Commoner

Joined: Tue Mar 30, 2010 6:18 pm
Posts: 61
How about something practical?

Implement regex-based URL routing: Given a URL, passed by the web server to your front controller, find the most efficient way to match said arbitrary URL against an arbitrarily large list of URL regex's, with an emphasis on avoiding the overhead of repeated preg_match (or similar) calls.

Extra credit: Minimize the number of regex matches while still allowing duplicate named patterns in your URL regex's.

This is a problem I've worked with recently and would be interested in seeing more solutions to.


Top
 Profile  
 
PostPosted: Fri Apr 02, 2010 4:42 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
phu wrote:
How about something practical?

I don't really think that's a good idea. The point of coding challenges is to find interesting and inventive solutions to arbitrary problems - it's very likely those solutions won't necessarily be the best ones from a readability, efficiency or practical point of view. If we use realistic scenarios people might take the code and use it on their websites, introducing all sorts of security and usability issues along the way.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group