A pittance of time…
My wife received a link at her place of work (RCMP) earlier this week. Its a small but poignant reminder of what today, November 11th, is about.
Black holes, LHC, Star Wars, quantum uncertainty… if it is of general geek interest, but doesn’t fit into one of the other categories, it lands here.
My wife received a link at her place of work (RCMP) earlier this week. Its a small but poignant reminder of what today, November 11th, is about.
Apparently, Microsoft is now offering the opportunity for companies to license from them most of the underlying protocols behind the Internet. Little things like TCP/IP and DNS, for example. (more…)
The Apollo moon landings were all fake. If you believe that, I imagine you also believe that Santa lives at the North Pole, and all Politicians are always scrupulously honest.
Not to be dissuaded by facts or logic, there are still a surprising number of people, most of whom have not had lobotomies and aren’t permanent residents of mental institutions, who believe that the moon landings are fake. But, I suppose they are welcome to have their stupid, pathetically innane, and completely wrong theories. (more…)
The last couple of years I’ve been blessed to have an opportunity to rediscover my “roots” at work. More specifically, I’ve been able to return to programming after spending many years in infrastructure support and design. (more…)
I am a programmer. I wouldn't consider myself to be a "master" programmer, but I think I write pretty decent stuff when I get going. I also occasionally cut corners and write quick and dirty "hacks" to solve a particular problem or to test something out. I sometimes feel guilty about this, but then I read findings from interviews with master programmers, and I discover that they often write ugly but useful hacks as well...
I used to be a procedural programmer, with languages like C and Pascal. Now I'm migrating to object oriented languages. And I stumbled across a little article about the the bad side of code folding. Code folding is a really simple concept with a mysterious sounding name. Basically, it allows you to group a section of code together in an editor and "collapse" it, hiding all the nasty bits. I discovered code folding in the Visual Studio .Net integrated development environment... ...where it is used without user intervention every time you write an application with a user interface. Microsoft automatically uses code folding to hide a bunch of control objects so they don't clutter things up. If you read that article in the link above, you would have heard the opinion of Matt Stephens, a fellow about which I know pretty much nothing. But his article is well thought out, and made me stop and think about what I use code folding for. The answer is I use it almost not at all. But I do find it very handy when I do use it. Not because I write huge, "one method to rule them all" code segments. Personally I kind of like a method to never be much longer than one screen full...and no, I don't have a 72" portrait monitor with 1024x48000 resolution. Instead, I use code folding or "collapsing" as a way to focus my attention. I might have 10 methods in an object. Nine of them are debugged and working happily, and the tenth is causing me some grief. I create a code section to conceal the "functioning" code and hide it so that I don't get distracted by the other bits. Does this make me a bad programmer? I don't think so. I know I'm still pretty early in the migration from procedural thinking to object oriented thinking: I still struggle at times to break old habits, and I need some peer code reviews to continue my improvement. But I don't see code folding as a sin. Like a lot of things, including object oriented development itself, it has its good and bad points. In fact, one could argue that code folding is a true and proper outgrowth of object oriented programming. One of the key values to OO, or so I've always thought, is the promotion of idea of objects being "black boxes". That is, I really shouldn't be spending my effort as a programmer figuring out how an existing object works: I should know what properties it has, and what methods I can invoke or inherit and what they do, and that it works. Beyond that, I should just use the dang thing. Extending this to its logical extreme, within my own objects I shouldn't be continuously re-figuring out methods that I've already written. If they work, and I know what purpose they have and what properties or parameters they manipulate/use, then I shouldn't be messing with them. I should be working on one code element at a time, refining each in term in isolation from the next. Code folding can, used properly, encourage that kind of thinking. I suppose I could be missing something here in my thinking. And I'm open to contradictory opinion. But I'll continue to use code folding from time to time, and I don't plan on feeling guilty about it.
On June 21st of this year, Scaled Composites plans to launch the first privately funded passenger carrying craft to enter “space”. The ship, named SpaceShipOne, will climb to an altitude of 100 km (62 miles), the official boundary where “space” begins. For the first time, someone outside the circles of large, government funded projects will be able to call themselves an astronaut. (more…)
I just returned from a business trip to the U.S.. It was a tiring affair, but so far as business travel goes, I guess it was about as good as can be expected.
That said, this was my first major trip since about 2000. I had read about but hadn’t experienced first-hand the post WTC security precautions when crossing the border, and I have to say that they are … odd. (more…)
Popular Science has an article regarding various weapons platforms being considered for the future. Most of them are old hat: rail guns, laser cannons, that kind of thing. But one sort of got my attention: a million round per minute machine cannon. (more…)
This site was down most of today. I apologize for that. I spent most of today, probably 6 or more hours, fixing up this server after one of my web sites here was “hacked”.
The hacking itself was pretty minor- someone just altered the contents of a couple of pages to include their names and indicate their amazing credentials. The way they did it was also fairly simple- they took advantage of a known flaw in some software I was running. (more…)
Its nearly 2:00 am, and I’m sitting here in front of the computer. I have a cup of Neo Citran in one hand, and a tissue in the other. Occasionally I put them down so I can type. I have a cold, and its keeping me awake. (more…)