News for hackers. Stuff that matters.
Re:I still like C and strongly dislike C++ by Koshkin on Wednesday May 26, 2021 @07:59PM (#27297669)
Well, all languages have good and bad parts. C and (the modern) C++ are two completely different languages in what matters most, and, to be fair, it is C++ in which much of the world-class software, like Unreal Engine, is written in. As much as I love C, if faced with a large project, I would only choose C++ as the implementation language.
Re:I still like C and strongly dislike C++ by munk-a on Wednesday May 26, 2021 @08:03PM (#27297705)
At my first real dev job a big portion of my work heavily involved the Qt framework and, while at the time lambdas were still a big missing sore point, using that framework and their widespread habit of passing by const ref instead of pointer made me like C++ a lot more. I completely understand that pointers and dynamic memory management exists for really good reasons, but isolating global object creation into your main and leaning on internally managed lists of objects can be really strong from the perspective of writing good testable code.

I've been working primarily in PHP for a while now (and honestly put a lot less value on language comparison) but from what I've seen the expressiveness and power of C++ (at least in the ways I like it) have mostly been superseded by Rust and I think that'd be where I started if I ever need to work on something where in application logic would actually be a product bottleneck (instead of data source interaction).

Re:I still like C and strongly dislike C++ by jrsj on Wednesday May 26, 2021 @08:44PM (#27298022)
Is Unreal Engine world-class software? I've heard a lot of negative things about it so it's hard to tell if it's just one of those things people complain about because its so popular or if it really does get things wrong
Re:I still like C and strongly dislike C++ by AstralStorm on Wednesday May 26, 2021 @09:46PM (#27298430)
Bad things compared to what? Unity which does not have half the features out of the box and every other game implements basics like FPS limiter wrong?

Frostbite or Dawn Engine with its bad editors and performance problems?

Crytek used by few games? (This one has a chance to challenge UE) Unigine which is also rather rare?

Re:I still like C and strongly dislike C++ by offtop5 on Thursday May 27, 2021 @01:25PM (#27305625)
People tend to complain about game engines because they're just so accessible, yet allow you to do extremely complex things.

For example if I wanted to make a 3D platformer in unity, I could probably commission an artist to create the character, download a starter kit of some sort, and be done with it in about a week.

However this means I'm tying in so much code, and if anything doesn't work exactly the way I expect it I can complain. I might complain about the starter kit I purchased, I might complain about Unity crashing when the real reason for the crashes are my own crappy code.

Particularly when I was younger, I would often try to do way too much at once and this leads to frustration. But, theoretically you could create the next gears of war with three other people in about a year. Odds are you're going to run into tons of problems though just because it's so hard to do that

Re:I still like C and strongly dislike C++ by adamrezich on Thursday May 27, 2021 @03:09PM (#27306877)
> theoretically you could create the next gears of war with three other people in about a year

this is simply not true

Re:I still like C and strongly dislike C++ by offtop5 on Thursday May 27, 2021 @03:40PM (#27307252)
Bright Memory was created by a single person. Keyword being theoretically, in reality you'd just go insane
Re:I still like C and strongly dislike C++ by pjmlp on Thursday May 27, 2021 @02:05AM (#27299891)
Heck, most modern C compilers are written in C++ as well.
Re:I still like C and strongly dislike C++ by 12thwonder on Wednesday May 26, 2021 @08:03PM (#27297706)
Right, Browsers too are written in c++ for the most part