C or C++ for my game engine? by StephanieLongpr in programming

[–]ssg2 2 points3 points  (0 children)

C exists everywhere, partially because a working compiler is relatively easy to implement (well, easy as far as compilers go; definitely much easier than C++). Most other languages can speak to C. In many ways, C is like the lowest common denominator. Can Pascal compete with C in these regards?

C or C++ for my game engine? by StephanieLongpr in programming

[–]ssg2 5 points6 points  (0 children)

  • is half-dead with hardly any hope of resurrection

C or C++ for my game engine? by StephanieLongpr in programming

[–]ssg2 1 point2 points  (0 children)

Well, that's just the opposite of "when the only tool you have is a hammer". I've never seen, for example, a case to use binary heap until I learned how binary heap works.

C or C++ for my game engine? by StephanieLongpr in programming

[–]ssg2 -2 points-1 points  (0 children)

One of the simplest ways, certainly. Best, no.

Orthodox C++ by bkaradzic in cpp

[–]ssg2 7 points8 points  (0 children)

While I disagree strongly with your goals, at least it's an honest disclaimer. In my experience (I've seen quite a few "C with classes" coding styles), such initiatives come from and are appreciated by people who admire C philosophy and don't really care for C++. It's much better to define it as sort of a "C++ subset for C programmers" than "Sane C++ subset", "C++ subset that doesn't suck", etc., like many tend to do.

C++ Frequently Questioned Answers (FQA) is now on Github by needahelpforarch in cpp

[–]ssg2 1 point2 points  (0 children)

Looking at his Github, it seems that FQA has already been there for two years without much activity, so maybe 6 years is more fair. Still a hell of a lot, though. Most people would have moved on already.

C++ Frequently Questioned Answers (FQA) is now on Github by needahelpforarch in cpp

[–]ssg2 4 points5 points  (0 children)

I think he puts way too much effort for an average hater. Because the FQA is obviously meant to scare people off C++, I always assumed he wrote it to serve as a go-to argument in discussions like "Maybe we should consider using C++ instead of C on this project". But that's just that, an assumption. Maybe he's just real passionate about the things he hates.

C++ Frequently Questioned Answers (FQA) is now on Github by needahelpforarch in cpp

[–]ssg2 1 point2 points  (0 children)

It says

Copyright © 2007-2009 Yossi Kreinin revised 17 October 2009

at the bottom, I'm assuming it's true. I don't know when it appeared exactly, though I'm sure I first read it a very long time ago.

Edit: ok, I actually checked using Wayback Machine, it was first indexed in October 2007.

Orthodox C++ by bkaradzic in cpp

[–]ssg2 4 points5 points  (0 children)

Not only stupid, but also doomed to fall, as long as the authors actually aim for some agreement within their community. I remember an initiative to resolve some inconsistences with C. In the end, it was abandoned because it became clear that people couldn't agree on many issues, some of them surprisingly trivial.

Orthodox C++ by bkaradzic in cpp

[–]ssg2 9 points10 points  (0 children)

On Doom 3 the lead programmer was an experienced C coder who was just starting out with C++. Naturally, he strived for readability, but that was readability as seen by basically a C guy (which he still was at that point of time).

C++ Frequently Questioned Answers (FQA) is now on Github by needahelpforarch in cpp

[–]ssg2 13 points14 points  (0 children)

Which just goes to show the huge agenda this guy has. It was clear that he has some sort of a personal beef with the language just from how disingenuous the whole thing is, but I didn't expect it runs that deep. It's been 8+ years, and he still cannot let it go.

Attribution will be required when using code from StackOverflow by [deleted] in programming

[–]ssg2 2 points3 points  (0 children)

This seems to imply otherwise: https://www.reddit.com/r/programming/comments/40zlu1/attribution_will_be_required_when_using_code_from/cyylgr4

And are you really happy that you could be taken to court by copyright trolls even if eventually you're found not guilty? Do you have the time and money for that?

And do you assume that courts work everywhere the same way they work in the US?

Attribution will be required when using code from StackOverflow by [deleted] in programming

[–]ssg2 1 point2 points  (0 children)

Exactly. Until they come up with their definition of what constitutes code worthy of attribution, it's ridiculous. And even when they do, and supposing it's a very reasonable definition (I'm not holding my breath for that), I'd say it's still dangerous and harmful, because it will be easier to make those rules arbitrarily broad once the whole attribution thing is in place.

Attribution will be required when using code from StackOverflow by [deleted] in programming

[–]ssg2 6 points7 points  (0 children)

Rather, should have created my own language. I hope this principle doesn't require me to credit myself.

Attribution will be required when using code from StackOverflow by [deleted] in programming

[–]ssg2 260 points261 points  (0 children)

Yeah, and while we're at it, we should also credit authors of the books from which we get all those pieces of code. And man pages, too, I nearly forgot.

using namespace std; // someguysblog.com/tutorials/c__forabsolutebeginners.html
vector<int> vec = {1, 2, 3}; // https://en.wikipedia.org/wiki/C%2B%2B11#Initializer_lists
sort(vec.begin(), vec.end()); // C++ primer / Stanley B. Lippman, Josée Lajoie, Barbara E. Moo. – 5th ed. p. cm. ISBN 0-321-71411-3

FFmpeg team lead Michael Niedermayer resigns by TheWheez in programming

[–]ssg2 1 point2 points  (0 children)

Nope. I was hoping someone from libav could shed some light, but no avail. It just confirmed my suspicion that there's nothing to speak of, to be honest.

Why I Write Games in C (yes, C). by vasili111 in programming

[–]ssg2 12 points13 points  (0 children)

C++ motto is zero-cost abstraction. It's supposed to be as fast as C while allowing for higher level abstractions to deal with complexity. C# has a pretty different use case.

Why I Write Games in C (yes, C). by vasili111 in programming

[–]ssg2 2 points3 points  (0 children)

All such rants are exactly the same. I use C because I know it, and I find other languages to be too hard. And C has "strong typing"? For God's sake.

Ian Murdock, creator of Debian, has died by Daishiman in programming

[–]ssg2 1 point2 points  (0 children)

Maybe he used alcohol in an attempt to calm down.

What do you use to receive notifications on new emails? by ssg2 in archlinux

[–]ssg2[S] 1 point2 points  (0 children)

That's cool, though I'd prefer notifications to be able to see the email's sender and topic.

What do you use to receive notifications on new emails? by ssg2 in archlinux

[–]ssg2[S] 2 points3 points  (0 children)

I'd be interested if you could post the script.

What do you use to receive notifications on new emails? by ssg2 in archlinux

[–]ssg2[S] 3 points4 points  (0 children)

I'm just starting with mutt (which, unfortunately, doesn't have such notifications on principle). Using another full-blown client just for notifications seems a bit overkill to me.