How wide is your code?
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
Not this again. :sigh: Survey back in January[^]
modified on Sunday, May 17, 2009 6:21 PM
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
Hi, I use different computers, different monitor widths, and I hate scrolling horizontally all the time, so I prefer not to exceed some 90 characters on a line; I use 4-space tabs and told Visual to show guide lines by adding a registry key: HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\9.0\Text Editor (adjust as required) Add a string called “Guides”, set its value to RGB(255,0,0) 80,96 BTW: my printing code will take care of lines that exceed the page width. FWIW: I don't want wide code snippets when composing a message here! :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
modified on Sunday, May 17, 2009 6:32 PM
-
Not this again. :sigh: Survey back in January[^]
modified on Sunday, May 17, 2009 6:21 PM
hey, I searched, I didn't see it. Am I starting a dead-horse discussion? Apologies if I am.
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
charlieg wrote:
I'm one of those old geezers still writing code, dangerously close to the 3 decade mark.
Youngster! I wrote my first program in 1967 (remember punch cards? ), so I'm working on my 5th decade. I usually try to keep my code on a normal screen or page, so I keep it around 80 characters wide, but sometimes I violate that guideline.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
Crap, I have identifiers longer than 80 characters in some of my code.
Software Zen:
delete this;
Fold With Us![^] -
hey, I searched, I didn't see it. Am I starting a dead-horse discussion? Apologies if I am.
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
It's not as frequent as typeface "discussions". Survey from last June[^] in case you're interested.
-
Hi, I use different computers, different monitor widths, and I hate scrolling horizontally all the time, so I prefer not to exceed some 90 characters on a line; I use 4-space tabs and told Visual to show guide lines by adding a registry key: HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\9.0\Text Editor (adjust as required) Add a string called “Guides”, set its value to RGB(255,0,0) 80,96 BTW: my printing code will take care of lines that exceed the page width. FWIW: I don't want wide code snippets when composing a message here! :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
modified on Sunday, May 17, 2009 6:32 PM
Luc Pattyn wrote:
HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\9.0\Text Editor (adjust as required) Add a string called “Guides”, set its value to RGB(255,0,0) 80,96
I like it. :-D
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes -
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
I actually try and keep my lines to around 130 lines. I find that any longer than that, it becomes very difficult to select text with the mouse. By default, virtual space isn't selectable in visual studio, so when trying to mark a solitary long line that extends off the right of the screen, it becomes quite challenging as the scroll bar keeps snapping to the left when you go up a few too many pixels.
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
Not something I usually have to think about. My client says, No wider than 90 characters, or something like that, and that's what I do.
Best wishes, Hans
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
I line break at about 100 chars because I almost always view 2 source pages side by side. Like you, I run at 1920x1200 at work and home, desktop (24") and laptop (17"). /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
charlieg wrote:
I'm one of those old geezers still writing code, dangerously close to the 3 decade mark.
Youngster! I wrote my first program in 1967 (remember punch cards? ), so I'm working on my 5th decade. I usually try to keep my code on a normal screen or page, so I keep it around 80 characters wide, but sometimes I violate that guideline.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
I line break at about 100 chars because I almost always view 2 source pages side by side. Like you, I run at 1920x1200 at work and home, desktop (24") and laptop (17"). /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
the reason I have 1920x1200 is to be able to view code side by side, so your point is a good one.
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
-
Hi, I use different computers, different monitor widths, and I hate scrolling horizontally all the time, so I prefer not to exceed some 90 characters on a line; I use 4-space tabs and told Visual to show guide lines by adding a registry key: HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\9.0\Text Editor (adjust as required) Add a string called “Guides”, set its value to RGB(255,0,0) 80,96 BTW: my printing code will take care of lines that exceed the page width. FWIW: I don't want wide code snippets when composing a message here! :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
modified on Sunday, May 17, 2009 6:32 PM
Another useful registry hack is: Under the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0 key, you can create a DWORD UseMRUDocOrdering = 1. What this does is, when you select a tab in the editor, that tab moves to be the leftmost tab. This obviously keeps the most recently used files/designers visible in the editor. Only the least used fall off the end. Works in VS2008, VS2005 and their express versions. I like it, anyway.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
You young'uns ar spoiled by modern technology. I'm one of those old geezers still writing code, dangerously close to the 3 decade mark. I think John Simmons is older than me. He's angrier, i'm more dangerous ;) So, I'm contemplating a couple of s/w issues and one of those is - when to hit the return key? As I type this, I have to my left a 1920x1200 monitor connected to my 1920x1200 laptop. It seems to me a little silly to worry about any developer who might not have the same h/w rsources. To arbitrarily linebreak at 80, 132, or whatever seems a bit silly. Printing? Muahahahaaha.. come on. Thoughts?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
91 characters
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
It's not as frequent as typeface "discussions". Survey from last June[^] in case you're interested.
or, "What source control system do you use?" ;P Next comes - what font do you type in? :))
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
-
91 characters
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
charlieg wrote:
I'm one of those old geezers still writing code, dangerously close to the 3 decade mark.
Youngster! I wrote my first program in 1967 (remember punch cards? ), so I'm working on my 5th decade. I usually try to keep my code on a normal screen or page, so I keep it around 80 characters wide, but sometimes I violate that guideline.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
Punched Cards? You were lucky! I wrote my first by entering the binary to represent each instruction, and pressing the 'big red button' to enter it. I linged for the luxury of punched cards :)
___________________________________________ .\\axxx (That's an 'M')
-
Punched Cards? You were lucky! I wrote my first by entering the binary to represent each instruction, and pressing the 'big red button' to enter it. I linged for the luxury of punched cards :)
___________________________________________ .\\axxx (That's an 'M')
Done that, too. That was how we got the boot loader going so it could read the punch cards.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
haha - rebel. Seriously, why 91?
Charlie Gilley Will program for food... Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin This crap sandwich is all yours.... 2009 "Stimulus Bill"
42 isn't really comfortable?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.