Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > Forum and Wrox.com Feedback
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 4th, 2007, 01:37 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default Small issue, someone else may have noticed too

Hi Jim/ Administrator

Well I have been with this forum for almost 3 yrs now, and these years have been wonderful. I often recommend a lot junior colleauges to this site for discussions. Since some of them are real beginners, they point out mere issues with the design of wrox forums. From these issues, I found an issue being raised quite often, though its a mere issue, I thought to let the administrators know.

The point is whenever we create a new post, or reply to any post, if the matter is too long, sometimes the width of the table exceeds screen width due to which scrolling appears. An e.g. is as below:

http://p2p.wrox.com/topic.asp?TOPIC_ID=58585

This is a small issue that can be very well sorted out using CSS. So lets see what the admins have to say about this.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
__________________
Regards
Mike
  #2 (permalink)  
Old April 4th, 2007, 07:56 AM
jminatel's Avatar
Wrox Staff
Points: 18,895, Level: 59
Points: 18,895, Level: 59 Points: 18,895, Level: 59 Points: 18,895, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,944
Thanks: 72
Thanked 139 Times in 101 Posts
Default

Thanks Mike. Good observation, I'll add it to our list of ideas for "that big p2p.wrox.com" upgrade I'm always hoping to get approved. :)
let me ask, in the example you gave, what would be the ideal behavior in your opinion?
would you have us break and wrap the long lines of code?
would you have us check for line length when posting and give the poster an opportunity to change it then?
Some other fix in mind?

Thanks for your use of the site and referring so many others. It's fun to watch this community grow!

Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Jim's Book of the week: No book this week - Donate to the Red Cross!
  #3 (permalink)  
Old April 4th, 2007, 08:06 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Jim,
   As you no doubt can tell, that behavior is only exibited when someone posts a code sample surrounded by the Forum Code code tag; posting as regular text will cause the code to wrap.

When a code tag is placed in a post it ultimately gets transformed into a <pre> tag and tag that both use a style named 'code'; it might be worth while to instead repleace the code tag with a <div> that has a set width. This will invariably cause wrapping with long lines of code, but IMHO, it will be much easier to read in that incantation then using the HScroll Bar to read the entire line.

My 2 cents anyway.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
  #4 (permalink)  
Old April 4th, 2007, 08:16 AM
jminatel's Avatar
Wrox Staff
Points: 18,895, Level: 59
Points: 18,895, Level: 59 Points: 18,895, Level: 59 Points: 18,895, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,944
Thanks: 72
Thanked 139 Times in 101 Posts
Default

That makes sense. Thanks!

Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Jim's Book of the week: No book this week - Donate to the Red Cross!
  #5 (permalink)  
Old April 4th, 2007, 08:43 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Sorry, but I don't agree.

For some languages it doesn't matter if you add additional lines.

However, for languages like VB.NET this could cause serious problems. I can already envision posts where people complain that:

Dim myPerson As New
   Person(id)

doesn't work; simply because a line break was introduced where it's not allowed.

I see three ways to fix it:

1. Ask people to format their code. I occasionally do that, with little results usually.

2. Add a <div> with overflow: auto; around the code. That way, the div gets scrollbars when the code is too wide.

3. Leave it like it is, and live with it.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #6 (permalink)  
Old April 4th, 2007, 08:46 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

WOW Parsons

That was some real good study of the code, I thought I was the only one who copied the content, pasted the HTML and blah blah blah....

Yes Jim, I too agree with parsons idea of implementing a <div> tag in place of <pre>. But yes again, it comes to us to decide whether a user would like to read the content with scrolling.

Personally I would support the idea of using DIV tag, anyhow we are scrolling the matter, whether it be the IE's default bars or the DIV's.

Well about Imar's suggestion,

1st point would be a bit difficult from the user's point of view, I won't feel comfortable editing a 100 line code manually taking care of area's width.
3rd point, can only be thought off when we have both our hands open with no ray of hope.
2nd point, yes I stongly agreeee.

(Imar I have quoted the above with due respect to your suggestions).

Parsons, lets hear it from Jim.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
  #7 (permalink)  
Old April 4th, 2007, 08:56 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

From a troubleshooting standpoint, I can completely agree with Imar because, in the case of VB.NET it would introduce an element of uncertainity for those of us trying to debug someones code.

"Did the OP place that line break there or is it because the div is wrapping it" is a thought I am sure would go through my mind. So the overflow is a good alternative.

In the case of item 1 and 3, 3 ultimately prevails as you won't get 100% of posters to format their code so that it doesn't blow out the right side of the screen.

Good stuff Imar.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
  #8 (permalink)  
Old April 4th, 2007, 09:24 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Parsons, yes, it is a sound point of VB.NET raised by Imar, and let me clarify, I was also talking about overflow with div, not at any point breaking the code somehow, coz that would lead to problem mentioned by Imar.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
  #9 (permalink)  
Old April 4th, 2007, 09:26 AM
jminatel's Avatar
Wrox Staff
Points: 18,895, Level: 59
Points: 18,895, Level: 59 Points: 18,895, Level: 59 Points: 18,895, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,944
Thanks: 72
Thanked 139 Times in 101 Posts
Default

Well, the good news here as most of you long time participants have probably noticed is, nothing changes overnight. ;) I'll still toss the issue into my wishlist of "how can we fix this" ideas and take into account all of the feedback here and issues Imar raised (I never actually change anything without consulting Imar<g>)...

Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Jim's Book of the week: No book this week - Donate to the Red Cross!
  #10 (permalink)  
Old April 4th, 2007, 09:45 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

All hail Imar, lord and master of everything web! ;]

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 small questions aspcoder BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 9th, 2008 03:09 PM
A small puzzle marianeeli C++ Programming 9 September 5th, 2006 12:02 AM
Need Small Help From a Noob!!! maximus101 VB.NET 2002/2003 Basics 9 April 7th, 2006 10:30 PM
small problem harjinder_x XSLT 0 March 23rd, 2004 05:43 AM



All times are GMT -4. The time now is 12:54 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.