Live data from Hacker News

Wikileaks To Leak 5000 Open Source Java Projects

steve-yegge.blogspot.com

131–140 of 140 posts

Re: Wikileaks To Leak 5000 Open Source Java Projects

#133

Earlier quoted context omitted.

Your argument assumes that you need language-enforced mechanisms in order to define a well-encapsulated API. That is simply not that case, as the many well designed APIs in Python, Ruby, and Lisp can attest (and many poorly designed APIs in Java as well). You can use documentation, conventions, and other mechanisms to define the publicly exposed API so one doesn't have to know the guts. But when I need to deviate fro…

I totally agree that language-enforced mechanisms aren't the only way to get meaningful encapsulation. People can (and do) write good code or bad code in any language. I was just trying to point out that there are both benefits and drawbacks to language-enforced encapsulation and the benefits may be less obvious than than the drawbacks, which are generally more painful.

You have a good point there. You generally have to think about what you are exposing if the language demands it. And I think it is great when a language guides you into doing the right thing. Guides being the operative word.

Given the choice, I'll choose consenting adults. :)

Re: Wikileaks To Leak 5000 Open Source Java Projects

#134
post #78

Earlier quoted context omitted.

The difference between phones, and all other products, is that phones don't work unless you're currently in a business relationship with some telecom or another. It's a bit more like selling someone a nuclear reactor—they're beholden to your rules as long as they have no other source of fissile materials.

Having worked on both telephones and nuclear reactors, I can say for sure they have nothing in common.

The both produce harmful radiation!

Re: Wikileaks To Leak 5000 Open Source Java Projects

#135
post #89
post #43

Earlier quoted context omitted.

But it's not a many to many mapping, that's the point he was making. Lots of languages interop with C, but you can't just import a ruby module into a python script very easily. In fact if you want to link to C libraries from D you have to modify the C header files to turn them into D modules.

I think Microsoft actually did a reasonable job with the "original" COM (ie OLE 2.0 - the stuff that let you put an Excel 95 spreadsheet into a Word 95 document). It had a bit too much bolted on, probably due to its origins in OLE, and I think "dynamic OLE" was a tragic mistake. And its reference counting approach was a lot more appropriate in the early 90s than it is today (where a compacting GC may be the smart cho…

For a compacting GC, you'd have to hunt down a complete set of references from running programs written in unknown languages, with strange errors if the set is underapproximated even once. I'd rather have reference counting.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#136
post #106

I have to say, for me private methods and fields are not a security thing. They are a way to keep the public interface clean and only confront the user with the information they need.

And that's the problem.

There is no reason to use a private/protected method. If the library/class you are using doesn't fulfill the qualifications you want, expand the library, not the code that uses the library.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#137

Earlier quoted context omitted.

Having worked on both telephones and nuclear reactors, I can say for sure they have nothing in common.

The both produce harmful radiation!

That is not even wrong. Look up non-ionising radiation. Either that, or great troll.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#138
post #98
post #28

I like it, but making fun of Java (and Java's "thought leaders") is just too easy. It's like shooting fish in a barrel. With a grenade launcher. Eclipse is another matter: far more ridicule is called for. Far, far more.

Exactly: Or Smalltalk or Ruby for that matter, which both facilitate information hiding via private access. It's great to feel superior, isn't it?

Yeah except in Ruby (I don't know about smalltalk) private access has the loophole of the send method. FreeHouse.send(:open_employees_only_door)

Matz would never deny us of our right to snoop around where we don't belong.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#140
post #103

Earlier quoted context omitted.

Higher rate my foot. Cell phones in Switzerland and Germany are crazy expensive. It costs people like 0.20 cents to call someone with a phone, and I pay like 0.25 cents or something. When I used to have a phone in Germany, I used to spend upwards of 90 euros a month calling like I was used to in the states, where I basically have as much calling as I need for $50 (including tax and all that sneaky bullshit). Cell pho…

Is that 0.25 cents (as written) or 25 cents ?

I hate it when I do that! Obviously 25 cents. http://verizonmath.blogspot.com/2006/12/verizon-doesnt-know-...
Post reply on HN