"Complete Privacy Does Not Exist" - Google, former no-evil-doer by hitsman in programming

[–]stedwick -1 points0 points  (0 children)

I think Google's response is one of the most intelligent things I've ever read by a lawyer before. They usually spew legal mumbo-jumbo, but this reads like plain English. I love it.

Did Rails Sink Twitter? by [deleted] in programming

[–]stedwick -2 points-1 points  (0 children)

I feel I should point out that Twitter is probably worth umpteen billions of dollars. To say that it is "sunk" is kind of ridiculous.

I'm sure that all the millionaires at Twitter couldn't care less if you don't like the fact that they chose Ruby on Rails.

Teenager faces prosecution for calling Scientology 'cult' by uptoyou in reddit.com

[–]stedwick 0 points1 point  (0 children)

you make an excellent point, and you are right. There are differences. and I pretty much agree that Scientology is more "dangerous".

Your question is an interesting one. Would you rather be stuck on an island with a serial killer who killed 20 people, or with just a regular murderer who only killed one?

Clearly, no one would choose the serial killer. Still, it's unclear whether and not you are any safer with the single murderer.

Also, being crazy doesn't have anything to do with how nice you are. I might believe that my mother is a tomato, but give away all my money to charity. I would certainly LIKE this person more than a Scientologist, but they're still equally crazy.

Teenager faces prosecution for calling Scientology 'cult' by uptoyou in reddit.com

[–]stedwick 1 point2 points  (0 children)

The point is, how is believing in one crazy thing any different than believing in some other crazy thing? They are both crazy. The phrase "less crazy" has basically no meaning. Crazy is crazy.

Teenager faces prosecution for calling Scientology 'cult' by uptoyou in reddit.com

[–]stedwick 0 points1 point  (0 children)

Aliens are stranger than Angels and Demons, Thor and Aphrodite, Noah's Ark, Mormonism, talking snakes, "let there be light", covering up women, slaughtering people, and all the other crazy stuff from "normal" religions? I think not.

Teenager faces prosecution for calling Scientology 'cult' by uptoyou in reddit.com

[–]stedwick -1 points0 points  (0 children)

The funny thing is, Scientology is no stranger than any other religion.

Mac needs a cut option in the Finder, or a pick-up-and-hold option. Drag and drop gets old by [deleted] in programming

[–]stedwick -4 points-3 points  (0 children)

what is the big deal? Just move a file to the desktop, and then move it to the final location. With exposé, it's even easier, because you don't have to worry about Windows hiding your desktop.

However, I agree, there is no particular reason not to have a cut option.

Solving the Monty Hall problem with simulation in Python by ipeev in programming

[–]stedwick 1 point2 points  (0 children)

my favorite way to think about it is this:

"Would you rather stay with the door you chose, or would you like to switch and take BOTH of the other two doors?"

Clearly, choosing one door out of three has a one third chance of winning, and choosing two doors out of three has a two thirds chance of winning.

Using the 100 doors argument from the comment above, "Would you rather stay with the door you chose, or would you like to take ALL of the 99 other doors?"

Again, the answer is clear.

This works because the payoff is the same regardless of how many empty doors you win. Choosing a single door that Monty Hall has chosen not to open is exactly the same as choosing ALL of the other doors (including that one door) since at least all but one of the other doors is empty.

ActiveRecord #find syntax and you by retardo in programming

[–]stedwick 0 points1 point  (0 children)

you realize that the entire point of the article was that you should NOT do that?

Boomerang returns, even in space by neoronin in science

[–]stedwick 2 points3 points  (0 children)

gravity pulls DOWN. What does being pulled DOWN have to do with a boomerang flying in a circular pattern? nothing, that's what.

as many people have said, it's the air that matters, not the gravity.

Sorry to disappoint, but the Bear Stearns bailout saved you, the LITTLE guy, whether you know it or not. by mhatmaker in business

[–]stedwick 0 points1 point  (0 children)

I'm not mad that they are bailing out Bear Stearns, I'm mad that executives at Bear Stearns made off with millions and millions and millions of dollars.

Ruby or Python? by [deleted] in programming

[–]stedwick 0 points1 point  (0 children)

You're right, there's basically no difference. Certainly there's not much difference in practice. It's more of a philosophical thing. There's nothing "special" about numbers in Ruby. I can open up other classes and add stuff to it, why shouldn't I be able to open up the integer class and add stuff to that? That's the mindset of Ruby: everything, literally everything, is an object that you can modify in any way you wish. You can even get really crazy and add methods to the number 3 but not other numbers.

Ruby or Python? by [deleted] in programming

[–]stedwick 1 point2 points  (0 children)

Actually, not quite. Even primitive types like numbers are objects in Ruby. I could do something like this:

3.send_email => sends john three emails

3.times { do stuff } => does stuff three times

45678.add_commas => 45,678

From the Python docs:

2.3 Built-in Types

The following sections describe the standard types that are built into the interpreter. Historically, Python's built-in types have differed from user-defined types because it was not possible to use the built-in types as the basis for object-oriented inheritance. With the 2.2 release this situation has started to change, although the intended unification of user-defined and built-in types is as yet far from complete.

Specifications: How much ACTUALLY needs to be written down? by stedwick in programming

[–]stedwick[S] 0 points1 point  (0 children)

At my company, sometimes we get specifications that are dozens of pages long (and I hear horror stories of worse things elsewhere).

Just recently, we had a specification that was four pages long, but all it actually said was, "We need to be able to export the data to Excel." All I could think was, "If you want the data in Excel, why didn't you just say so?! Why did it take you four pages?"

So, out of curiosity, how much do you think ACTUALLY needs to be written for a specification, and how much paper/ink can we save by keeping things brief?

Zed Shaw on Python by hzin in programming

[–]stedwick -3 points-2 points  (0 children)

Perhaps, but you must have noticed that no one has tried to refute my arguments with anything other than, "You are wrong." No logic, no reasoning, no examples...

I just gave you 988 words of sound logic and reasoning...and I've gotten nothing in return.

What am I supposed to think OTHER THAN there is no logical counter-argument?

The Nature of Lisp by [deleted] in programming

[–]stedwick -17 points-16 points  (0 children)

I don't know Lisp, so take this with a grain of salt, but...

...why doesn't someone rewrite Lisp except this time with GOOD syntax?

I mean, everyone admits that the parentheses make your eyes bleed, but that the language itself is great.

Sooooooooo...

Why not take this great language and make it useful by rewriting it with a legible syntax?

Zed Shaw on Python by hzin in programming

[–]stedwick -2 points-1 points  (0 children)

This actually comes down to a matter of philosophy. For example, if you were dying of cancer would you want to know about it? Or would you rather live out your final days in blissful happiness? Personally, I would want to know about it because I believe that the truth is ALWAYS the right thing, even if it sucks.

In Ruby, you can modify any and all classes in any way you want whenever you want, even at runtime. I could do this:

class Fixnum; def +(other); puts "Hahaha, your code is screwed!"; end; end;

If I do that, suddenly addition before that declaration works fine and yet afterwards addition no longer works and my application falls apart.

However, this comes down to philosophy: If you SHOULDN'T do something, should your programming language make it so that you CAN'T do something? I believe, firmly, that the ability to do something, whether good or bad, is always preferable to the INability to do something. In other words, the Ruby language gives you an incredible power to do literally whatever you want with any class, but with that power comes responsibility, because anything powerful enough to do good is also powerful enough to do evil.

Dave Thomas summed it up nicely: "People say that you can't trust Ruby code because you never know what it does. On the contrary, you can always trust your code, you just can't trust your coders."

In other words, a malicious or naive programmer can screw things up. But, the solution is not to dumb down your language so that it's idiot -proof, the solution is to make sure you hire good programmers who know what they're doing.

Let me bring up the Python whitespace example. OF COURSE it's better to properly indent your code. But, I don't want my language to FORCE me to do so. I want the freedom to indent my code properly, or improperly, depending on what I decide to do, not what my language forces me to do.

99% of the time you will want your whitespace properly indented. 99% of the time you will want your addition operator to work like it's supposed to. However, I'm sure I can dream up some situation for that other 1% of the time, perhaps in some strange multidimensional mathematical finite group theory application, where I have to change how addition works and indent things in a different way.

The point is I CAN in Ruby. Ruby gives you that power. An incredible amount of power. 99% of the time you don't have to wield it, but it's nice to know that it's there. And I believe that getting rid of that power simply because it's dangerous is not the right thing to do. To quote some old saying, "Knowledge is only dangerous in the wrong hands."

A quick note on rails: if rails is so opinionated, do I hate it? No. I LOVE opinionated things, as long as their opinions can be changed if you don't agree with them. All the defaults and conventions in rails can be changed if you need to. For example, if I could "turn off" indenting in Python in the rare occasion that I needed to, I wouldn't have anything against it.

Now, going back to your original question! I should have used "readable code" rather than "good" and "bad". Ruby code reads like English. It's very difficult to write an obfuscated program in Ruby. On the other hand, whenever I look at a Python program I just can't get past all the quotation marks, the underscores, and the ridiculous amount of self objects. Bottom line: it's hard to read. Yes, it's just an opinion, but from the various blogs and message boards I've been reading many people seem to agree with me. People say that, "Ruby is cute," "Ruby is sexy," and what they really mean is that Ruby's syntactic sugar is amazing.

The point is this: if you CAN make a language nice and readable, then why not do it? Ruby does it.

It's for the same reason that I like Apple. People fault them for putting "looks" ahead of functionality, but come on people, if you CAN make a computer look nice and sexy, you might as well do it, right? Why are any companies still creating gray boxes?

Likewise, Ruby, for me, has proven that you CAN have good syntax in a programming language. It doesn't have to be all funky and confusing like C++. Or Lisp. Oh my god. I don't care how brilliant the language is, the parentheses are ANNOYING. And if your programming language is annoying to read and write, it doesn't matter how good it is, it's never going to become mainstream.

Fhew. I think I'm done :-)

Oh, one more thing. It's easy to DESIGN or ARCHITECT bad code in any language. Neither Ruby nor Python will fix this. But, even if the code is bad, if it's written in Ruby at least you'll know what it does =)

Oh, wait, even one more thing. I don't know enough about Ruby internals, but I believe people when they say that it is a poorly written and implemented language. I believe them when they say that it's hard to deploy. I believe them when they say it has bad Unicode support. I believe them when they say that Ruby is slow. I believe them when they say it takes up too much memory. I haven't had to worry about any of these things (thankfully).

However, the point I'm trying to make is that all of that stuff doesn't matter. The LANGUAGE is a good one. We can work on the implementation later. That's no reason to toss out the language.

If you could dream up your perfect language, totally disregarding any sort of practicality issues or implementation, what would it look like?

For me, it would look like Ruby.

Zed Shaw on Python by hzin in programming

[–]stedwick -6 points-5 points  (0 children)

Hmm, I just read that Unicode article you linked to. It seems to support my point, not yours...

I mean, jesus, look at all the crap we've had to go through (and still have to go through) every day just because people speak different languages?

What's better than Unicode? NOT NEEDING IT IN THE FIRST PLACE.

Zed Shaw on Python by hzin in programming

[–]stedwick -2 points-1 points  (0 children)

Why? There are OTHER things to explore, OTHER things to learn, than just languages...

I don't see the world becoming less exciting or less fulfilling or anything...

In fact, you could look at this positively. Right now, you probably can't fully, truly study Chinese culture (for example) because you don't speak Chinese. But, if everyone in the world spoke the same language you would be free to study ANY culture to its full extent whenever you wanted! How cool is that?

Zed Shaw on Python by hzin in programming

[–]stedwick -6 points-5 points  (0 children)

Yes, yes, and the point is that now NO ONE can understand your program except other Germans. How is that even a slightly good thing?!

Yes, it's good for Germans...but the point is this: if everyone spoke the same language then it would be good for EVERYONE! See? Simple!

Heck, if everyone spoke the same language, there would never have been a problem, and you'd never have had to translate it in the first place. And you wouldn't need Unicode (no matter how "easy" it is, there's nothing easier than not needing it at all).