This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Source Code Detection

 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I took things seriously, the ratio of my meaningful posts to a single liner posts ("please use the *code* UBB tag when posting code") would approach zero over time. New people come to JR all the time, and the threads are full of unformatted code.
What I suggest is a "code detection" functionality, when a post is submitted. There would be some challenge for the "auto detect" to determine where the code starts and ends in the post, but it's certainly not impossible. Once the bounds are determined, the portion of the post deemed as code would be wrapped up by the UBB code automatically.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting idea. Perhaps worth contemplating as an enhancement after we get a new system up and running, having attended to other more basic functionality. (Yet another thing I wouldn't want to attach to UBB.) I'd suggest that (unless it has really good AI) it shouldn't just automatically slap code tags around "suspected code", but should instead say something like "You post appears to include Java code which has not been formatted with [ code ] tags. Do you with to: (1) Edit your post (2) Submit now as is". Something like that.
 
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more suggestion:
To filter the subject field of topics for the words like 'HELP', 'URGENT' etc
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And another:
To detect whether a same user is posting a same question in multiple forums. How is that?
 
this is supposed to be a surprise, but it smells like a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!