Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become an Expert!

Join 244,267 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,189 people online right now. Registration is fast and FREE... Join Now!




NEW: Code Snippets 2.0

2 Pages V  1 2 >  
Reply to this topicStart new topic

NEW: Code Snippets 2.0

skyhawk133
11 Sep, 2007 - 10:52 AM
Post #1

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,441



Thanked: 117 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
After several weeks of work and years of planning ( rolleyes.gif ) our very own hotsnoj (Josh) has re-done the code snippets area. There's lot of new functionality, much of which will help the dream.in.code staff ensure only the best snippets make it in to the database.

So, without further ado, check out the new Code Snippets 2.0: http://www.dreamincode.net/code

Here's a run down of the new features in detail:
  • New Look: The snippets and categories have been redesigned with a less cluttered look and feel. You'll find snippets display with line numbers and not in the tiny scroll box
  • Snippet Approval: snippets will now be approved by the staff. Snippets that are rejected will be automatically PMd to the author for editing and resubmitted for approval
  • Commenting: When a user comments on your snippet, you'll get a PM with a link to the snippet
  • Copy & Paste: we know some programs handle copy/paste differently, so now you can copy and paste just the code (and not the line numbers)
  • Modify Snippets: When you modify a snippet, it will be sent for reapproval
A lot of what's new is under the hood, new code, new process for moderators to approve/reject, and all new API's for future projects. Hotsnoj did a great job putting up with my "you know what would be a cool idea?" So kudos to him. If he's up for it, he'll be doing some more development in the future.

Feedback... Bugs... More ideas... post em' here!

User is online!Profile CardPM
+Quote Post


snoj
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 10:54 AM
Post #2

Now with 10% more nom!
Group Icon

Joined: 31 Mar, 2003
Posts: 3,368



Thanked: 21 times
Dream Kudos: 775
My Contributions
QUOTE
"you know what would be a cool idea?" So kudos to him.

I should get 5 gajillion kudos for that monkey business alone. tongue.gif

Well I hope you all have WAY more fun using the new codebase than I did writing it! tongue.gif
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 10:56 AM
Post #3

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,441



Thanked: 117 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
I can say that Josh accomplished the #1 rule of software development... Job Security through Obscurity. I'm gonna need some serious time to go through and figure out all this new fangle dangle code wink2.gif
User is online!Profile CardPM
+Quote Post

snoj
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 10:58 AM
Post #4

Now with 10% more nom!
Group Icon

Joined: 31 Mar, 2003
Posts: 3,368



Thanked: 21 times
Dream Kudos: 775
My Contributions
Hey I thought I commented on the API quite well, documenting what everything did and naming methods clearly.

It's the templates where you'll have troubles though. tongue.gif
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 11:01 AM
Post #5

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,977



Thanked: 116 times
Dream Kudos: 25
My Contributions
Great work Josh...really well done.
User is online!Profile CardPM
+Quote Post

no2pencil
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 11:01 AM
Post #6

Unix Ronin
Group Icon

Joined: 10 May, 2007
Posts: 10,438



Thanked: 198 times
Dream Kudos: 2725
Expert In: Goofing Off

My Contributions
Very nice! Very nice indeed!
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 11:17 AM
Post #7

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,075



Thanked: 12 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
Sorry to be the bitch, but I've noticed that the comments by the anonymous commentators have no indication that they are anonymous, i.e. there is no Anonymous text in them, maybe this was done intentionally, but personally I think that there should be such text line.

Other than that little detail, everything is cool, and I mean real cool.
User is offlineProfile CardPM
+Quote Post

capty99
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 11:22 AM
Post #8

i am colt mccoy
Group Icon

Joined: 26 Apr, 2001
Posts: 9,557



Thanked: 25 times
Dream Kudos: 550
My Contributions
hey it might actually get used!

nice work.

1 note : ads for me . intended?
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 11:24 AM
Post #9

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,441



Thanked: 117 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
You shouldn't see any ads. The adsense code isn't in a conditional though so that would explain it, I'll have Josh come up with a class to take care of that, and might actually be able to reuse the damn thing elsewhere.

Thanks.

QUOTE(PennyBoki @ 11 Sep, 2007 - 01:17 PM) *

Sorry to be the bitch, but I've noticed that the comments by the anonymous commentators have no indication that they are anonymous, i.e. there is no Anonymous text in them, maybe this was done intentionally, but personally I think that there should be such text line.

Other than that little detail, everything is cool, and I mean real cool.



Can you link me to a snippet so I can see what you mean. Anonymous comments are no longer allowed, so that may not have been a consideration.
User is online!Profile CardPM
+Quote Post

capty99
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 11:52 AM
Post #10

i am colt mccoy
Group Icon

Joined: 26 Apr, 2001
Posts: 9,557



Thanked: 25 times
Dream Kudos: 550
My Contributions
how much traffic do you get through the snippets page.

i hit upon it 3 days ago searching for some java stuff.
link 2 on the google.

btw just found an unlicensed dreamincode room on meebo. lol
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 12:01 PM
Post #11

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,441



Thanked: 117 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
Probably 3-5k visitors a day through code snippets.

What do you mean unlicensed? We have an AIM room called "dicheads" right now...
User is online!Profile CardPM
+Quote Post

Jayman
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 12:24 PM
Post #12

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,063



Thanked: 159 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Excellent work, hotsnoj!

Looks fantastic.
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 12:37 PM
Post #13

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,075



Thanked: 12 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
QUOTE(skyhawk133 @ 11 Sep, 2007 - 12:24 PM) *

You shouldn't see any ads. The adsense code isn't in a conditional though so that would explain it, I'll have Josh come up with a class to take care of that, and might actually be able to reuse the damn thing elsewhere.

Thanks.

QUOTE(PennyBoki @ 11 Sep, 2007 - 01:17 PM) *

Sorry to be the bitch, but I've noticed that the comments by the anonymous commentators have no indication that they are anonymous, i.e. there is no Anonymous text in them, maybe this was done intentionally, but personally I think that there should be such text line.

Other than that little detail, everything is cool, and I mean real cool.



Can you link me to a snippet so I can see what you mean. Anonymous comments are no longer allowed, so that may not have been a consideration.


http://www.dreamincode.net/code/snippet38.htm


http://www.dreamincode.net/code/snippet882.htm

I didn't now that annonymous comments weren't allowed anymore.

in the links in the annonimuos comments there's only e.g.

2007-01-16 16:57:54
Subject: RE


and there isn't anywere Anonimous

but it's not that a big deal I guess.
User is offlineProfile CardPM
+Quote Post

1lacca
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 12:44 PM
Post #14

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 22 times
My Contributions
Really nice, kudos, kudos and kudos!
User is offlineProfile CardPM
+Quote Post

MarkoDaGeek
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 12:57 PM
Post #15

Dirty Technophile
Group Icon

Joined: 13 Oct, 2001
Posts: 11,087



Thanked: 2 times
Dream Kudos: 970
Expert In: Computer Networking, Web Development, Blogging

My Contributions
Nice work, like I was telling Chris earlier it put's the other sections to shame, looks really good.
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 01:05 PM
Post #16

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 6,656



Thanked: 613 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Really fabulous work! I do have a few recommendations that might make things a tad bit nicer.

1) Can you widen the cut and paste textarea field to take the width of the center window? Like you are doing there for the syntax highlighted code. This would make it easier to see the full length of the lines without so much word wrap.

2) There is also this black line on the left hand side of snippet entries. Is it meant to be like that because it looks out of place I think. Image of it below...

IPB Image

3) I love the syntax highlighting but could you maybe change Java's because some of those pastel colors blend right into the light gray background and makes the whole thing hard to read?

But really, kick ass job hotsnoj! Your wizardry is certainly one of the best.

cool.gif
User is offlineProfile CardPM
+Quote Post

capty99
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 01:36 PM
Post #17

i am colt mccoy
Group Icon

Joined: 26 Apr, 2001
Posts: 9,557



Thanked: 25 times
Dream Kudos: 550
My Contributions
go the other route of deleting it.
make it wider and then there is no doubt its the design.
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 01:39 PM
Post #18

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 6,656



Thanked: 613 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Maybe wider and orange? maybe a gradient on it? That could work too. smile.gif
User is offlineProfile CardPM
+Quote Post

capty99
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 01:49 PM
Post #19

i am colt mccoy
Group Icon

Joined: 26 Apr, 2001
Posts: 9,557



Thanked: 25 times
Dream Kudos: 550
My Contributions
no pages makes me happy.
i like scrolling more than clicking.

User is offlineProfile CardPM
+Quote Post

MarkoDaGeek
RE: NEW: Code Snippets 2.0
11 Sep, 2007 - 01:51 PM
Post #20

Dirty Technophile
Group Icon

Joined: 13 Oct, 2001
Posts: 11,087



Thanked: 2 times
Dream Kudos: 970
Expert In: Computer Networking, Web Development, Blogging

My Contributions
I said the same thing to Chris about the black line.... Kinda weird.
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 12:51PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month