Beta

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Ask Slashdot: Choosing a Web Language That's Long-Lived, and Not Too Buzzy?

godefroi Re:Perl still works, and PHP is fine (536 comments)

HTML isn't a programming language, it's a text markup (i.e. text formatting) language. SGML is a markup language. OpenGL is an API, not a programming language.

If HTML is a programming language, and creating HTML "pages" is "programming", then aren't you programming as soon as you turn on "reveal codes" in WordPerfect? How about "reveal formatting" in Word? Are you programming now just because you can see the formatting tags as you type text?

about a month ago
top

Windows 9 To Win Over Windows 7 Users, Disables Start Screen For Desktop

godefroi Re:hmmmmm (681 comments)

Runs OSX?

about a month ago
top

Windows 9 To Win Over Windows 7 Users, Disables Start Screen For Desktop

godefroi Re:I won't upgrade. (681 comments)

Like what hardware, exactly? I've heard this argument, but I personally don't have a single piece of hardware that I'd like to use but can't. This is an honest, curious question.

about a month ago
top

Code Spaces Hosting Shutting Down After Attacker Deletes All Data

godefroi Re: The cloud (387 comments)

How about extortionists? Are they moral actors? I don't see how going from extortion on the internet to rape of a woman isn't shifting the goalposts.

I think Q put it best, when he said, about the internet:

"It's not safe out there. It's wondrous, with treasures to satiate desires both subtle and gross. But it is NOT for the timid."

about a month and a half ago
top

Former FCC Head: "We Should Be Ashamed of Ourselves" For State of Broadband

godefroi Re:It's a problem... (118 comments)

Ah, that's not what unions do. They guarantee that no matter how poorly you do your job, you can't be fired, because that's not fair. Pride in your work and building a better future is a whole other thing.

about a month and a half ago
top

TrueCrypt Website Says To Switch To BitLocker

godefroi Re: Fishy (566 comments)

Some random AC claiming to be informed by someone claiming to have access to master keys, it's not exactly a reliable source, is it? ;)

about 2 months ago
top

TrueCrypt Website Says To Switch To BitLocker

godefroi Re: Fishy (566 comments)

I'm a senior TrueCrypt developer, and I have access to the Master Keys that can unlock any TrueCrypt encrypted data.

Now do you feel better?

about 2 months ago
top

C++ and the STL 12 Years Later: What Do You Think Now?

godefroi Re:Feels Dated (435 comments)

strstr() is fine, yes, but what about strncpy()?

about 3 months ago
top

C++ and the STL 12 Years Later: What Do You Think Now?

godefroi Re:Feels Dated (435 comments)

"Very efficient" is still much less efficient, because on 16-bit characters, you simply split at char_count * 2 bytes, where with UTF-8, you have to examine every byte up to char_count to see if any of them are part of a surrogate pair.

about 3 months ago
top

C++ and the STL 12 Years Later: What Do You Think Now?

godefroi Re:Feels Dated (435 comments)

The way I understand it is that UCS-2 (not UTF-16, because UTF-16 supports surrogate pairs) gives significant performance advantages for operations like substring(). That's why lots of platforms use it internally (.NET, Java, others I'm sure).

about 3 months ago
top

Ask Slashdot: How To Back Up Physical Data?

godefroi Re:Well.. (245 comments)

Yes, because it's better than leaving said charred remains to rot. Charred remains smell bad, foreign or not.

about 3 months ago
top

Ask Slashdot: System Administrator Vs Change Advisory Board

godefroi Re:Nonsense (294 comments)

If that's true, then it's great for him. It means he'll be able to hire more subordinates, thereby climbing the corporate ladder.

about 3 months ago
top

Ask Slashdot: System Administrator Vs Change Advisory Board

godefroi Re:Nonsense (294 comments)

The OP doesn't see the procedure as a liability. That's a lie. The OP sees the CAB as a threat to his authority. He sees the servers as "his", and this will remove some of the power he has over them.

The OP needs to understand that the servers belong to the company, and that the company gets to decide how patches are approved and administered. If the job changes into something he's no longer interested in doing, then he needs to move on.

Being an asshole administrator might seem like fun, but usually, in "normal" businesses, it gets you fired.

about 3 months ago
top

Python 3.4 Released

godefroi Re:Interoperating with invalid data (196 comments)

Well, yeah, but that would completely change the way these things work. What if your split() worked on code units, and you broke up a code point? That certainly wouldn't produce results that anyone would consider optimal, or even useful.

You can continue to pretend that byte arrays are strings, and strings are byte arrays, but you're not going to get anywhere. The rest of the world decided that we want a useful abstraction over the underlying data structure. When we're working with strings, we care about characters, not bytes.

about 4 months ago
top

Python 3.4 Released

godefroi Re:Interoperating with invalid data (196 comments)

Maybe you should design your own platform where strings will be represented internally as UTF-8. It would be an interesting exercise.

about 4 months ago
top

Python 3.4 Released

godefroi Re:Interoperating with invalid data (196 comments)

Pretty much every string operation is going to require decoding. Things like substr(), replace(), split(), join(), etc are all going to require decoding the string.

about 4 months ago
top

Python 3.4 Released

godefroi Re:Interoperating with invalid data (196 comments)

Hey, I figured out what your problem is, where you went wrong. You think that a string and a bunch of bytes are the same thing. They're not. If you have a bunch of bytes, treat it as a bunch of bytes. If you have a string, treat it as a string.

Java, for example, stores strings internally as UTF-16 (or UCS-2, opinions differ). .NET stores them internally as UCS-2.

This is also why there's a difference between CHAR and NCHAR in databases.

There is not a one-to-one mapping from a given string to a given set of bytes, because it depends on how you encode the string. Furthermore, some encodings have constraints on what input can produce a valid string. ASCII (plus non-standard high-ASCII) is not one of these encodings. UTF-8 (and all other Unicode encodings) are.

However, PEP 393 should've solved your particular problem (in Python 3.3), by allowing you to store these unicode-invalid "strings" internally as ASCII. Have fun in code-page land.

about 4 months ago
top

Python 3.4 Released

godefroi Re: and... (196 comments)

There's your problem right there. There are no "tiny mistakes" in UTF-8. Either it's valid UTF-8, or it's not. It's valid XML, or it's not. It's valid JSON, or it's not. It's valid HL7, or it's not. There is no "graceful" handling of invalid data, not in the general case.

Physically possible arrangements of bytes will appear in files, yes, but those files are not necessarily UTF-8.

Oh, and all *my* serious software can handle Unicode just fine (in all its various encodings), because I use a platform that was designed FROM THE START to handle it correctly. It does fail gracefully, which is nice, in the invalid-data case, but nonetheless, garbage-in, garbage-out.

about 4 months ago
top

Gates Warns of Software Replacing People; Greenspan Says H-1Bs Fix Inequity

godefroi Re:Greenspan's right (516 comments)

Well, sure. Just as, however, you (apparently) can't legislate morality (we tried, see prohibition), I believe that you also can't legislate equality.

Even if we pulled down the "1%", we'd simply have a new set of ultra-rich replace them. The fact that the new ultra-rich came from the old ultra-poor would be small comfort. It's human nature to attempt to get wealth and power.

If you're a religious sort of person, of course, you likely have a particular perspective on all this.

about 4 months ago
top

Python 3.4 Released

godefroi Re: and... (196 comments)

If it's not UTF-8, why do you claim it's UTF-8?

That's like arguing that XML parsers should allow unclosed tags, because otherwise, they just throw exceptions and can't be used for serious work.

You're probably the guy we have to thank for "tag soup". Asshole.

about 4 months ago

Submissions

top

Microsoft allows patching of ASP.NET MVC Framework

godefroi godefroi writes  |  more than 6 years ago

godefroi (52421) writes "Microsoft's Scott Guthrie has updated the roadmap for the upcoming ASP.NET MVC framework. As part of his blog post, he mentions this interesting bit (near the bottom):

Starting with this next preview, we are also going to make the ASP.NET MVC Framework source code downloadable as a buildable VS project solution. This will enable you to easily view and debug the ASP.NET MVC Framework source code. We are also going to include a license that permits you to optionally make patches to the ASP.NET MVC Framework source code in the event that you run into a bug in an application you are developing with it.
Microsoft aren't going to allow redistribution of modified source, but it seems that they've moved one step closer..."

Link to Original Source

Journals

godefroi has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?
or Connect with...

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>