Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Refactoring done right happens as you go (Score 1) 247

So maybe I am just as bad as he is. But I'll bet I'm a better software engineer.

That doesn't make sense to me. Why would a persons beliefs about religion (or politics, race, potato chip flavors) have any influence on their ability to write computer programs?

Do you think Buddhists write better code than Hindus? Are Raeliens better developers than Shintoists? What could possibly compel you to put forward such a silly belief?

Comment Re:This should not be on the front page (Score 2) 247

I'd rather have a readable and maintainable 4500-line function than an unreadable and unmaintainable 45-line function.

I remember, years ago, standard advice to students to break up code in to functions when some process got over some number of lines. Know what we got? A lot of really odd functions of similar length, as they broke things apart at seemingly random boundaries! I'm still deeply suspicious when I hear people talk about a proper length for functions.

It's time to let that one go, and teach students that while shorter is often better, length doesn't really matter that much. They ought to factor out functions when they see them and when it makes the program more readable. I'll suggest this as a new rule-of-thumb: functions should do just one thing and be named accordingly.

(Still, 4500 lines? Damn, that's big.)

Comment Re:If you hate Change so much...... (Score 1) 516

but I go back far enough to remember the horrible spaghetti code that people used to write

So do I, though I still think Dijkstra was wrong about that. I used to get skewered for expressing that opinion, however. Not that it matters much, I've found most developers are a bit over zealous when it comes to defending their treasured folk-knowledge.

In before the OOP craze, like you were, I thought it was just going to be a passing fad -- like countless fads before and after. I have no explanation for its sticking power, save the early popularity of Java and Microsoft's subsequent clone, C#. I figure it would have been dead before the new century had Sun and Microsoft hadn't tried to cash-in on it. It's a shame MS's ploy to fragment Java failed. It's one evil plan that might have done us some good!

Fortunately for us, It is weakening. Sacred cows are starting to look like the mistakes they always were. The hipster developers are even promoting composition over inheritance. (And not a moment too soon. I've seen a lot of talk about multiple inheritance lately. I thought we'd already learned our lesson about that!) A lot of young developers are even learning what modularity actually entails, and how OOP is inherently anti-modular. (It used to be a popular belief that OOP gave you modularity for free! It looks foolish in hindsight, I know, but that was the marketing buzz.) It gives me a bit of hope for the future.

So I'll keep my fun Dijkstra quote, to lend support to the next generation who will cast-off our mistakes. It looks like they're trending toward an imperative+functional era. It'll be interesting to see what comes out of that.

Comment Re:If you hate Change so much...... (Score 1) 516

No, you didn't. You just suck at reading.

Nowhere do I imply that the icons are appealing -- only that they're rendered with skill that exceeds that of the average six-year-old. If a six-year-old had produced those icons, I'd be very impressed. As they're presumably the work of a professional designer, they're absolutely awful.

Comment Re:"Born atheist" quite a leap (Score 1) 531

Well, it's very basic logic. It just takes a long time to explain, in very painful detail, to someone without a background in formal logic. To see my perspective, try to explain something like 4=2+2 in a post under the assumption that anything you write could be challenged, regardless of the relevance, by someone with no understanding of basic arithmetic. Oh, and without being able to type common operators. It'll be a pain the ass, take forever, and is very unlikely to produce positive results.

Slashdot Top Deals

"I say we take off; nuke the site from orbit. It's the only way to be sure." - Corporal Hicks, in "Aliens"

Working...