The design of cin/cout always struck me as someone showing off. "HEY LOOKIE! I can override the shift operators to do this awesome looking I/O stuff!" Also, the FQA has some examples of where it can bite you in the ass, like leaving the stream in hexadecimal mode, because that string of operators doesn't have any way to tell the object that "I've ended the statement, so please reset back to defaults kthx!"
When you have some junior coder sticking a virtual function call inside a for loop
If that function really needed to be virtual, it's a lot better than sticking a switch statement into EVERY for loop that uses it, with each branch calling the special function for that class type. (Not to mention needing to update every one of those switch statements when you add another subclass!) Or creating yet another function with that switch statement so you can keep it in one place. Or you could put a proc pointer in the struct, which is essentially the same thing as a virtual function call, only with uglier syntax.
Not to mention that the vtable entries are effectively const, so even when using a virtual function, if you're doing multiple operations on the same object, the vtable access can be kept in a register for multiple calls.
And if that function really didn't need to be virtual, simply not declaring it virtual will cause C++ to compile a static call. That's what sets C++ apart from other object-oriented languages, though it can bite you in the ass if you don't understand it.
If you're going to complain about "junior coders" doing something, at least complain about something sensible. The real problem of C++ isn't speed, it's size, due to code bloat from excessive template use, with some degree of "write-only code" due to templates.
(I use C++ in an embedded systems environment, so templates, exceptions, RTTI, and non-placement new are right out. But "C with classes" works great where you would have to do switch statements or proc pointers. The win is in code that's easier to understand, if you do it right.)
But they're a lot worse when you have to send updates to an already deployed system. LEO is one of the remotest of remote sites. It's kind of hard to get the janitor to walk up and to push the reset button for you. I think a week delay to get it right is a lot better than "ship it and we'll push an update later".
Back to the crux of this though, The UMaple people clean room reverse engineered the MapleStory server to run a completely separate environment.
Too bad they didn't show up in court to make that argument.
The lesson here: if someone is suing you for a (potentially) large amount, don't ignore it. Default judgments will never be in favor of the side that didn't show up.
The other day I was reading a scan of an old (1982?) issue of Byte magazine where an article talked about copyrights and object code (in the context of 1982, of course). One of the cases mentioned was a video company (Midway?) who bought the US rights to a Japanese coin-op video game had filed a video of the (same every run) attract screen with the copyright office. They were able to use the audiovisual presentation of the attract screen to win the case against people using copies of the ROM to make bootleg coin-op machines, at a time when computer object code was not considered copyrightable because it wasn't human readable.
While I understand your sentiment, if I was an astronaut aboard the ISS I don't think I would appreciate a unknown, unexpected, untested, unverified rocket hurtling towards my fragile little home.
Indeed. And I'm sure there would be some nice men from the government who would not be amused. Or nice, once this happened.
In fact, that's one of the reasons this launch was delayed. They need two people on the ISS qualified in the docking procedures for this mission, and they only recently got the second up.
After years of work, you present your result to the general public, and it looks, well, like this [comic-freaks.com].
It ends up like "(http://www.comic-freaks.com/images/stories/mona-lisa/mona-lisa-03.jpg)
You are not authorised to view this resource.
You need to login." on a web page covered with scammy ad links? Wow, no wonder Canada Post is so pissed off.
...and an emulator for an 8-bit computer with some sort of MS-BASIC. Preferably a Z-80 or 6809 version, so maybe some kind of CP/M emulator, or a TRS-80 or CoCo emulator. The 6502 versions just weren't as well made, sorry Apple and Commodore fans. And an MS-BASIC with line numbers! That VisualPoundNet stuff can get the hell off my lawn.
Seriously, typing in other people's code, then hacking it up, that's the best first step. No need to get fancy with programming languages or APIs, just get used to code and how it flows. Super Star Trek alone can give weeks of hacking fun. After a few months he can move to GCC on Linux or something like that.
Just make sure the kid understands he's not going to create the next World of Warcraft in six weeks.
I have a solution for that. It's called a locked room.
Now I have visions of a spy movie where they hack into someone's computer by taping a TB connector to a rod, pushing it through a cage wall in a data center, and connecting it to a computer's port. Except that there's not much special about TB that you couldn't do with ports we already have. (Remember how one hack for the PS3 was a buffer overflow in a USB device descriptor?)
If http://pepsi/ [pepsi] resolved, who would win between my local machine named pepsi and the pepsicola pepsi domain?
If everything was implemented properly, your local machine would, because the default domain would be searched first. You would have to add a "." after "pepsi" to force it to be a TLD. More importantly, this would be the correct response because who in their right mind needs to save typing four characters to go to Pepsi's web site? (Or for that matter, who would care enough to go to their website at all? Certainly not anyone I would like to associate with.)
For example, at my previous company, inside the local intranet I could type 'bugzilla' in the URL bar and it would resolve to the bugzilla of our company. It's really convenient. And now this sort of system will be impossible because it might conflict with the.wiki domain name space.
Seems like someone has never heard of default domains and doesn't understand how domain name lookups work from the client side.
First of all, I use H&R Block's software because they're not the "big guy" when it comes to tax software. And they have an OS X version. (although this year's version bitches at you if you're still running 10.4). I can usually find it at Fry's for $15 for the basic edition (I don' t have state income tax) if I pay attention and get it in January. And the E-File supports five filings from the code, so I can let my mom use it too (that's how I know about the 10.4 thing). (FWIW, they charge $10 for a single E-file if you don't have that code.)
The main problem is that it's not a trivial problem, because Congress (aka "the opposite of Progress") is involved. I'm pretty sure that elected lawmakers are NP-complete. Or maybe NP-incomplete. And they are constantly changing things, sometimes for the sake of changing things. ("Hey, look! I'm doing something!") And this process is repeated in most states. (I live in Texas, one of the few that doesn't.) And maybe even one or two really big cities. So instead of just one tax code to worry about, now you have around fifty. Someone has to update that crap every year, and you would probably prefer it be someone who is paid to be responsible for doing it right.
But whatever you get, remember to write down what it cost you so you can count it as a deduction for next year, assuming you do itemized deductions, which is where you really need good software. (If you're too young to have a mortgage, you're probably not going to have any benefit from itemized deductions.)
Well gosh, I think there was about zero Hg in the many fillings I've been getting the past few months. They're ceramics (with color matching done before mixing the stuff up) that cure with a light "gun" that probably emits UV for the curing process. The difference shows up on an X-ray, but otherwise it's not visible.
There's no point in using metallic fillings unless you really want to show off your bling every time you smile. (Plus, the dentist has to keep track of some really expensive metals that can potentially be stolen.)
I should point out, though, that the Dentist told every patient (and told us to tell them, as well) that they only get 1/100th of the radiation. It's just a party lie.
Mine said 1/10th, for what it's worth. And I was getting the first in quite a while, coming in for a root canal (the crown had broken off due to some major decay), so I really did need full bitewings.
It was pretty freaky to find that X-rays were now being done with a USB imager.
I've got news for you: they may already be worth $0.
Most gift cards have a so-called "maintenance fee" which deducts money from them monthly after a certain period of time, like a year or so. $1/month can really add up fast on a $50 card. Go check them right now by whatever method is printed on the back of the card. This isn't just Best Buy, it's the whole gift card industry.
But does anyone really use Ruby off rails?
The design of cin/cout always struck me as someone showing off. "HEY LOOKIE! I can override the shift operators to do this awesome looking I/O stuff!" Also, the FQA has some examples of where it can bite you in the ass, like leaving the stream in hexadecimal mode, because that string of operators doesn't have any way to tell the object that "I've ended the statement, so please reset back to defaults kthx!"
When you have some junior coder sticking a virtual function call inside a for loop
If that function really needed to be virtual, it's a lot better than sticking a switch statement into EVERY for loop that uses it, with each branch calling the special function for that class type. (Not to mention needing to update every one of those switch statements when you add another subclass!) Or creating yet another function with that switch statement so you can keep it in one place. Or you could put a proc pointer in the struct, which is essentially the same thing as a virtual function call, only with uglier syntax.
Not to mention that the vtable entries are effectively const, so even when using a virtual function, if you're doing multiple operations on the same object, the vtable access can be kept in a register for multiple calls.
And if that function really didn't need to be virtual, simply not declaring it virtual will cause C++ to compile a static call. That's what sets C++ apart from other object-oriented languages, though it can bite you in the ass if you don't understand it.
If you're going to complain about "junior coders" doing something, at least complain about something sensible. The real problem of C++ isn't speed, it's size, due to code bloat from excessive template use, with some degree of "write-only code" due to templates.
(I use C++ in an embedded systems environment, so templates, exceptions, RTTI, and non-placement new are right out. But "C with classes" works great where you would have to do switch statements or proc pointers. The win is in code that's easier to understand, if you do it right.)
Only if you can RFP more TLAs ASAP!
Next week on Family Guy: Peter gets a job writing spacecraft docking software!
But they're a lot worse when you have to send updates to an already deployed system. LEO is one of the remotest of remote sites. It's kind of hard to get the janitor to walk up and to push the reset button for you. I think a week delay to get it right is a lot better than "ship it and we'll push an update later".
But at least it does cover all 57 states.
Do they have to report it as "layoffs" when they sell off entire business units to other companies?
I don't see how they work out that it is 17938 infringements when they only set up one server, so they have only infringed once.
That would probably because that was the argument from the only side that showed up.
Back to the crux of this though, The UMaple people clean room reverse engineered the MapleStory server to run a completely separate environment.
Too bad they didn't show up in court to make that argument.
The lesson here: if someone is suing you for a (potentially) large amount, don't ignore it. Default judgments will never be in favor of the side that didn't show up.
The other day I was reading a scan of an old (1982?) issue of Byte magazine where an article talked about copyrights and object code (in the context of 1982, of course). One of the cases mentioned was a video company (Midway?) who bought the US rights to a Japanese coin-op video game had filed a video of the (same every run) attract screen with the copyright office. They were able to use the audiovisual presentation of the attract screen to win the case against people using copies of the ROM to make bootleg coin-op machines, at a time when computer object code was not considered copyrightable because it wasn't human readable.
The legendary eightth flavor of Windows 8 is so delicious, that most people are deemed unworthy to experience it or even utter it's true name.
Octarine?
While I understand your sentiment, if I was an astronaut aboard the ISS I don't think I would appreciate a unknown, unexpected, untested, unverified rocket hurtling towards my fragile little home.
Indeed. And I'm sure there would be some nice men from the government who would not be amused. Or nice, once this happened.
In fact, that's one of the reasons this launch was delayed. They need two people on the ISS qualified in the docking procedures for this mission, and they only recently got the second up.
After years of work, you present your result to the general public, and it looks, well, like this [comic-freaks.com].
It ends up like "(http://www.comic-freaks.com/images/stories/mona-lisa/mona-lisa-03.jpg)
You are not authorised to view this resource.
You need to login." on a web page covered with scammy ad links? Wow, no wonder Canada Post is so pissed off.
...and an emulator for an 8-bit computer with some sort of MS-BASIC. Preferably a Z-80 or 6809 version, so maybe some kind of CP/M emulator, or a TRS-80 or CoCo emulator. The 6502 versions just weren't as well made, sorry Apple and Commodore fans. And an MS-BASIC with line numbers! That VisualPoundNet stuff can get the hell off my lawn.
Seriously, typing in other people's code, then hacking it up, that's the best first step. No need to get fancy with programming languages or APIs, just get used to code and how it flows. Super Star Trek alone can give weeks of hacking fun. After a few months he can move to GCC on Linux or something like that.
Just make sure the kid understands he's not going to create the next World of Warcraft in six weeks.
when you want to do some gaming rent a spot with a high end video card!
Don't most high-end video cards use a 16x slot? TB is only 4x. It won't be quite so high end with only 1/4 of the bus bandwidth.
I have a solution for that. It's called a locked room.
Now I have visions of a spy movie where they hack into someone's computer by taping a TB connector to a rod, pushing it through a cage wall in a data center, and connecting it to a computer's port. Except that there's not much special about TB that you couldn't do with ports we already have. (Remember how one hack for the PS3 was a buffer overflow in a USB device descriptor?)
I was thinking of ".stupid" myself, but yeah.
If http://pepsi/ [pepsi] resolved, who would win between my local machine named pepsi and the pepsicola pepsi domain?
If everything was implemented properly, your local machine would, because the default domain would be searched first. You would have to add a "." after "pepsi" to force it to be a TLD. More importantly, this would be the correct response because who in their right mind needs to save typing four characters to go to Pepsi's web site? (Or for that matter, who would care enough to go to their website at all? Certainly not anyone I would like to associate with.)
For example, at my previous company, inside the local intranet I could type 'bugzilla' in the URL bar and it would resolve to the bugzilla of our company. It's really convenient. And now this sort of system will be impossible because it might conflict with the .wiki domain name space.
Seems like someone has never heard of default domains and doesn't understand how domain name lookups work from the client side.
They should call it the BitLoon.
First of all, I use H&R Block's software because they're not the "big guy" when it comes to tax software. And they have an OS X version. (although this year's version bitches at you if you're still running 10.4). I can usually find it at Fry's for $15 for the basic edition (I don' t have state income tax) if I pay attention and get it in January. And the E-File supports five filings from the code, so I can let my mom use it too (that's how I know about the 10.4 thing). (FWIW, they charge $10 for a single E-file if you don't have that code.)
The main problem is that it's not a trivial problem, because Congress (aka "the opposite of Progress") is involved. I'm pretty sure that elected lawmakers are NP-complete. Or maybe NP-incomplete. And they are constantly changing things, sometimes for the sake of changing things. ("Hey, look! I'm doing something!") And this process is repeated in most states. (I live in Texas, one of the few that doesn't.) And maybe even one or two really big cities. So instead of just one tax code to worry about, now you have around fifty. Someone has to update that crap every year, and you would probably prefer it be someone who is paid to be responsible for doing it right.
But whatever you get, remember to write down what it cost you so you can count it as a deduction for next year, assuming you do itemized deductions, which is where you really need good software. (If you're too young to have a mortgage, you're probably not going to have any benefit from itemized deductions.)
Well gosh, I think there was about zero Hg in the many fillings I've been getting the past few months. They're ceramics (with color matching done before mixing the stuff up) that cure with a light "gun" that probably emits UV for the curing process. The difference shows up on an X-ray, but otherwise it's not visible.
There's no point in using metallic fillings unless you really want to show off your bling every time you smile. (Plus, the dentist has to keep track of some really expensive metals that can potentially be stolen.)
I should point out, though, that the Dentist told every patient (and told us to tell them, as well) that they only get 1/100th of the radiation. It's just a party lie.
Mine said 1/10th, for what it's worth. And I was getting the first in quite a while, coming in for a root canal (the crown had broken off due to some major decay), so I really did need full bitewings.
It was pretty freaky to find that X-rays were now being done with a USB imager.
I've got news for you: they may already be worth $0.
Most gift cards have a so-called "maintenance fee" which deducts money from them monthly after a certain period of time, like a year or so. $1/month can really add up fast on a $50 card. Go check them right now by whatever method is printed on the back of the card. This isn't just Best Buy, it's the whole gift card industry.