Live data from Hacker News

CERN Open Data Portal Demo

opendata.cern.ch

11–13 of 13 posts

Re: CERN Open Data Portal Demo

#11

For those of you who actually are interested in digging in, I have to warn you: ROOT is terrible, really terrible.

Can you elaborate? I think you mean the ROOT analysis framework, right?

It could have been designed much better. One fantastic example that irked me when I used it is its extensive use of global objects. It's been quite a while so I don't remember the exact details, but I recall trying to open a number of files and having that fail because the global file object wasn't properly changed. And note that this was from an example copied verbatim from the internet. I just did a quick look through my comp and I can't find the stuff I did then, but I really doubt it was something as simple as forgetting to close it or call its destructor.

Perhaps part of the issue is that I'm used to programming with normal C++, so _their_ C++ was hard to get used to. For example ROOT expects you to create objects on the heap--I recall ROOT failing when you tried to allocate objects on the stack. Part of it might just be that, I'm used to fantastic, easy to use and well thought out libs like the STL.

Re: CERN Open Data Portal Demo

#13

Earlier quoted context omitted.

Can you elaborate? I think you mean the ROOT analysis framework, right?

It could have been designed much better. One fantastic example that irked me when I used it is its extensive use of global objects. It's been quite a while so I don't remember the exact details, but I recall trying to open a number of files and having that fail because the global file object wasn't properly changed. And note that this was from an example copied verbatim from the internet. I just did a quick look thro…

Yes, the API of ROOT really is terrible in many places. A gradual change is the only way to fix it however since any sharp break will only cause fragmentation.
Post reply on HN