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

 



Forgot your password?
typodupeerror
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

Comment: Re: Do most of the work? (Score 1) 443 443

What is with the modern obsession with renaming things? Does your boss measure your performance by the number of lines needlessly changed in the code or something? Before refactoring support was the must have feature of IDEs, we had stable APIs to program to. Now some kid that grew up with his attention span crippled by the internet and smartphones wants to change the names of everything every five minutes.

If you want to keep a changing source code base as easily understandable as possible over time without confusing future programmers who have to work with it, you will need to refactor and rename as you go.

As requirements and thus code changes, the names of your functions, classes and files will become less correct, and lead future maintainers on a wild goose chase.

Keeping names appropriate by changing them is protection against future confusion and wasting of time.

It's actually a long-term solution to a long-standing problem and has little to do with crippled attention spans. It requires concentration to keep the names of things accurately matching their content. This investment of concentration will pay dividends on non-throwaway code.

Comment: Re:Technically C++ (Score 1) 230 230

Heh, leave it to the tech community to start nitpicking which language was actually used rather than the fact that we're seeing the very rare sight of a computer programmer in political office.

I took a look at the code - yeah, it's really just C code, but that's fine for a tiny project like this. Nice code, very clean and readable, but not very well commented.

Well he might be following Uncle Bob's Clean Code concepts and not filling his code with comments that could become crufty and misleading over time.

I take that back after reading all the one letter variable names :)

Comment: Re:Technically C++ (Score 1) 230 230

Heh, leave it to the tech community to start nitpicking which language was actually used rather than the fact that we're seeing the very rare sight of a computer programmer in political office.

I took a look at the code - yeah, it's really just C code, but that's fine for a tiny project like this. Nice code, very clean and readable, but not very well commented.

Well he might be following Uncle Bob's Clean Code concepts and not filling his code with comments that could become crufty and misleading over time.

Comment: H.G. Wells called it (The Star) (Score 2) 117 117

Although his might have come a little closer. As an aside, you won't see gender-sensitive writing like this anymore, except as comedy:

And voice after voice repeated, "It is nearer," and the clicking telegraph took that up, and it trembled along telephone wires, and in a thousand cities grimy compositors fingered the type. "It is nearer." Men writing in offices, struck with a strange realisation, flung down their pens, men talking in a thousand places suddenly came upon a grotesque possibility in those words, "It is nearer." It hurried along wakening streets, it was shouted down the frost-stilled ways of quiet villages; men who had read these things from the throbbing tape stood in yellow-lit doorways shouting the news to the passersby. "It is nearer." Pretty women, flushed and glittering, heard the news told jestingly between the dances, and feigned an intelligent interest they did not feel. "Nearer! Indeed. How curious! How very, very clever people must be to find out things like that!"

http://www.gutenberg.org/ebook...

"Oh my! An `inflammatory attitude' in alt.flame? Never heard of such a thing..." -- Allen Gwinn, allen@sulaco.Sigma.COM

Working...