@boomzilla said in OOP is TRWTF:
@dfdub said in OOP is TRWTF:
Oh come on, you could have at least clicked the link before replying.
YMBNH
Young man, don't you get snippy with me! And now get off my lawn!
@boomzilla said in OOP is TRWTF:
@dfdub said in OOP is TRWTF:
Oh come on, you could have at least clicked the link before replying.
YMBNH
Young man, don't you get snippy with me! And now get off my lawn!
@gąska said in I have no multiple inheritance and I must scream:
They added features with no regard how it fits the rest of language, and for each problem they added a hack to work around it.
I wouldn't say that. I think a more accurate description would be that they wanted 100% compatibility to C at the source code level and that's where 90% of the flaws in the language come from.
It's a good thing that the standards committee started thinking about C++ as a language mostly separate from C now that needs to evolve independently. std::string_view
, std::variant
and std::unique_ptr
are just the first steps in a gradual migration towards a separate language that merely has a compatibility layer for C. And constexpr
is already making some of the template abuse unnecessary.
@Gąska said in OOP is TRWTF:
But if you want to know that == has piss poor performance on structs by default, you have to read this HOWTO page from C# programming guide
I never claimed that RTFM is a reasonable solution to every single problem, but I seem to have agitated a lot of shoulder aliens with my remark. I'll just assume that's because you all know that you're being too lazy and I've hit a nerve.
@pleegwat We may work for the same company. Hello potential co-worker.
@Magus I just wish XML Schema was more expressive. It's good enough for editor support, but usually not enough for actual validation.
@dcon said in A new cartridge-based gaming console: brilliant or brillant?:
That will be the "improved" package. For only $99 more!
That's why I said rumor. But the new document specifically mentions USB-C to proprietary connector cables, so there's a chance Apple might comply by supplying a generic USB-C charger and a proprietary cable.
@dkf The smartphone manufacturers seem to be working on a new Memorandum of Understanding for a common charging standard, so I guess there's some hope for the future. It is rumored that Apple might even include USB-C to Lightning cables in the box with their next generation of phones.
White-box testing is about knowing the code, and tailoring the tests to current implementation - you can do that with interface tests alone!
And then you have to change the tests every time you change the code if you want to keep the guarantee you were originally going for (every branch in the code is accounted for). Which kind of defeats the point of interface tests.
@Atazhaia said in Commuting WTF Thread:
One of the local grocery stores has a freezer with exotic meats, like zebra, crocodile, ostrich and so. Tempting to cook, but on finding recipes.
I'm guessing they're expensive, so I'd be scared of screwing them up as well. But Zebra steak should be easy to make - I don't think the preparation would be too different from regular steak.
A quick Google search brought up https://www.transifex.com/. The feature list (glossary, translation memory, ...) looks nice. Might be worth looking at it you're not completely opposed to spending money on this.
@dkf said in A new cartridge-based gaming console: brilliant or brillant?:
Or do they put in extra Apple-like BS?
Like (unfortunately) most devices, the Switch is not USB-PD compliant:
It's going to take a while until USB Type C chargers become interchangeable. Right now, it seems like every company is still implementing its own thing.
@dkf Charging while playing is definitely problematic when you don't use the original charger, see my post.
@topspin said in Gąska sed what?:
Does that matter in a script? Aliases don't seem to get applied when I test it
Oh, yeah, I guess you're right. Brain fart.
@Gąska said in Gąska sed what?:
bash gurus
Oh God. Please, no, just no. I'm way too young for that. Also, I haven't even mastered zsh yet and I don't know what's POSIX-compatible and what isn't – does that make it any better?
@jaloopa I've noticed that if I plug it into my phone charger on the train, the battery will drain more slowly while playing, but not actually charge. Only the original charger actually charges it when I'm playing.
@blakeyrat said in A new cartridge-based gaming console: brilliant or brillant?:
So Microsoft made a bad mistake, but at least they didn't boneheadedly stick to it.
Well, at the time the mistake became obvious, it was arguably too late for that console generation anyway. At least they then made Splatoon near the EOL of the Wii U, to show off what they wanted to achieve with that controller. And I have to admit, it made me wonder whether the controller might have been more useful had the Wii U had a large enough market share for developers to actually give a shit about it in their ports.
@Gąska said in Gąska sed what?:
Do you know any alternative that can invoke arbitrary programs with arbitrary arguments and assign arbitrary recipes to arbitrary files? Something that doesn't just generate makefile in the end?
Gradle.
(Not entirely serious, you probably don't want to use it for small stuff.)
Maybe there's another make
version that doesn't ignore the problem? Who knows…
@hungrier It's funny that you mention GTA, because the initial load time for GTA V is absolutely horrible on PS4.
@Gąska
You'll need to write the order to a file between the two tasks if you want to be able to take advantage of Gradle's caching mechanisms. Other than that, I see no problems with modelling that workflow.
Of course, you'll have to write a few lines of Groovy to implement the task logic, since Gradle doesn't have an existing plugin for the language you're using. But one of the main advantages of Gradle is that you can do just that - write just a few lines of code to implement missing functionality you need, in the same language the build scripts are written in. Even writing a generic plugin for that functionality which you can use across different projects isn't hard.
@blakeyrat said in A new cartridge-based gaming console: brilliant or brillant?:
The Kinect thing was a huge strategic mistake.
It was basically Microsoft's tablet controller - just like Nintendo with the Wii U, they bet on a trend that didn't turn out to become a thing. The Wii U controller became completely ridiculous and unnecessary when Android/iOS tablet started being sold and the Kinect stopped being cool after the first VR demos. Also, Microsoft overestimated the longevity of the "sports game" hype the original Wii created.
Sony only won because they were conservative. I'm still not a fan of the company, though - I own too many mediocre Sony products for that.
@Benjamin-Hall
Ah, too late. I was going to recommend the Surface Pro 7 and a fast SDXC card. I'm quite happy with it and I can still use all my old accessories from the Pro 3.