Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:And yet ... (Score 1) 468

And why are the climate change alarmists vilifying this study?

And where exactly is this being 'vilified'? All I see is a study that accepts mainstream climate science and offers another data point about climate sensitivity. It's at the lower end of the range accumulated from previous studies but nevertheless consistent with that range. It remains to be seen whether this is more accurate than the 2.5 degrees often assumed as the most likely climate sensitivity value. If it is, then that's a bit of good news but we're not off the hook by any means.

Comment Re:One good reason... (Score 3, Insightful) 793

It's clear that you don't really get a lot of this stuff. Despite that, you seem to be in some position where you can review and reject other people's code. Your remarks would be hilarious if I didn't think you were serious. For example:

Can't say I've ever wanted to perform a set difference. But if I did, there's be a method difference in the class Set, and it would take the second set as a parameter and spit out the result.

The whole point about generic algorithms is that you only have to write them once and can then use them with all sorts of containers, including ones that might not have been written yet, as long as the containers satisfy the minimal requirements of the algorithm. So for example, the 'set' in set_difference does not refer to the container type - it is a description of what the algorithm does. The algorithm does not demand a set; you can equally apply it to a sorted vector. Furthermore, the two input sequences to set_difference do not even have to be the same type as long as their elements are compatible, so I can apply it to a set of strings and a sorted vector of strings if I want to. By your argument, I would have to have a set class with a difference method, and a sorted vector class with a difference method. And then if I wanted set's difference method to work with sorted vectors and other compatible sequences, how would that work? I would have to write it as some sort of generic member function anyway.

Same with a sort- the class would have a sort function. I would reluctantly not bounce using the sort function of the STL since it's so useful, but it's still not the right way of doing things. And it's much more complex than it should be, since the calling code has to worry about things like passing in comparators, when that should really be the job of the sort function.

So what you are saying is that instead of having a sort algorithm implemented once, I need to reimplement that algorithm in every class that I might want to sort. So either I guess that I might want to sort it at the time of writing it or, if I didn't get that right, I have to go back and modify the class. Compare that with the non-intrusive sort algorithm. How is what you are proposing good software engineering practice by any stretch of the the imagination? And I don't understand your point about comparators. In most cases a type you want to sort probably defines a less than operator, which is all you need and you don't need to provide an explicit comparator. It's only when you need to do something special that you need a comparator. How would the sort member function be better?

Here's a hint: go and look up the word 'orthogonal'. It's a key concept in understanding the STL.

Comment Re:Pollution not a valid argument for the left (Score 1) 545

You are completely missing the point. CO2 is a greenhouse gas and O2 and N2 are not. It is the absolute amount of CO2 in the atmosphere that is important - its effect is not diluted by the rest of the atmosphere! Having said that, I can understand why people get confused by this. I believe it results from the conventional use of ppm to express how much CO2 there is.

Submission + - Same binary file on two different architectures? (jmp.no) 1

skurk writes: Is it possible to have a binary file run on two different architectures, without modifications? In this experiment, a binary file is crafted to run on 32-bit x86 and a Commodore 64. Even though this is just a proof-of-concept, can this serve a useful purpose on other platforms?
Science

Submission + - Engravings of Female Genitalia May Be World's Oldest Cave Art (sciencemag.org) 1

sciencehabit writes: Since their discovery in 1994, the spectacular paintings of lions, rhinos, and other animals in southern France's Chauvet Cave have stood out as the oldest known cave art, clocking in at about 37,000 years old. Now a team working at another site in the south of France claims to have discovered what appear to be engravings of female genitalia that are as old as or older than Chauvet, possibly making them the world's most ancient cave art.

Comment Re:Both of Alex Martelli's books are better IMHO (Score 1) 163

Python in a Nutshell ...

This would be a great book were it not for the fact that it has just about the worst index I have seen in a technical book, let alone a reference book!

I agree with you about Learning Perl vs. Learning Python. The former was a short, to the point, book that covered the basics, got me going with the language. From there I progressed to Programming Perl for the details, and the excellent Perl Cookbook for the how-to recipes. I have found the Python equivalents to be disappointing. I read an earlier edition of Learning Python but found it badly written and going into slightly bizarre amounts of detail at certain points but not explaining other things very well. I also have a newer edition that I picked up cheap but haven't read yet and it looks like it might be better but now seems to have got too big.

It's strange really, as Python is so much cleaner than Perl so one might have expected that to make it easier to write books about it.

Comment Re:Here we go again... (Score 1) 3451

As far as I understand it, microevolution is very provable & has been observed; macroevolution (which is what you're probably talking about), on the other hand and IMHO, has not been observed. This is fairly controversial & I'm not up on the latest research, so if somebody's got some proof here, I'd be interested to hear it.

As I understand it, the terms "microevolution" and "macroevolution" are unknown/undefined in science and were invented by creationists to get around the fact that evolution is observable. If you are going to use such terms you need to provide precise definitions of what they mean.

Slashdot Top Deals

Saliva causes cancer, but only if swallowed in small amounts over a long period of time. -- George Carlin

Working...