Code Snippets Restructuring

Where we keep all the boring tidbits about the PHPDN site, the news, and what not.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Code Snippets Restructuring

Post by Chris Corbyn »

The moderators have been discussing the organization of the Code Snippets forum. Since Code Snippets is intended for snippets which are useful to others and suitable for use at a production level we will be locking this board to the creation of new threads. If you want a thread creating under this board you should first PM a moderator who will organize this for you and possibly open up the board to you for future posts if we see fit.

Threads which are posted in the Code Snippets forum after it has been locked will still be open to replies from logged in members.

At present Code Snippets is being used as a sort of "Critique" forum and because we're not completely heartless ;) the proposal as it stands is to Create a new Forum called something along the lines of "PHP Code Critique" or showcase. This will be open to all members and can be used in the way many members seem to be using Code Snippets right now.

You will undoubtedly notice some threads disappearing from the Code Snippets forum while this is in the process. Don't worry if your thread disappears, we are not deleting anything, we have them in safe keeping.

More refined rules will be given on the use of the Code Snippets forum after an official draft has been created.

Thanks,

DevNetwork Moderators
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Good news...
d11wtq wrote:At present Code Snippets is being used as a sort of "Critique"
I've started to feel the same recently.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Great Idea!

But please don't ditch the country state/province sql. It's very handy.

As are a number of other "Snippets"
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

This is getting worse... People keep posting their 5 lines-useless functions they wrote as a code snippet.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Me?
Last edited by Benjamin on Mon Jul 17, 2006 3:25 am, edited 1 time in total.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

:?: :?: :?: :?:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Code Snippets
Small, short code snippets that other people may find useful. Do you have a good regex that you would like to share? Share it! Even better, the code can be commented on, and improved.
You posted your comment shortly after I posted 4 or 5 short functions that I feel may be useful to other people. Sorry you felt like they were useless, I'm sure they will help someone now and/or in the future.
Last edited by Benjamin on Mon Jul 17, 2006 3:26 am, edited 1 time in total.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Oren wrote:This is getting worse... People keep posting their 5 lines-useless functions they wrote as a code snippet.
Five-liners are perfectly ok for Code Snippets forum.
It's the quality of the code we've concerns with. That's the reason for reorganization. As to the usefullness of the snippets... something useless to you may come in handy for someone else.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

astions, Oren, no flame please.

astions, if you feel insulted the proper way would be to contact a moderator or resolve the issue directly via pm.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

astions wrote:You posted your comment shortly after I posted 4 or 5 short functions that I feel may be useful to other people.
I really didn't mean to insult you, I'm really sorry if I made you feel like that.
astions wrote:I haven't seen any of your code. Perhaps you would rather remain to be an outspoken critic.
You haven't seen my code since I believe that the Code Snippets forum is for more serious scripts like d11wtq's Swift Mailer, and I have yet to code something like this.

P.S Again, I'm really sorry if I made you feel like that, I never meant to insult you or anybody else :wink:
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

I originally created the Code Snippets forum for the very purpose of housing smaller, short scripts and code snippets. Simple little things that can spark ideas. The itention was never to become a full blown code repository of fully functioning scripts and programs. However, the community does with it what they will. At the end of the day, quality is of course a factor, but the length or complexity of the snippet isn't. If it does something useful, and the programmer feels others might benefit from it, that's what the code snippets forum was built for.

There might have been some confusing with last sentence explaining the forum: "Even better, the code can be commented on, and improved."

This wasn't meant to imply that you post short code expecting it to be improved; rather, the another benefit of posting completed code is the possibility that you will get feedback, and that original code snippet will be used by others, and they will come back and post their changes to the benefit of all. Granted, I always treated these forums like an organism. I provided the outlets, but in the end, the community did with it what they will. It seemed to work.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Jason, your alive! Good to see you around man.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

hawleyjr wrote:Jason, your alive! Good to see you around man.
Lies. I know not of whom you speak.

:wink:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Holy crap, the man, the myth, the legend... returns to the boards. I never thought I would ever interact with you. This is awesome. I'm gonna go get coffee.
Post Reply