How wide is your code?
-
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.
-
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"
Printing is no issue to me; I've got a 24" HP plotter, so any page up to 150' wide is no trouble. ;P My screen is somewhat more limited, however.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
-
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
also *salutes* As a young'un, I have always wanted to try punch cards! There's something compelling about an analogue system I can feel with my hands, having now gone through uni without even leaning machine code or anything similarly fundamental, and binary was always just theory and maths - never actually used in practice etc. I know it's simply a nostalgia/novelty thing (and worth being on the receiving end of a bit of a chuckle from 'those who know') but I have read so many books on computing over the years and it would be great to have a taste of the frustration and history! Is there anywhere in Australia, (or the world?) where you can use a punch-card system? Any working computer museums out there to let us know how good we've got it now? Cheers, Estherino
-
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"
Word wrap. Returns are for wimps.
Todd Smith
-
Crap, I have identifiers longer than 80 characters in some of my code.
Software Zen:
delete this;
Fold With Us![^]Me too. Though, they are in xsd.exe auto-generated code files, based on xml schema files. A pain when I need to use those in my client 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"
I try not to use ridiculously long variable names. Function calls (or SQL statements) that take 20 parameters I normally break after each one. It's not that I want to keep my lines at 80 characters, its because I want the next guy to be able to read it without cursing under their breath. It looks neater anyway.
-
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"
-
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
I'm an 80 column "puncher" as well. I pretty sure the world would come to an end if I typed past column 80. For those that did not have the pleasure of using punch cards, you have to also understad that the keypunch machines rarely had a working ribbon in them so to insert new cards (or, heavan forbid you dropped the deck) you had to identify them by reading the semi-braille dents across the top or otherwise make sense of the pattern of punched out holes. Now for the bit switchers, here's[^] a nice video going though an Altair 8800 bootstrap to bring back a memory or two. Now that was an IDE. Deposit,
-
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'm an 80 column "puncher" as well. I pretty sure the world would come to an end if I typed past column 80. For those that did not have the pleasure of using punch cards, you have to also understad that the keypunch machines rarely had a working ribbon in them so to insert new cards (or, heavan forbid you dropped the deck) you had to identify them by reading the semi-braille dents across the top or otherwise make sense of the pattern of punched out holes. Now for the bit switchers, here's[^] a nice video going though an Altair 8800 bootstrap to bring back a memory or two. Now that was an IDE. Deposit,
But you try and tell the youth of to day that! They won't believe you! Punch cards (Why did the card printer never work?) Paper Tape (OK, who let it run all over the floor?) Front panel binary key Bootstrap (Age 50 last Feb)
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
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"
Doesn't bother me comrade, as long as there's a dog's eye under the dead horse :laugh: i think we can blame Hollerith for 80 and Friden for 132, didn't know them personally but used their kit from time to time. Being weaned on paper tape I guess my code tends towards a being a stream of consciousness, spat out across the room into large waste paper bins. Only those familiar with hi-speed paper tape punches will understand what I mean, and I don't mean that wimpish fanfold stuff from DEC - I mean the stuff from Ferranti & Univac that flew for 15 feet or more. BTW : I'm creeping up on my half century of churning out this crap they call code, roll on 2015 :zzz:
Multi famam, conscientiam pauci verentur.(Pliny)
-
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.
Because he's not dead, he's living in my head... See if you get that one =P