Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

Comment: Re:How much is it C++ and how much the compilers? (Score 1) 757

by david.emery (#49228375) Attached to: Was Linus Torvalds Right About C++ Being So Wrong?

Two C++ programmers will argue, 'What will my compiler do with this code?"

You have a very good point, but that's less about the language and more about the compiler. Arguably the most broken compiler was (and likely still is) Microsoft's Visual C++.

But somehow C# is "fixed". LOL.

I argue the exact opposite! C++ the programming language leaves way too many decisions to the compiler implementer. A better specified language, such as Java, Ada, Eiffel, etc, doesn't have that problem of different compiler interpretations of the standard.

Comment: Re:How much is it C++ and how much the compilers? (Score 5, Interesting) 757

by david.emery (#49228313) Attached to: Was Linus Torvalds Right About C++ Being So Wrong?

Bad programmers can produce bad code in any language, including one as well/thoroughly specified as Ada. The difference, though, is that what that code actually does is less subject to interpretation by the compiler.

I've observed that two Ada programmers will argue, "Is this program legal?" If the program is legal, they both -know- what the compiler will do (modulo the rare compiler/optimizer bug, which was usually caught through the stringent compiler validation.)

Two C++ programmers will argue, 'What will my compiler do with this code?"

Comment: Re:A '70s idea whose time is long past (Score 1) 564

by david.emery (#49173441) Attached to: Why We Should Stop Hiding File-Name Extensions

An OS could choose to make these attributes protected, i.e requires 'sufficient privilege' (e.g. root) to change.

The file extension is not "simple and descriptive" for a file type you've never seen before. Hence the existence of sites that translate those TLAs into a description, often overloaded, of what they might mean.

The other problem is that the file extension conflates content and implicit creator/handler. A text file is a text file, there's nothing special about NotePad, SimpleText, EMACS or (shudder) vi as the creator/handler for text files.

Comment: A '70s idea whose time is long past (Score 1) 564

by david.emery (#49171905) Attached to: Why We Should Stop Hiding File-Name Extensions

The idea of using file name extensions as a means to denote content/application association dates to the 1970s (or even earlier). It's an idea that deserves to die, along with Disco music.

Mac OS 9 and earlier got the OS/file system mechanisms right, with two file attributes. One denoted the contents of the file, and the other denoted the default (usually creating) application.

The challenge for OS designers is how to present this information to the user in some meaningful way. Cryptic text strings at the end of file names aint' it! And the ease by which these can be changed (particularly by malicious programs) are a bug, not a feature. If there's a way to prevent these attributes from being mis-applied/forged, that would be a real accomplishment.

Comment: Until Sony caved, yes.... (Score 2) 589

by david.emery (#48621889) Attached to: Top Five Theaters Won't Show "The Interview" Sony Cancels Release

I was planning to go see this, not that I'm interested in the movie, but to show that I won't kow-tow to terrorists and extortionists. But since Sony has caved by deferring its release, Sony has joined the ranks of the chicken-droppings.

Several sites have called for Sony to release this on the Internet, and that's what I think they should do. And someone needs to make "we don't negotiate with Young Weasel" stickers with Kim Jong Un's face in the background.

Don't be irreplaceable, if you can't be replaced, you can't be promoted.

Working...