by Tdarcos » Thu Jan 12, 2012 10:29 am
Flack wrote:I don't know where Microsoft is buying their 1 gig USB sticks, but if they're paying more than $20, they should shop around.
Right off the top of my head I think retail they're around $5, so that probably means around $2 in carload quantities. I just glanced and right off the bat, Micro Center sells - in store, at retail - its own 8 GB thumb drives for $7.99, 16GB at $13.99, 4GB at $4.99.
Not only that, they're so cheap that even a 2GB is also $4.99 and they don't sell anything smaller!
Talk about nailing it, I didn't even have to look, I said $5 and I was dead-on right, and that's for a 4 GB.
I still have the first thumb drive I ever bought, I can't remember what it cost - probably $10 back then - and holds a whopping 64 megabytes!
In PowerShell, you don't use <, >, or = to compare strings -- instead, you would use -lt (less than), -gt, -le (less than or equal to), or -eq. So yeah, I looked at a script for 10 minutes trying to figure out why "if $a > $b" wouldn't work, when the correct syntax would be "if $a -gt $b".
Of course it would be a lot easier if I had a copy of the manual. Harumph.
Are they kidding? I mean, I'm used to it, but use of GT, LT, NE, EQ etc. goes back to
Fortran 66! As bad as C is and the problems it has, it still uses the standard <, ==, > to do comparisons. (Well, maybe not standard, most other languages use plain = and that's one of the things C got badly wrong; there's no legitimate reason to put an assignment in the middle of a comparison.)
Pascal solved the problem of the confusion of = as comparison and = as assignment by the use of the symbol "becomes", := as the exclusive assignment operator. Although I don't think it was that much of a problem, other languages handled = as assignment and = as comparator and most people didn't have a problem. But putting = as an assignment operator in comparisons was a brain dead moronic error.
One thing C did get right was the use of the double plus, double minus and "operator =" constructs, e.g. a++, --a, a *= 5, a -=k as substitutes for a=a+1; use a: a=a-1; a = a*5; and a=a-k. One thing C got horribly wrong was case sensitivity on identifiers.
[quote="Flack"]I don't know where Microsoft is buying their 1 gig USB sticks, but if they're paying more than $20, they should shop around.[/quote]Right off the top of my head I think retail they're around $5, so that probably means around $2 in carload quantities. I just glanced and right off the bat, Micro Center sells - in store, at retail - its own 8 GB thumb drives for $7.99, 16GB at $13.99, 4GB at $4.99.
Not only that, they're so cheap that even a 2GB is also $4.99 and they don't sell anything smaller!
Talk about nailing it, I didn't even have to look, I said $5 and I was dead-on right, and that's for a 4 GB.
I still have the first thumb drive I ever bought, I can't remember what it cost - probably $10 back then - and holds a whopping 64 megabytes!
[quote]In PowerShell, you don't use <, >, or = to compare strings -- instead, you would use -lt (less than), -gt, -le (less than or equal to), or -eq. So yeah, I looked at a script for 10 minutes trying to figure out why "if $a > $b" wouldn't work, when the correct syntax would be "if $a -gt $b".
Of course it would be a lot easier if I had a copy of the manual. Harumph.[/quote]
Are they kidding? I mean, I'm used to it, but use of GT, LT, NE, EQ etc. goes back to [i]Fortran 66[/i]! As bad as C is and the problems it has, it still uses the standard <, ==, > to do comparisons. (Well, maybe not standard, most other languages use plain = and that's one of the things C got badly wrong; there's no legitimate reason to put an assignment in the middle of a comparison.)
Pascal solved the problem of the confusion of = as comparison and = as assignment by the use of the symbol "becomes", := as the exclusive assignment operator. Although I don't think it was that much of a problem, other languages handled = as assignment and = as comparator and most people didn't have a problem. But putting = as an assignment operator in comparisons was a brain dead moronic error.
One thing C did get right was the use of the double plus, double minus and "operator =" constructs, e.g. a++, --a, a *= 5, a -=k as substitutes for a=a+1; use a: a=a-1; a = a*5; and a=a-k. One thing C got horribly wrong was case sensitivity on identifiers.