I don't care much about looks, and this is certainly one of the best laptops available now, I'd like very much to have one. But I don't understand why do they make thinkpads so ugly. It seems almost intentional.
He's asking the question because the pattern occurs a few times, and he fears that it may look bad with long variable names.
Given that, I think the current top answer (by user coredump) is a good suggestion, since it prevents duplicate code by using a function. So it basically says his code is good enough, just encapsulate it in a function (although the function name was a poor choice in my opinion).
Also, I think the answer you refer to (I believe it's the one by user Doc Brown) is a good suggestion, although it may not be the best in that particular case. But what if all of a sudden the pattern is repeated but with more possibilities (like 4, 5 and 6 variables)? You'd need a more generic function, and this particular answer provides a step in that direction (although again I think the function and variables names were poor choices - probably because it was just an example). And he even says at the end of the answer: if you don't need a generic approach for more variables, your code is fine, and maybe you can use coredump's approach.
Of course, my opinions reflect my thoughts about coding, mainly these: avoid duplicate code like the plague, and make some (or a lot of) effort creating the best function names possible (even though "best" is highly subjective in this case).
AngularJS is not an alternative or competitor of jQuery.
AngularJS is a complete framework that largely dictates how you will structure all of your UI code. jQuery is a set of very handy utilities that can be used by anyone that writes javascript for the browser (including those writing a AngularJS application, although I'm not sure that really makes sense given everything that AngularJS provides). So basically anyone can use jQuery to help make things easier.
I'm not an expert in any of them, but given my limited knowledge, I think that summarizes it well.
Tor provides anonymity. It does not provide authenticity or secrecy, and doesn't pretend to.
Not only it doesn't provide these things, it potentially cripples then by adding a random computer as a Man In The Middle! What did you guys expect?
Also, seeing that people who usually perform activities of this type (spreading malware) should be the ones most interested in TOR, I see some signs as to the kind of organizations who would attempt to do this...
If you want to follow someone - pick Apple. Given the way news coverage is, if there's a problem with someone somewhere and their SSD in their Apple product, the whole world would know in a nanosecond. Someone as heavily scrutitinized as Apple (where even one failure in millions of computers sold would probably bring about SSD-gate) means if there is a real problem, you'd already know.
Don't be so sure about that. I and many others have had problems with the GPU soldering on 2011 Macbook Pros. This has been affecting lots of users since last year, and although there was some media coverage, I don't think it's gathering enough attention as you seem to imply it would.
And FFS, this is the DEVELOPER conference. New product announcements here are few and far between. Here's an overview of the last ten years of WWDC. If you can read that list and still be surprised or disappointed at what was or wasn't announced today, you're an idiot.
Is there a rock beneath the bag? You can't know. You can, however, guess there isn't and adjust your estimates about any future bags containing rocks should this one be harmless. That happens all the time, and is one of the numerous ways in which human rationality tends to break down.
You are giving computers and self driving cars way more power than they have in reality. A human could see the bag bouncing around in the road and make the decision, where the computer system would detect an obstacle and react differently.
And I think you are giving then way less power than they have in reality. Facebook already can detect faces better than we do.
Also, why are you assuming the computer system would react differently? Can't it learn (or be trained) to detect the bouncing bag to know there isn't a risk in this case?
I also think they could learn to do that better than humans too. We can get distracted, and only notice the bag on the last second, when it is laying still and formed just like it was over a rock. A computer system will be totally dedicated to paying attention to everything on the road, and wouldn't miss a single bounce of the bag, when it could reduce the risk factor of the bag enormously and then ignore it.
The human mind, contrary to your implication outperforms computers all the time.
Yes, it outperforms computers all the time, but less with each passing moment.
Do you believe in statistics? If autonomous cars injure and kill less people than human controlled cars, then what's the point of this kind of discussion?
Yeah, my cousin told me that his friend had an aunt who dated a guy who told them that. So I wrote it in Wikipedia.
...sorry, I checked and saw that it has correct references (here by the way: http://en.wikipedia.org/wiki/H...), but when I hear something like "wikipedia states", I can't help but think of something like that.
Where did you get that deal? (honest question!)
Last time I looked, just the CPU and GPU together cost almost $950.
(CPU for $320 on newegg and amazon, and GPU $600 cheapest one on amazon)
Vim rulez. (over Emacs at least...)
Total size for 459 PS4 Games: 3318 GB
Total size for 289 XBox One Games: 3040 GB
Aaarrrrrrr!!!!!
https://www.youtube.com/watch?...
18 years ago was 1997?
Fuck, I feel old now.
I don't care much about looks, and this is certainly one of the best laptops available now, I'd like very much to have one. But I don't understand why do they make thinkpads so ugly. It seems almost intentional.
In fact, with insurance, the tax payer will pay more on average than without insurance.
It's wonderful how insurance works on a greater scale.
He's asking the question because the pattern occurs a few times, and he fears that it may look bad with long variable names.
Given that, I think the current top answer (by user coredump) is a good suggestion, since it prevents duplicate code by using a function. So it basically says his code is good enough, just encapsulate it in a function (although the function name was a poor choice in my opinion).
Also, I think the answer you refer to (I believe it's the one by user Doc Brown) is a good suggestion, although it may not be the best in that particular case. But what if all of a sudden the pattern is repeated but with more possibilities (like 4, 5 and 6 variables)? You'd need a more generic function, and this particular answer provides a step in that direction (although again I think the function and variables names were poor choices - probably because it was just an example). And he even says at the end of the answer: if you don't need a generic approach for more variables, your code is fine, and maybe you can use coredump's approach.
Of course, my opinions reflect my thoughts about coding, mainly these: avoid duplicate code like the plague, and make some (or a lot of) effort creating the best function names possible (even though "best" is highly subjective in this case).
Wait, you're telling me systemd is stable? Like, debian-stable level (or should I say debian-level stable)?
A super important core system software that had its initial release 5 years ago?
Is Debian still Debian?
It runs my apps, and I'm glad I don't need to use Windows for that. :)
AngularJS is not an alternative or competitor of jQuery.
AngularJS is a complete framework that largely dictates how you will structure all of your UI code. jQuery is a set of very handy utilities that can be used by anyone that writes javascript for the browser (including those writing a AngularJS application, although I'm not sure that really makes sense given everything that AngularJS provides). So basically anyone can use jQuery to help make things easier.
I'm not an expert in any of them, but given my limited knowledge, I think that summarizes it well.
WTF. You just turned me into a total systemd hater now.
I just looooove when the people being bashed in the comments come up defending their position! Thanks a lot for all the info griffey!
Surely a "Blackrola" phone would be a hit in Brazil.
Tor provides anonymity. It does not provide authenticity or secrecy, and doesn't pretend to.
Not only it doesn't provide these things, it potentially cripples then by adding a random computer as a Man In The Middle! What did you guys expect?
Also, seeing that people who usually perform activities of this type (spreading malware) should be the ones most interested in TOR, I see some signs as to the kind of organizations who would attempt to do this...
If you want to follow someone - pick Apple. Given the way news coverage is, if there's a problem with someone somewhere and their SSD in their Apple product, the whole world would know in a nanosecond. Someone as heavily scrutitinized as Apple (where even one failure in millions of computers sold would probably bring about SSD-gate) means if there is a real problem, you'd already know.
Don't be so sure about that. I and many others have had problems with the GPU soldering on 2011 Macbook Pros. This has been affecting lots of users since last year, and although there was some media coverage, I don't think it's gathering enough attention as you seem to imply it would.
Some references:
http://www.mbp2011.com/
https://twitter.com/hashtag/mb...
http://www.reddit.com/r/mbp201...
40 minutes already and no comment with a score over 2!
Also, I'm pretty sure cups don't always have the same volume. Which one am I supposed to use??
That reminds me of this quite interesting article:
http://www.joelonsoftware.com/...
Unbelievable. I went straight to walmart.com to verify your claim, and now I'm definitely amazed.
http://www.walmart.com/ip/Stra...
It's incredible how cheap these things have gotten.
And FFS, this is the DEVELOPER conference. New product announcements here are few and far between. Here's an overview of the last ten years of WWDC. If you can read that list and still be surprised or disappointed at what was or wasn't announced today, you're an idiot.
Awesome page, thanks for the link!
When I taught 3rd year Operating Systems at a University
Although studying it again now, it seemed much more interesting! Maybe my teacher wasn't very good...
Is there a rock beneath the bag? You can't know. You can, however, guess there isn't and adjust your estimates about any future bags containing rocks should this one be harmless. That happens all the time, and is one of the numerous ways in which human rationality tends to break down.
You are giving computers and self driving cars way more power than they have in reality. A human could see the bag bouncing around in the road and make the decision, where the computer system would detect an obstacle and react differently.
And I think you are giving then way less power than they have in reality. Facebook already can detect faces better than we do.
Also, why are you assuming the computer system would react differently? Can't it learn (or be trained) to detect the bouncing bag to know there isn't a risk in this case?
I also think they could learn to do that better than humans too. We can get distracted, and only notice the bag on the last second, when it is laying still and formed just like it was over a rock. A computer system will be totally dedicated to paying attention to everything on the road, and wouldn't miss a single bounce of the bag, when it could reduce the risk factor of the bag enormously and then ignore it.
The human mind, contrary to your implication outperforms computers all the time.
Yes, it outperforms computers all the time, but less with each passing moment.
Do you believe in statistics? If autonomous cars injure and kill less people than human controlled cars, then what's the point of this kind of discussion?
Yeah, my cousin told me that his friend had an aunt who dated a guy who told them that. So I wrote it in Wikipedia.
...sorry, I checked and saw that it has correct references (here by the way: http://en.wikipedia.org/wiki/H...), but when I hear something like "wikipedia states", I can't help but think of something like that.
That reminds me of this comic: http://sinfest.net/archive_pag...
Lots of people don't want to play. They want to win.