Everything2
Near Matches
Ignore Exact
Full Text
Everything2

The problem with arbitrary decisions when designing computer programs, especially when deciding abou

created by Footprints

(idea) by Footprints (12.4 hr) (print)   ?   1 C! I like it! Sat Nov 11 2000 at 17:29:27

t things such as field length.

So nate was sitting there, programing this happy place. And he had to put in a new text field, for entering a node name for creating a node. (I don't know perl, so I'm writing the equivalent in Java). And to create a text field you should specify a field length. So he did: 100. What the heck. Hmm... and now I'm stuck with a node title too long for the field.

This problem is actually quite a serious one, and is taken very lightheadedly. This is because when you write a computer program, your primary intent is to make sure it WORKS. So you just arbitrarily decide on these kind of things (also things such as port numbers, and window sizes, and a myriad other things). And then, when it works, there are the arbitrarily decided variables, still there. And they are forgotten, because, hey, it works.

And then the user interface sucks. And then you get wasted memory. And then you get null pointer exceptions, because you tested it on simple, short examples.

Although the node title is slightly humorous (blame nate), this is quite a serious problem, which many programmers ignore. So (programming hint): next time you arbitrarily chose something, write it down. When the program is done and functional, check the list, and rechoose the values, not arbitrarily.

P.S. I'm not dissing the programmers of E2 for this. (The GUI here is fine, I haven't seen too many bugs...) All programmers make arbitrary choices. This was theirs. And that's fine.


(idea) by naked_ape (3.8 mon) (print)   ?   I like it! Sat Nov 11 2000 at 17:41:45

There's a solution to the limit of the field length of the Create node form, quite dirty, but it works. And I know the majority of you know it already, but let me make my point:

Just go to one of your writeups and make a link with the title of the node you want to create.

Submit the writeup and follow the link.

When confronted with the Findings: or Nothing Found page, just use the Of course, I could let you create a new "I don't understand why is so hard to create nodes with titles that exceed the 100 character limit. Don't you know what Bill Gates said about 640 Kb being all the RAM you'll ever need?" node... link.

Don't forget to delete the link you used to create your gigantic node title.

I suppose this pain is the price you have to pay for creating nodes with titles that are too long.

100 characters should be enough for everyone


(idea) by Ground Control (3.3 y) (print)   ?   I like it! Sat Nov 11 2000 at 18:12:55

Actually, while it may seem like a mere annoyance, choosing an arbitrary limit for a text buffer in a language without a proper string type (*coughcoughCcough*) can lead to the dreaded buffer overflow exploit if you code carelessly. Many security holes have arisen through this practice.


printable version
chaos

Zero-One-Infinity Rule Don't kill your invisible husband to see what he looks like or you'll sob your heart out. But don't worry about the millions of invisible men coming to attack your village because they won't kill you if you don't know how to fight them. dot-com crash The evolution of Microsoft Windows from the utterly useless UI tweaks perspective
Standing on a mountaintop in northern Siberia under the rapidly descending bulk of asteroid McAlmont, with a calculating expression and a baseball bat C Entscheidungsproblem buffer overflow
1-800-BAR-NONE Choose short titles Ireland's official 2002 FIFA World Cup squad All I ever needed to know, I learned playing Dungeons and Dragons
Mindstorms I don't understand Bill Gates All I ever needed to know about unit conversion, I learned from drugs IP Port Numbers Assignments
Treeful Don't talk about your mamma like that Network manager big dick
computer
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Drink up!
Happy Pizza
tachyon
Zora Neale Hurston
I wrote you a letter on the bus back from the city, but that's a different kind of weary
Spirited Away
How to improve your chances of having sex
You are not special. You will die here, too.
Naked at 30 below, and loving it
I DON'T quit
The Great Prajna Paramita Heart Sutra
Night of the Long Knives
Milgram Experiment
banana trick
New Writeups
shaogo
Robert Mondavi(person)
Ouzo
Goodwill Hunting, Thrift Store(ies)(log)
Pandeism Fish
How conatus compels divine ketosis through a radical kenosis(essay)
cryforhelp
Major dictionaries of the world(review)
Glowing Fish
The Uncanny X-Men and the New Teen Titans(thing)
WolfKeeper
Launch loop(idea)
TendoKing
Katana(person)
Wuukiee
Highly ornamental cultivars of brambles still have as many thorns as their wild counterparts(idea)
TheDeadGuy
Editor Log: May 2008(log)
everyday j.Lo
pray do not molest them(thing)
ammie
Bands Who Take Their Names from Eighteenth-century English Poetry and Prose(idea)
shaogo
Under My Thumb(review)
ammie
Rock On(person)
The Custodian
The Dresden Files(thing)
Ouzo
PETA becomes you, a proposed future(fiction)
Everything 2 is brought to you by the letter C and The Everything Development Company