• Post Reply Bookmark Topic Watch Topic
  • New Topic

Code Barn???  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are some more examples going to be added? Will the users ever be able to upload examples for everyone to see...I feel this would be a very valuable asset to this site...which by the way is very informative.
 
paul wheaton
Trailboss
Posts: 22537
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I intend to add some stuff today.
As for users adding stuff - what did you have in mind?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set up a new fourm called "Code Snippets"??? or sections like Code(beginner), Code(intermediate), etc... You could include a disclaimer, "Code has not been tested."
This way all code would be in one central location. It would make it very useful when studying. Say you had a question on arrays...look for a post on array code. Since some of these snippets could become quite large...maybe set it up so we could upload a zip file...just an idea
Thanks
 
paul wheaton
Trailboss
Posts: 22537
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, are you thinking of forums different than the general forums we have now?
BTW--- I've updated the code barn to include a collection of files that I pack around with me to different projects. Tell me what you think.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Categorized accordingly.
Code Barn looks good. Keep them coming.
Thanks
 
paul wheaton
Trailboss
Posts: 22537
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help me understand your vision for the new forums. Someone will post a code snippet that they think is of value to others? And then others can comment on it and refine it?
 
Deepoo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Wheaton:
Hmmm, are you thinking of forums different than the general forums we have now?
BTW--- I've updated the code barn to include a collection of files that I pack around with me to different projects. Tell me what you think.

Just thought you should know. I was trying to compile the HelloServerFile applet example at the Code Barn and the latest java compiler (JDK 1.3) complains that there are references to a deprecated interface, or to be specific, readLine() in java.io.DataInputStream. I compiled the code with the -deprecation option, but even then, you get a warning when you compile.
Would it be safe to use this applet as an example?
Deepak

[This message has been edited by Deepoo (edited June 15, 2000).]
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Deepoo:
Just thought you should know. I was trying to compile the HelloServerFile applet example at the Code Barn and the latest java compiler (JDK 1.3) complains that there are references to a deprecated interface, or to be specific, readLine() in java.io.DataInputStream. I compiled the code with the -deprecation option, but even then, you get a warning when you compile.
Would it be safe to use this applet as an example?
Deepak

[This message has been edited by Deepoo (edited June 15, 2000).]

Yes, deprecation doesn't mean that a meathod will not work, only that there is a better less bug prone way or OO way to do the same thing. It also means that some time in the future, the method will disapear so... it's best to replace the deprecated method. Usually if you search the javadocs for the method, there is guidance on what to use in it's place.
Also -deprecation causes the compiler to show the line that the deprecated method is used in, it doesn't suppress the generation of the warning. If that is your intent you could use the -nowarn but, you could miss some valuable debug information this way so....
 
paul wheaton
Trailboss
Posts: 22537
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those applet examples are pretty old. So it's no wonder that they use deprecated stuff.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!