?

Log in

No account? Create an account
It's weird, but I find that often the hardest part of programming is… - The Mad Schemes of Dr. Tectonic [entries|archive|friends|userinfo]
Beemer

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[May. 8th, 2006|12:11 pm]
Beemer
It's weird, but I find that often the hardest part of programming is not figuring out what to do, but what to call it, such that everything has a meaningful and unambiguous name...
LinkReply

Comments:
[User Picture]From: jofish22
2006-05-08 11:22 am (UTC)
yeah, and then half the time when you've finished writing the function or using the variable you realize that it does not, in fact, do the thing or represent the thing that you said it did. suddenly one-letter variable names don't seem so bad... (joke. that was a joke. don't beat me.)
(Reply) (Thread)
[User Picture]From: dr_tectonic
2006-05-08 11:37 am (UTC)
Hey, one-letter variable names have their place.

I use them all the time for loop indices and temporary variables of very short scope, where it would be a waste of everyone's time to use a long name...
(Reply) (Parent) (Thread)
[User Picture]From: eto_theipi
2006-05-08 08:15 pm (UTC)

Yeah.

I've spent huge amounts of time on my current project trying to decide whether things should be called "Services" or "Servers", and whether the message we send when someone enters a room should be "Enters" or "Entered".

I was talking to someone some months ago who characterized all of the "interesting" problems into two groups: overconstrained and underconstrained. I'm much better at the overconstrained ones. It's the arbitrary decisions that get me. Someone needs to give me an Executive Decision Maker for the holidays.
(Reply) (Thread)
[User Picture]From: merle_
2006-06-20 02:24 am (UTC)
Word.

I spent two days once wandering around the office, asking technical writers, business analysts, receptionists, DBAs, and basically everyone I could grab a moment of time from. Because I had one object/concept/class/table that I could not name. And I simply could not continue until I knew what it was, because otherwise the semantics would get messy and wrong.

I am pretty sure most of the people I consulted thought I was a freak. But they did help me, and I'm fine with that.
(Reply) (Thread)