+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Code snippet examples

  1. #1
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Thumbs up Code snippet examples

    Is it me or do the same questions get asked again and again??

    I thought a forum with code examples might be beneficial so users can just pick out what they need - rather than googling which some users find very tricky ;).

    Or would it be better just to have a sticky in this forum category?

    It might also be useful for new ideas.

    Common issues include

    "how do I create a login page"

    "how do I create a registration process"

    "what code do I need to make a connection?"

    I know these have already been created a thousand times (and google/ sourceforge would solve a few) but there's nothing here that I can see.

    For example, I have just figured how to create a dynamic event calendar month and day view - completely driven by php (no Javascript) and linking to three relational tables.

    I'm sure there are many more.

    Just to clarify, I'm not talking about tutorials (already here!) but simple code examples that can be cut and pasted into existing script.

    What are your thoughts?
    Last edited by freecrm; 11-07-2008 at 03:20 PM.

  2. #2
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Code snippet examples

    I think this would be very good - I'm sure many people new to PHP/MySQL would find it useful.


  3. #3
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: Code snippet examples

    I too am in agreement.
    However, due to past experience we may only see a slight decline in the number of questions. On a previous board, there was a sticky named FAQ: Here's how to make a login page. You don't want to know how many topics I saw asking how to make a login page even with that there. *shudders*

    But still, let's give it a go! :D
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

  4. #4
    natsuki's Avatar
    natsuki is offline x10 Sophmore natsuki is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    112

    Re: Code snippet examples

    nice idea GO!

  5. #5
    FalseHope's Avatar
    FalseHope is offline Lord Of The Keys FalseHope is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    IRC
    Posts
    1,639

    Re: Code snippet examples

    Yeah, this would be perfect for beginners. Even a good reference guide for anyone else too.
    :happysad:;):cool::nuts::rant2::drool::eek4::dunno::thefinger:laugh::hahano::lockd::naughty:

  6. #6
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: Code snippet examples

    I wouldn't have thought adding this as an additional category here would be too much of a problem.

    Admin - is this something worth checking out?

  7. #7
    balaji2u's Avatar
    balaji2u is offline x10 Lieutenant balaji2u is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Senthamil Nadu,India
    Posts
    410

    Re: Code snippet examples

    hmm nice idea..go ahead..
    Submit your Site Links Now ! >>> :cool:
    Live Aritlces Free Articles and Links Directory


  8. #8
    dickey's Avatar
    dickey is offline x10 Sophmore dickey is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    128

    Re: Code snippet examples

    I'd say it is a nice idea but most people who asks thinks that their problem is unique. That would be why they will still ask anyway even if the question should have been answered at least a thousand times.
    Don't get me wrong as I believe if and when I help someone I also help myself whereby whatever someone learns I also learn.

    But I will also accept credits or reps if you really want to part with it.

  9. #9
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: Code snippet examples

    What might work just as well is some kind of prompt about "CHECK W3SCHOOLS FIRST" as 9 times out of 10 all newbie questions can be answered with that statement.
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  10. #10
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: Code snippet examples

    Quote Originally Posted by xmakina View Post
    What might work just as well is some kind of prompt about "CHECK W3SCHOOLS FIRST" as 9 times out of 10 all newbie questions can be answered with that statement.
    My issue with this - as you know yourself - is that they don't!

    In addition, may questions don't really want help understanding what they are writing, they want it done for them!

    I have recently been posting back and forth for a user (who shall remain nameless) on a thread that is now about 7 pages long on a fairly simple exercise. :nuts: On page 7, I am having to reference back to page 1 and its starting to do my head in...

    Code snippets would eliminate much of this as the user can "cut & paste" without really having to understand much - I know this goes against the principle of this particular forum, but it should be a valuable resource.

    Isn't this what a lot of WYSIWYG editing programs do anyway (DW for example)?

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Help with PayPal button code...
    By componentwarehouse in forum Programming Help
    Replies: 3
    Last Post: 06-17-2008, 06:22 AM
  3. BB Code Guide
    By Jober68 in forum Tutorials
    Replies: 1
    Last Post: 01-10-2008, 05:12 PM
  4. New x10 ad code
    By yahia in forum Feedback and Suggestions
    Replies: 23
    Last Post: 01-02-2007, 12:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers