Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment OO is not a property of the language. (Score 1) 200

C++ rewards good design but brutally punishes poor designs.

You hit the nail on the head, somewhere in the early 90's, language vendors stopped claiming "Our language supports OO concepts" and started claiming "Our language is OO".

The first C++ compiler I used professionally was Wacom's (circa 1991). Back then the Watcom C++ extensions were not part of the language, they were implemented with a bunch of C macros pulled in with include files, the macros themselves were riddled with goto (another macro) statements. I still have nightmares....

The fact is any general purpose language can be used to implement an OO design because OO is not about language features, it's a design methodology, or at least that's what I was taught when studying for my CS degree in the late 80's. As my smalltalk lecturer pointed out at the time, most of the examples in K&R's "The C language" are also great examples of OO design that were written long before the term OO was invented.

Disclaimer: These days I spend much more time tying spaghetti balls with different flavoured source together than I do trying to untangle the individual gordian knots.

Comment Re:What's the difference between China and EU? (Score 2) 222

so you're ok with child porn and death threats?

can i take photos of you having sex with your significant other and put it on a billboard in your hometown? it's just free speech dude

everything has limits. including free speech. not because i say so, but because of simple logic and reason: it ends where it impinges on the freedoms of others. classic example: yelling fire in a crowded theatre

the fact that i recognize that freedoms are not boundless, but logically constrained by other people's freedoms, does not make me an authoritarian, it just makes me smarter than you

Comment Re:Ppl who don't know C++ slamming C++ (Score 5, Insightful) 200

Well it's been many, many years since I've used it, which was back in the late 80s and early 90s. My impression from this time is that C++ is unquestionably a work of genius, but that I didn't particularly like it. Part of that is that we didn't really know how to use it effectively. In that era most object oriented programmers used concrete inheritance way too much. Part of that is due to aspects of what we thought an OO language should have that turned out to add complexity while being only marginally useful in practice (e.g. multiple concrete inheritance and operator overloading).

But in terms of meeting its design goals C++ is a tour de force of ingenuity -- even if some of those goals are questionable by today's standards. The very fact that we know some of those features aren't necessarily ideal is because they were taken out of the realm of academic noodling and put into a practical and highly successful language that could tackle the problems of the day on the hardware of the day. It's hard to overstate the practical impact of C++ on the advancement of both theory and practice of software development.

Any prize for contributions to OO programming pretty that didn't include Stroustrup in its first recipients would be dubious.

Comment Re:I have an even better idea (Score 1) 304

You don't have a right to be able to afford anything. At least in any society beyond pure communism - which has never existed in groups of more than say, 100.

That is untrue. For example, food stamps are all about ensuring everyone can afford food.

Also, Cold War is over and you won. Congratulations. However, it also means that the Red Scare is no longer an effective rhetoric. Get over it already.

Comment Re:I have an even better idea (Score 0) 304

Driving isn't a right, it's a privilege.

No, it's not. Like the parent said, it's a necessity. Banning people from doing whatever they must to survive is neither effective nor reasonable. All you get is yet another class of outlaws. Who'll be driving the cheapest, most dangerous cars they can find, should "automatic impoundment" actually become a rule.

I've paid for that privilege my entire adult life, maintaining my registration, my insurance, and my license despite having no at-fault accidents. I expect others to do the same.

But they won't. You can punish them or try to minimize the damage caused by them, but not both. Such is life.

Comment Re:I have an even better idea (Score 3, Informative) 304

I have an even better idea: let's find a way to fix human beings so that they're perfectly consistent in their behavior.

While certainly taking demonstrably bad drivers off the road is a no-brainer, even good drivers have lapses. My teenaged son is learning to drive, and whenever someone does something like cut us off I make a point of saying we can't assume the driver did it on purpose, or did it because he was an inconsiderate or bad person. Even conscientious and courteous drivers make mistakes or have lapses of attention.

It's the law of large numbers. If you spend a few hours on the road, you'll encounter thousands of drivers. A few of them will be really horrible drivers who shouldn't be on the road. But a few will be conscientious drivers having a bad day, or even a bad 1500 milliseconds.

Comment Re: Well (Score 1) 222

go to google news

type in "shooting"

and let's dip into the ocean today

http://www.newsday.com/news/ne...

http://www.post-gazette.com/lo...

http://www.ketv.com/news/omaha...

http://www.twincities.com/crim...

http://miami.cbslocal.com/2015...

http://www.whsv.com/home/headl...

etc.

etc.

tomorrow it will be another collection of dozens of shootings

every fucking day in the usa. oh it happens in other countries. at a much lower rate. because they make guns harder for douchebags to get

the usa enjoys no amazing lower rate of rape, robbery, assault, etc., because of owning lots of guns, as compared to our social and economic peers, we are no crime free paradise. so owning a gun doesn't confer magic anti-crime properties. it does confer something though: a massive increase in homicide. pointlessly. needlessly. every little confusion or altercation in the usa has to lead to death. and this is somehow better

completely unnecessary, completely fucking stupid, and completely ok according to my fellow countrymen who are fucking braindead douchebags

we need gun control in the usa badly

and we are going to get it

you can't ward off logic and common sense with stupidity, lies, and propaganda forever

Comment Re:Well (Score 1) 222

in London, you get in a fight and you get a broken arm or a broken nose

in New York City, you get in a fight and you get a body bag

whenever the homicide rate of the USA is compared to other Western countries, NRA propagandized morons change the subject and counter about *violence*. as if *violence* is the same as *homicide*

frankly, i'd love the violence rate in the usa to go up and the homicide rate to go down. because a broken arm is not a body bag

and you get that with better gun control

but too many of my fellow americans of the low iq and propagandized variety believe for some fucking ignorant reason that every little misunderstanding or conflict has to escalate to death

and that's exactly what we get:

http://www.conferenceboard.ca/...

rape? robbery? violence? about the same as our social and economic peers

easy guns do not protect us from those things. they just mean tens of thousands of extra body bags every year

if anything, owning a gun increases the chance of mortality for you and your loved ones, because you've raised the stakes in every little act of confusion/ misunderstanding/ anger/ accident/ etc. to death

Slashdot Top Deals

The hardest part of climbing the ladder of success is getting through the crowd at the bottom.

Working...