r/cpp • • Sep 30 '21

Why is c++ community so pedantic in stackoverflow?

Please don’t get me wrong. What i mean is why answer “you need read books”, “you should read the documentation”, or focus on tangent things instead of actually try to answer the questions?

in contrast, here in reddit, i even get job offers when asking questions.

260 Upvotes

177 comments sorted by

View all comments

Show parent comments

14

u/krum Sep 30 '21

let me guess, CORBA?

9

u/loradan Sep 30 '21

I don't remember...it's been a few years. The main part of what I remember was that there was like 5 or 6 files that had to be created for every class you needed.

6

u/petevalle Sep 30 '21 edited Oct 01 '21

The only thing I can imagine is that they were going after hypothetical gains by recompiling less code when a single class method changes. I imagine any such gains would be more than offset by the additional cost of initial compilation as well as the cost of developers having to manage all those additional files...

9

u/Glewisguy Oct 01 '21

Oh God, the company I work for is enamoured with CORBA. Got any material for why it sucks so much?

19

u/lally Oct 01 '21

Umm.. it was completely obsolesced 20 years ago? What does it do that JSON/grpc services doesn't do better?

And what works with it still? What ORB do you just in 2021?

I literally had to check the date on your comment to make sure this discussion wasn't more than 10 years old.

2

u/[deleted] Oct 01 '21

I didn't sell my books on CORBA to Half Price Books. Even $0.10 per book felt like stealing from them.

4

u/FartyFingers Oct 01 '21

There are tons of explanations on the web. The two that I remember when I shit down using cobra in 2002 were: It doesn’t communicate structures that are common in many languages well or at all. It doesn’t scale well when on the surface it should really enhance a distributed system.

The reality in 2021 is that there are a huge number of solutions that should have at least one nearly perfect for whatever problem you are solving. Protocol buffers, thrift, zeromq, rabbitmq, mqtt, and so on.

All of these have modern apis, well supported libraries, lots of docs, etc

2

u/m-in Oct 02 '21

CORBA implementations didn’t do async at all back when it was at the peak of popularity. A request would time out and most implementations would graciously throw an exception your way.

2

u/valdocs_user Oct 01 '21

You know all the problems ORM introduces for talking to a database? Now imagine if it didn't even help with that. Every time someone says, "leaky abstraction," CORBA is like, "hold my beer."

1

u/m-in Oct 02 '21

It solves an imaginary problem rather well, and real problems poorly and almost only by lucky coincidence. There’s nothing you could ask me to do where I’d say “use CORBA”. And I’ve had to read most of the standards produced by the body that spat CORBA out. I won’t mention their name because it can be traumatizing to the more experienced people here. All they do is create elaborate frameworks that give lots of highly paid people excuses not to do real work :/

1

u/RevRagnarok Oct 01 '21

Let's transmit data with CORBA!