No.Bad comments should be avoided. Those are the comments that add nothing to the code.
1) the code shall be simple and the name of variables and methods shall be self explanatory in most cases.
Reasonably naming variables and methods is a given. Most of the time the comments are (or should be) used to explain why a certain function was created and coded that way, rather than putting in plain english what we can tell just by reading the code. The requirements behind your coding can be (and often are) as relevant as the code itself.
2) the more you add comment lines, the less lines of code you can see on your screen.
True, but unless you're coding with chisel and stones, this is really irrelevant. A program is not a novel that requires two pages of comments to explain a few lines of code. Whoever does this is missing the whole point of code commenting.
3) comments introduce a redundancy.
They do not, if they're done properly. As aforementioned, comments are needed to explain reasons that one cannot tell from the code.
Beautifully simple!
If I may add: try to keep all this functionality inside your Data Access Layer. That will really make things simpler in the presentation layer (your web pages).
What the fuck is going on with the Mods nowadays??? The guy has a valid point, not applicable to most of us, but a valid one anyway. And he's a flamebait now?
Oh, how I long for this kind of abuse when [meta]moderating...
Agreed. It seems that MS forgets that end users are, albeit slowly, getting more educated about computing in general. For a lot of people, though, computer is Windoze, the difference is not clear enough... For those, I like to put it this way:
You just bought your family a nice new car. As usual, you fill up the tank weekly at the gas station down the corner. But their gas isn't that good, and causes your engine to malfunction, for no apparent reason. But you're used to it, since the station is there for over 25 years, you grew up with it. It was actually the only gas station around until a couple of years ago.. Besides that, they just issued a notice that says that you can no longer install that nice CD player you want on your car, because the CD player is not supported by them, and your engine will stall after 10 miles, if you insist in installing the player. Now, why the hell would you put up with that gas station, knowing that there are many, many other gas stations around, with better, cheaper gas?...
You wouldn't. It's your car, and you do have a choice of what gas you want to fill up the tank with!
copy con teleport.bat @echo off cls echo. echo Now teleporting... move/Y a b > NULL REM sleep 30s (OMG! It's taking long this time! IT'S WOKRING!!!): PING -n 31 127.0.0.1>nul echo. echo Done! ^Z
LOL HAHAHAHAHAHAHA! That is Funny... Thanks for making me laugh so hard, I was almost sleeping at the desk, and now I want to go out and hug pedestrians on may way to the pub...
Schartz!!!
HAHAHAHHAHA! Oh boy...
Talking about chess, Deep Blue was the first computer to beat a chess world champion in a round of chess. Processing 11 gigaflops, the machine was built solely for that purpose. Special hardware and all.
Well, the humanity isn't made of Kasparovs. We all have single abilities and excel in so many different areas that it would be impossible to build a computer capable of being better than any human in every single way.
And please, do not forget that we(I'm human FYI)are becoming smarter, not at the same fast pace as computers are getting faster, but I believe that the end result is that we are always ahead of the machines we create.
Hot-to-hot means the voltage between the 2 phases. The voltage between a phase and neutral is usually 110V. When each phase is shifted by 180 degrees (think about the sine wave) the peak difference between p1 and p2 is 220, because one wave is at the +110 and the other is at -110. Read more.
It's not that it's not quite there yet. Native browser support for SVG is non-existing. However, you can download plug-ins to view SVG. And being a W3C Recommendation, Netscape and IE are promising future browser support for SVG, and with browser support, the plug-in will eventually be phased out. The main problem with SVG for the moment is that hardly anyone uses it.
One sweet duo is SVG + Ajax, that can vastly improve the interface with the end-user, without eating up a lot of bandwidth and most importantly, can be easily implemented so that the browser gracefully presents an downgraded version of the page if one is not supported...
Give it all to the ones that can handle it, but degrade gracefully if one cannot handle it all. That is (or should be) the future of the web.
He's absolutely right. I too am a Christian. If there's one thing that the rest of us should learn is to open up our heads and try, try to understand the other side of things. Even (and especially) if we do not agree with it. There's always another side, and who's who to decide what's wrong or what's right? Things unacceptable today were normal a few centuries, even years ago. That, my friends, is called evolution. We evolve, our society evolves, the whole world evolves. Animals need to adapt themselves to changes to the environment. The human species is one of the most adaptable in the world. Why the fuck is it so absurd, and against the Bible?
Of course they could pull the plug on Orkut. But do they really want to do that?
According to Google's Press Release:
MOUNTAIN VIEW, Calif. - November 17, 2005 [...] The launch of operations in Latin America further demonstrates Google's ongoing commitment to expanding its international business, and developing the search advertising market in new regions around the world. The office in Sao Paulo, Brazil follows the acquisition of Brazil's Akwan Information Technologies Inc. in July of this year. Akwan has become Google's R&D centre in Brazil.
So they are activelly building an R&D center in Brazil, which will be Google's HQ in Latin America. Businesswise, they have a lot to loose by not complying with a cuort order... Just my R$0,02.
That's funny alright, but you make a valid point there: how would they know you're in posession of such material and, more inportantly, where would you draw the line between porn, violent porn, fetiche, abuse, S&M?...
Don't want to be pessimistic (or optimistic, depends on which side of the fence you're at), but if a law can't be enforced, or it's not worth being enforced, then it never will.
On a flight to Singapore, a gentleman had made several attempts to get into the men's restroom, but it had always been occupied. The flight attendant noticed his predicament. Sir, she said "You may use the ladies room if you promise not to touch any of the buttons on the wall."
He did what he needed to, and as he sat there he noticed the buttons he had promised not to touch. Each button was identified by letters: WW, WA, PP, and a red one labeled ATR. Who would know if he touched them? He couldn't resist. He pushed WW. Warm water was sprayed gently upon his bottom. What a nice feeling, he thought. Men's restrooms don't have nice things like this. Anticipating greater pleasure, he pushed the WA button. Warm air replaced the warm water, gently drying his underside.
When this stopped, he pushed the PP button. A large powder puff caressed his bottom adding a fragile scent of spring flowers to this unbelievable pleasure. The ladies restroom was more than a restroom, it is tender loving pleasure. When the powder puff completed its pleasure, he couldn't wait to push the ATR button which he knew would be supreme ecstasy. Next thing he knew he was in a hospital as he opened his eyes.
A nurse was staring down at him with a smile on her face. "What happened?" he exclaimed.
"You pushed one too many buttons," replied the nurse.
"The last button marked ATR was an Automatic Tampon Remover. Your balls are in the bucket under the bed"
THAT was really funny. Been a while since a youtube video brought me to tears for laughing so hard...
They've fixed it...
Dude, read on: http://graphics.stanford.edu/papers/lfcamera/
What a proper username!
Comments shall be avoided as much as possible :
No. Bad comments should be avoided. Those are the comments that add nothing to the code.
1) the code shall be simple and the name of variables and methods shall be self explanatory in most cases.
Reasonably naming variables and methods is a given. Most of the time the comments are (or should be) used to explain why a certain function was created and coded that way, rather than putting in plain english what we can tell just by reading the code. The requirements behind your coding can be (and often are) as relevant as the code itself.
2) the more you add comment lines, the less lines of code you can see on your screen.
True, but unless you're coding with chisel and stones, this is really irrelevant. A program is not a novel that requires two pages of comments to explain a few lines of code. Whoever does this is missing the whole point of code commenting.
3) comments introduce a redundancy.
They do not, if they're done properly. As aforementioned, comments are needed to explain reasons that one cannot tell from the code.
You missed the classic:
// Here be dragons
Beautifully simple! If I may add: try to keep all this functionality inside your Data Access Layer. That will really make things simpler in the presentation layer (your web pages).
There you go.
RE:#16789835
Sewer rat may taste like pumpkin pie, but I'd never know, because I'd never eat the filthy motherfucker.
What the fuck is going on with the Mods nowadays??? The guy has a valid point, not applicable to most of us, but a valid one anyway. And he's a flamebait now?
Oh, how I long for this kind of abuse when [meta]moderating...
Agreed. It seems that MS forgets that end users are, albeit slowly, getting more educated about computing in general. For a lot of people, though, computer is Windoze, the difference is not clear enough... For those, I like to put it this way:
You just bought your family a nice new car. As usual, you fill up the tank weekly at the gas station down the corner. But their gas isn't that good, and causes your engine to malfunction, for no apparent reason. But you're used to it, since the station is there for over 25 years, you grew up with it. It was actually the only gas station around until a couple of years ago.. Besides that, they just issued a notice that says that you can no longer install that nice CD player you want on your car, because the CD player is not supported by them, and your engine will stall after 10 miles, if you insist in installing the player. Now, why the hell would you put up with that gas station, knowing that there are many, many other gas stations around, with better, cheaper gas?...
You wouldn't. It's your car, and you do have a choice of what gas you want to fill up the tank with!
Damn! I just used my last mod point. Otherwise I'd mod you up Informative... I really like this little plugin!!!
Did you know that 1% of the static you see and hear on empty channels is actually radiation from the Big Bang?
Really.
copy con teleport.bat /Y a b > NULL
@echo off
cls
echo.
echo Now teleporting...
move
REM sleep 30s (OMG! It's taking long this time! IT'S WOKRING!!!):
PING -n 31 127.0.0.1>nul
echo.
echo Done!
^Z
LOL HAHAHAHAHAHAHA! That is Funny... Thanks for making me laugh so hard, I was almost sleeping at the desk, and now I want to go out and hug pedestrians on may way to the pub... Schartz!!! HAHAHAHHAHA! Oh boy...
Talking about chess, Deep Blue was the first computer to beat a chess world champion in a round of chess. Processing 11 gigaflops, the machine was built solely for that purpose. Special hardware and all.
Well, the humanity isn't made of Kasparovs. We all have single abilities and excel in so many different areas that it would be impossible to build a computer capable of being better than any human in every single way.
And please, do not forget that we (I'm human FYI) are becoming smarter, not at the same fast pace as computers are getting faster, but I believe that the end result is that we are always ahead of the machines we create.
Hot-to-hot means the voltage between the 2 phases. The voltage between a phase and neutral is usually 110V. When each phase is shifted by 180 degrees (think about the sine wave) the peak difference between p1 and p2 is 220, because one wave is at the +110 and the other is at -110. Read more.
It's not that it's not quite there yet. Native browser support for SVG is non-existing. However, you can download plug-ins to view SVG. And being a W3C Recommendation, Netscape and IE are promising future browser support for SVG, and with browser support, the plug-in will eventually be phased out. The main problem with SVG for the moment is that hardly anyone uses it.
One sweet duo is SVG + Ajax, that can vastly improve the interface with the end-user, without eating up a lot of bandwidth and most importantly, can be easily implemented so that the browser gracefully presents an downgraded version of the page if one is not supported...
Give it all to the ones that can handle it, but degrade gracefully if one cannot handle it all. That is (or should be) the future of the web.
He's absolutely right. I too am a Christian. If there's one thing that the rest of us should learn is to open up our heads and try, try to understand the other side of things. Even (and especially) if we do not agree with it. There's always another side, and who's who to decide what's wrong or what's right?
Things unacceptable today were normal a few centuries, even years ago. That, my friends, is called evolution. We evolve, our society evolves, the whole world evolves. Animals need to adapt themselves to changes to the environment. The human species is one of the most adaptable in the world. Why the fuck is it so absurd, and against the Bible?
According to Google's Press Release:
So they are activelly building an R&D center in Brazil, which will be Google's HQ in Latin America. Businesswise, they have a lot to loose by not complying with a cuort order...
Just my R$0,02.
That's funny alright, but you make a valid point there: how would they know you're in posession of such material and, more inportantly, where would you draw the line between porn, violent porn, fetiche, abuse, S&M?...
Don't want to be pessimistic (or optimistic, depends on which side of the fence you're at), but if a law can't be enforced, or it's not worth being enforced, then it never will.
Funding: Private, plus angel investors, amount not disclosed.
Plus free, shameless advertisement through Slashdot:
Posted by ScuttleMonkey on Wednesday April 26
Posted by Zonk on Monday August 21
Posted by CmdrTaco on Monday August 28
Yes! 10 companies in the list. Only 9 are worth watching.
On a flight to Singapore, a gentleman had made several attempts to get into the men's restroom, but it had always been occupied. The flight attendant noticed his predicament. Sir, she said "You may use the ladies room if you promise not to touch any of the buttons on the wall." He did what he needed to, and as he sat there he noticed the buttons he had promised not to touch. Each button was identified by letters: WW, WA, PP, and a red one labeled ATR. Who would know if he touched them? He couldn't resist. He pushed WW. Warm water was sprayed gently upon his bottom. What a nice feeling, he thought. Men's restrooms don't have nice things like this. Anticipating greater pleasure, he pushed the WA button. Warm air replaced the warm water, gently drying his underside. When this stopped, he pushed the PP button. A large powder puff caressed his bottom adding a fragile scent of spring flowers to this unbelievable pleasure. The ladies restroom was more than a restroom, it is tender loving pleasure. When the powder puff completed its pleasure, he couldn't wait to push the ATR button which he knew would be supreme ecstasy. Next thing he knew he was in a hospital as he opened his eyes. A nurse was staring down at him with a smile on her face. "What happened?" he exclaimed. "You pushed one too many buttons," replied the nurse. "The last button marked ATR was an Automatic Tampon Remover. Your balls are in the bucket under the bed"