Doesn't surprise me, some Indians are very determined, and by very determined I mean batshit nuts. Like that guy who rolled himself on the ground for 4,000 kilometers to honour a goddess, or that other guy who let his fingernails grow to reach about 6 feet, to the point it even made him deaf in one hear. That sort of stuff..
OK, seriously, what the hell is wrong with you guys. If the content of my comment didn't make it clear enough (or too subtle, if it was even subtle) that it was a sarcasm, and that the +5 Funny moderation wasn't a big enough clue, you could have at least seen the half dozen other replies that were only slight variations of the very code you just posted, or even all the other replies that made it clear enough it was originally a joke.
Or were you too eager to demonstrate your 1337 coding skills you straight jump on the reply button and started coding like the wind?
Good point (although on the other hand we're talking about a replacement for oil and coal power plants..). Then same idea except with wind mills (or whatever they're called these days).
When you copy code you also copy whatever bugs exist in that code. If something needs to be reused several times then it should be made into a function.
Crap, you're right! Fortunately there's an easy way to fix this :
I hope you're joking as well. Each of the 2^32 possible values for 'a' gets de facto 4 lines. And for each the number of extra lines is 'a', which means the total number for the body of the function will be closer to f(M) = 4*M + M!
If M is 2^32 then that would be... mmmh hold on.. calc.exe is having a tough time with (2^32)!
However you might want to just avoid calculating the result of a*b is it's >= 2^31 anyways, so the real number of lines in that case is more complicated.. And that's assuming the intended range of my function anyways. Of course I made up the number because I wasn't trying to come off as like one of these guys from The Big Bang Theory, although this very post probably doesn't help with that...
Wow OK that's stupid. First of all, energy can be stored to a certain extent. Mind you you're not exactly the first person to realise that solar energy isn't directly available at night. Secondly, you could put so many orders of magnitude more solar panels in Nevada that in space that it's not even funny. I mean seriously, you could probably get more power on a full moon night with those than with all the solar panels you could put up into space.
Thirdly, there's less electricity consumed during night time, check your facts. Who doesn't turn the lights on during day time anyways? And what does the rest of the world have to do with anything? We're talking about America here. Mind you such countries as France don't need solar power as badly as we do, as they already have nothing but nuclear power plants, hydroelectric, geothermal, wind, etc..
There's a difference between energy storage for the power grid and energy storage for a cell phone or car. The two can't even be compared.
That's what I don't like about people like you who read one book about one topic, it's that you make your mind up based on the opinion and arguments put forward by *one* person. I actually find it healthier to make my opinion off Slashdot comments where diverging points get made and thus I can use my critical sense to make my own mind up rather than limit myself to a necessarily biased source.
They could take off the critic's hat and -fix- the things that they complain about.
I mean, isn't that one of the things that makes OSS great?
Yeah, and the other great thing about OSS is that it's as easy to fix kernel bugs as it is to point them out! Yay, you see, anyone can be a kernel developer!
Make it "cut and paste" friendly, and as small as possible.
Cut and paste causes code cloning, which is among the most difficult maintenance problems. Code should be designed, when possible, in small chunks (methods, functions, etc.).
Wait.. are you trying to say that copying the same lines of code over and over again must be avoided? So tell me genius, how else would you implement such a function without copying?
int multiply(int a, int b) { int x=0;
if (a==1) { x+=b; }
if (a==2) { x+=b; x+=b; }
if (a==3) { x+=b; x+=b; x+=b; }
// Damn lameness filter, wouldn't let me paste my code in the entirety of its 132,356 lines
That quote isn't a rule to remember, it's just a basic fact. How does remembering that help a project avoid running into problems, and most importantly, do you even understand what a coding standard is?
42% of the USA's territory is desert. Why even consider a second sending solar panels to orbit when we have millions of unusable square miles right here. Just think of those area of Nevada desert which are covered with craters from atomic bomb tests, there's nothing there worth not being covered by solar panels. Then think about how much it would cost to send to space the same area of solar panels you'd could put down here, not to mention the lesser transmission loss, although on the other hand nights don't last as long in space and clouds are more sparse up there too.
So basically, what you're saying is that the yuan is fixed to other currencies, but that no matter how you cut the data it's not consistent with that claim, i.e. "no formula can be found"? In other words facts don't back your claim that the currency is fixed.. Are you sure that logic was calling for *me*?
Also, there's no flaw with my logic, there's no logic, only one undeniable fact that the yuan hasn't been fixed to the dollar since 2005. And the data you pointed to confirms it. So basically your post was just a case of "let me puke all the knowledge I have on this topic even if it isn't directly relevant to the post I'm replying to", right?
I agree with the AC who replied to you, but besides, what does it have to do with English? I hate it when fools go "we're disagreeing because you misunderstood me because English isn't your first language", when it has nothing to do with it. Just like when suckers make a lousy pun-based joke and if you didn't find it funny they'll just pretend you didn't get it.
Cool idea, but it still takes on hand to type. Gimme a grillI can type with from the tip of the tongue.
Although at this point if you're gonna use your mouth to type text you might as well go with speech-recognition, however you could use that for when you can't speak (a trooper trying to be silent, a kid at school txting) or when the environment is too noisy.
Clove 2 guy, rob da electronics store n make yaself a grill! (sorry, I had to)
I'm the tool? You're the one sucker who spent time crawling the web for info about a random Slashdot troll, to end up not even making a point out of it.
Doesn't surprise me, some Indians are very determined, and by very determined I mean batshit nuts. Like that guy who rolled himself on the ground for 4,000 kilometers to honour a goddess, or that other guy who let his fingernails grow to reach about 6 feet, to the point it even made him deaf in one hear. That sort of stuff..
Why hasn't the team come forth with a fix for this exploit? They have more knowlege on the subject then I do.
Well, not that I'm too knowledgeable in the domain, but don't encryption keys and such need to be decoded at some point in memory to be used?
Linux is superior to Mac OS X?? *pop* I'm afraid you just blown my Mac fanboism fuse :-(
Or were you too eager to demonstrate your 1337 coding skills you straight jump on the reply button and started coding like the wind?
Am I missing something, is the International Sarcasm Missing Day today??
Where do you see that?
Good point (although on the other hand we're talking about a replacement for oil and coal power plants..). Then same idea except with wind mills (or whatever they're called these days).
How about just x = a * b;
How about just WHOOOOOOSH!!
When you copy code you also copy whatever bugs exist in that code. If something needs to be reused several times then it should be made into a function.
Crap, you're right! Fortunately there's an easy way to fix this :
:%s/x+=b/x = addition(x, b)/
Only bad coders/dumb asses write 20 lines of code for basic arithmetic.
Only bad Slashdotters (if there can be any such thing)/dumb asses miss entirely such an obvious joke.
I gotta say, nice code snippet though. I would have never thought of that one!
I hope you're joking as well. Each of the 2^32 possible values for 'a' gets de facto 4 lines. And for each the number of extra lines is 'a', which means the total number for the body of the function will be closer to f(M) = 4*M + M!
If M is 2^32 then that would be... mmmh hold on.. calc.exe is having a tough time with (2^32)!
However you might want to just avoid calculating the result of a*b is it's >= 2^31 anyways, so the real number of lines in that case is more complicated.. And that's assuming the intended range of my function anyways. Of course I made up the number because I wasn't trying to come off as like one of these guys from The Big Bang Theory, although this very post probably doesn't help with that...
Hmmm..
Wow OK that's stupid. First of all, energy can be stored to a certain extent. Mind you you're not exactly the first person to realise that solar energy isn't directly available at night. Secondly, you could put so many orders of magnitude more solar panels in Nevada that in space that it's not even funny. I mean seriously, you could probably get more power on a full moon night with those than with all the solar panels you could put up into space.
Thirdly, there's less electricity consumed during night time, check your facts. Who doesn't turn the lights on during day time anyways? And what does the rest of the world have to do with anything? We're talking about America here. Mind you such countries as France don't need solar power as badly as we do, as they already have nothing but nuclear power plants, hydroelectric, geothermal, wind, etc..
There's a difference between energy storage for the power grid and energy storage for a cell phone or car. The two can't even be compared.
That's what I don't like about people like you who read one book about one topic, it's that you make your mind up based on the opinion and arguments put forward by *one* person. I actually find it healthier to make my opinion off Slashdot comments where diverging points get made and thus I can use my critical sense to make my own mind up rather than limit myself to a necessarily biased source.
Thanks for making the same point as me. At least we agree ;-)
They could take off the critic's hat and -fix- the things that they complain about.
I mean, isn't that one of the things that makes OSS great?
Yeah, and the other great thing about OSS is that it's as easy to fix kernel bugs as it is to point them out! Yay, you see, anyone can be a kernel developer!
Well it seems you can extract blood without a needle as well. I'm not sure about needleless bone marrow cell extraction though ;-).
It's called needlephobia and there are solutions to it
Ah, I see, makes more sense then. However it's hard to even read that between the lines of your original post ;-).
Make it "cut and paste" friendly, and as small as possible.
Cut and paste causes code cloning, which is among the most difficult maintenance problems. Code should be designed, when possible, in small chunks (methods, functions, etc.).
Wait.. are you trying to say that copying the same lines of code over and over again must be avoided? So tell me genius, how else would you implement such a function without copying?
That quote isn't a rule to remember, it's just a basic fact. How does remembering that help a project avoid running into problems, and most importantly, do you even understand what a coding standard is?
42% of the USA's territory is desert. Why even consider a second sending solar panels to orbit when we have millions of unusable square miles right here. Just think of those area of Nevada desert which are covered with craters from atomic bomb tests, there's nothing there worth not being covered by solar panels. Then think about how much it would cost to send to space the same area of solar panels you'd could put down here, not to mention the lesser transmission loss, although on the other hand nights don't last as long in space and clouds are more sparse up there too.
So basically, what you're saying is that the yuan is fixed to other currencies, but that no matter how you cut the data it's not consistent with that claim, i.e. "no formula can be found"? In other words facts don't back your claim that the currency is fixed.. Are you sure that logic was calling for *me*?
Also, there's no flaw with my logic, there's no logic, only one undeniable fact that the yuan hasn't been fixed to the dollar since 2005. And the data you pointed to confirms it. So basically your post was just a case of "let me puke all the knowledge I have on this topic even if it isn't directly relevant to the post I'm replying to", right?
China is basically using Capitalism as their weapon by fixing the Yuen to the Dollar.
2005 just called, they want their now-outdated analysis back
I agree with the AC who replied to you, but besides, what does it have to do with English? I hate it when fools go "we're disagreeing because you misunderstood me because English isn't your first language", when it has nothing to do with it. Just like when suckers make a lousy pun-based joke and if you didn't find it funny they'll just pretend you didn't get it.
Cool idea, but it still takes on hand to type. Gimme a grillI can type with from the tip of the tongue.
Although at this point if you're gonna use your mouth to type text you might as well go with speech-recognition, however you could use that for when you can't speak (a trooper trying to be silent, a kid at school txting) or when the environment is too noisy.
Clove 2 guy, rob da electronics store n make yaself a grill! (sorry, I had to)
I'm the tool? You're the one sucker who spent time crawling the web for info about a random Slashdot troll, to end up not even making a point out of it.