Rob Thompson's Blog: Switch vs. If
503859
Rob Thompson has posted about some simple benchmarking he did comparing the speed of a series of "if" statements versus one "switch" with multiple cases.   I got curious about which is actually more efficient at matching a random integer with a set of conditionals. So, I setup a script to create a set of large scripts to test the speed of these different constructs. Using the 'time' command, I measured the speed at which the condition could match a random number.   His results found that the switch statement is generally more than 2 times as fast at matching a simple integer. His tests, however, didn't go through much more than this simple test. It'd be interesting to see what it would do with something more complex (like longer strings or handling the result of an evaluation inside the definition of the switch().
533971
Our editor compares the prices of similarly configured Macs and PCs. What he finds out may surprise you.
482929
Editor's note: This story was reprinted from Computerworld. For more of Computerworld's coverage of the Mac, visit its Mac Knowledge Center.
256980
A little while back Matthew Turland posted about something that some developers moving over to PHP from more strict languages have an issue with - variable typing - and how its evolved in languages over time.   Without a little background in programming languages or computer science in general, it's entirely possible that typing systems are not something that have crossed your mind. I thought I'd take a blog entry to share some of my thoughts on how itÃ¢ÂÂs affecting the creation and evolution of languages.   He walks through history a bit, mentioning C, Java, Python and PHP and how they differ in their default type handling. He especially focuses on the "blurred line" between strong and weak typing and how some if offers special features to the language that uses the method.
632091
More competition courtesy of the proposed Microsoft-Yahoo! combo?
199964
Fluery still roots for JBoss...Edward Tufte mostly likes iPhone interface...mysteries of Linux's /proc files...multicore compression...Actually *using* mammoth telephotos
285133
Windows? Linux? Mac OS? One day it won't matter.
184446
Tycho:  I don't know whose fault it is exactly, mine or theirs, but I won't be installing Vista anytime soon.  I would like some crazy shit to happen when I minimize something don't get me wrong.  I want my windows to go Waja-wajow(!) is possible.  But if there's a great reason to "trade horses midstream" or whatever the going metaphor is I haven't discovered it.
614011
Decision: Blogs vs. New York Times. For the last couple of weeks I've been emailing with people from the LongNow Foundation and Martin Nisenholtz of the NY Times, to determine who won the bet.  Ultimately we asked the foundation to consider all the argument and make the decision. They published their decision today. It's well worth reading because it answers some of the questions raised by the bet, for example, what is a blog, and how does Wikipedia relate to blogging. I don't agree with everything in the decision, but I do like the result -- we won.  The beneficiary of the bet? The World Wide Web Consortium. I chose them as the charity to receive the proceeds if I won the bet because web standards are what make it all work and the W3C is central to standards on the web.
337538
How far is too far when it comes to the freedom of software? Plus: Palm slipping, Windows sliding.
502281
Options, options, options -- when will the madness end?
115687
Also: Color Sudoku game adds twist to computing. See what people are saying on News.com Extra.
698230
Remember a couple of weeks ago when Steve Jobs took the stage and announced a $200 cheaper iPhone. That was pretty bad. And an iPhone that's just an iPod. Who needs that! The new Nano sure is cute, but cute insn't enough. I have a 1.5 year old 60GB video iPod that still works (sorry Steve) and I never use the video, so the $300 I have burning a hole in my pocket for my monthly Apple impulse buy (above and beyond the new Mini I bought last week) is going to (drum roll please) Nokia!  Yup, my next iPod/iPhone-alike thingy isn't even from Apple and it runs Linux, and comes highly recommended by geeks everywhere. I just put in the order on Amazon, I'll let you know how cool it is in a few days.  PS: This is my way of thanking Ben Bernanke for the huge windfall I got in the stock market yesterday and today. I think the 1/2 percent drop in interest rates is supposed to make us go out and buy stuff to stimulate the economy. Just doing my part Uncle Ben!
45632
Matthew Turland has posted some of his thoughts about a topic that's being tossed around in the programming world these days - that PHP is "on its way out".   I have to vehemently disagree with this, and not just because PHP is my language of preference.   He gives several reasons to back up the claim including the fact that large players use the language in high-profile sites as well as the recent upturn of popularity the language has seen (as people come back from the over-hyped other languages).   He mentions collaborations between PHP companies/divisions as well as components made to more efficiently run PHP applications on other web server types.
163563
The always provocative Brad Templeton, who hung out with a large cadre of geeks at the Internet Identity Workshop (IIW, or IIW2007) last week, has some cautions about new identity systems, even if they are all &quot;user-centric&quot;. These cautions lie in a paradox: &quot;The easier it is to give somebody ID information, the more often it will be done. And the easier it is to give ID information, the more palatable it is to ask for, or demand it.&quot; The italics are his.  Here he hits on the problem of market power asymmetries (vendors strong, customers weak) that have been with us for the whole Industrial Age, and are with us still. I think we have a way to overcome those, and that Brad's Paradox may provide exactly the conceptual hurdle we need to see before we can make progress. \
275085
One of the minor ironies of the Linux world is the slight disconnect between the mantra of &quot;choice&quot; the most ardent advocates use to make the case for a multitude of graphical interfaces and the state of the North American enterprise Linux market, where a
553129
A Win/Mac developer recently asked me what I thought about his plan to create a binary of his application and sell it to interested Linux sound and music people. He asked with some trepidation, having already received a rather critical chorus of objection from some overly enthusiastic Linux users. This man's work is excellent and his software already runs nicely under Wine.read more