News for hackers. Stuff that matters.
Re:The One Character Block Comment by skip on Tuesday July 21, 2009 @11:19AM (#716366)
It's a nice trick, but I will probably stick to Ctrl-K-C (block comment) and Ctrl-K-U (block uncomment) in Visual Studio, just out of habit. I hate leaving big block comments in the middle of a module anyways: hurts readability.
Re:The One Character Block Comment by jasonkester on Tuesday July 21, 2009 @11:44AM (#716407)
It's probably telling that his code sample is PHP. Though I seem to remember Eclipse having support for CTRL+/ style block commenting/uncommenting. Most other good IDEs (and emacs, as noted below) do it too.

But yeah, I sometimes take for granted how nice VS.NET is at these little detail things (though I use resharper-style CTRL+/ bindings for this particular feature). Thanks to this author and his pain for reminding me how good we have it.

Re:The One Character Block Comment by mixmax on Tuesday July 21, 2009 @12:09PM (#716450)
It's probably telling that his code sample is PHP

Excuse me, but last time I checked PHP was one of the most widely deployed languages in the world, which a lot of people smarter than you and I spend their working time hacking. Can we please stop the PHP bashing.

Re:The One Character Block Comment by bkudria on Tuesday July 21, 2009 @01:04PM (#716524)
(Disclaimer: I work in PHP)

PHP is popular. But the language sucks. Big-time. Popularity does not mean something is automatically good, in a technical sense.

Re:The One Character Block Comment by mixmax on Tuesday July 21, 2009 @01:16PM (#716538)
Absolutely agree, and judging by the score of my parent comment maybe I didn't make myself clear.

I don't mean to say that PHP is a perfect language by any means, far from it. My point was more that just because some code example is written in PHP you can't automatically infer that the code is inferior. I personally think that's terribly arrogant, but that may just be me.

Re:The One Character Block Comment by moe on Tuesday July 21, 2009 @05:17PM (#716877)
My point was more that just because some code example is written in PHP you can't automatically infer that the code is inferior.

Perhaps I'm terribly arrogant but I do make that inference. Simply because the number of good coders who would pick PHP when given a choice is very, very, very, very, very, very, very, very, very, very, very small. And shrinking.

Re:The One Character Block Comment by mixmax on Tuesday July 21, 2009 @05:56PM (#716930)
Most coders don't have the choice.

I'm sure that if it was up to the programmers many big sites would be hacked out in Haskell, but as it is an awful lot of them happen to be done in PHP. And Coders have jobs and bosses.

Re:The One Character Block Comment by moe on Tuesday July 21, 2009 @06:03PM (#716939)
On their personal blog?
Re:The One Character Block Comment by jasonkester on Wednesday July 22, 2009 @10:54AM (#717956)
I didn't intend any PHP bashing. I was just pointing out that PHP is quite a way behind in the IDE department. Apart from some half-hearted Eclipse plugins like PDT, nobody has stepped up to the plate. Certainly not in the way that Netbrains did for Java or MS did for .NET.

I've done my share of PHP development over the years, and have clients to this day that need their PHP sites maintained. And every time I need to touch those sites, I wish I had a tool powerful as, say, ColdFusion Studio 4.5, which came out in 2001.

If you can point out such a development environment for PHP, I'd be quite grateful.

Re:The One Character Block Comment by philwelch on Tuesday July 21, 2009 @01:17PM (#716540)
So was (is?) COBOL.
Re:The One Character Block Comment by latortuga on Tuesday July 21, 2009 @12:09PM (#716447)
Not to mention TextMate, e (the windows textmate clone) and vi...I feel like this is a pretty basic text editor feature, for programmers at least.
Re:The One Character Block Comment by rwolf on Tuesday July 21, 2009 @06:15PM (#716950)
For the gedit kids feeling left out in the audience, check out the plugin "code comment". Who loves you, baby?