Live data from Hacker News

Wikileaks To Leak 5000 Open Source Java Projects

steve-yegge.blogspot.com

101–110 of 140 posts

Re: Wikileaks To Leak 5000 Open Source Java Projects

#101
post #85
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.

In 15 minutes, with 15 euros, I could be out the door and have a new 'business relationship' with a different telecom provider. It's not that big a deal: you just pop in a new sim card. Sure, in the US people have all these locked up phones, but that's the price you pay for getting subsidized hardware.

Indeed, that is the elephant in the corner of the room. One might almost say the typical consumer doesn't understand the difference between free and in speech and as in beer...

Re: Wikileaks To Leak 5000 Open Source Java Projects

#102
post #96

Earlier quoted context omitted.

Not to mention the higher rates, thanks to virtually zero regulation of the telcos here in the US.

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…

How much do you call to get your bill up to 90 euros?

In Finland, 3000 minutes of talk time and 3000 text messages costs about 38 € on a major operator. You can often get a switcher discount to bring the price further down.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#103
post #96

Earlier quoted context omitted.

Not to mention the higher rates, thanks to virtually zero regulation of the telcos here in the US.

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 ?

Re: Wikileaks To Leak 5000 Open Source Java Projects

#104

This reads to me as "let's make all state mutable and remove all indication as to which bits of the code are the interface, and which are implementation details". I like immutability and minimal interfaces, they make it easier to reason about what the code will do, freeing brain cycles to work on more interesting things than "but what if someone modifies foo between invocations of bar". If you need access to a librar…

You've got a point, but I think final class modifier which prevents extension often hinders Unit Testing and never adds much value.

final class modifier is pretty useless.

private final member variables? Invaluable.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#105
post #78

Earlier quoted context omitted.

This actually reminded me of Apple...

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.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#107
post #92
post #66

Earlier quoted context omitted.

#define true false #define false true Did you know that if you do both of those, they cancel each other out? True story.

My head hurts. Explanation, please?

There's a rule in the preprocessor to prevent infinite recursion: only replace each symbol once. The first time it encounters 'true', it's replaced with 'false'. The first time it encounters 'false, it's replace with 'true'. It's already seen 'true', so it throws up its hands.

The consequence of this rule is that cycles of #defines don't do anything. Edit: Well, that's only true if there aren't other symbols introduced during expansion. Here's a counterexample that prints 3:

   #include 

   int x = 1;

   #define x 1 + y
   #define y 1 + x

   int main(int argc, char *argv[])
   {
     printf("%d\n",x);
     return 0;
   }

Re: Wikileaks To Leak 5000 Open Source Java Projects

#108
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.

They're both the subject of vast public ignorance in regard to the hazards. :D

Re: Wikileaks To Leak 5000 Open Source Java Projects

#109
post #107
post #92

Earlier quoted context omitted.

My head hurts. Explanation, please?

There's a rule in the preprocessor to prevent infinite recursion: only replace each symbol once. The first time it encounters 'true', it's replaced with 'false'. The first time it encounters 'false, it's replace with 'true'. It's already seen 'true', so it throws up its hands. The consequence of this rule is that cycles of #defines don't do anything. Edit: Well, that's only true if there aren't other symbols introduc…

Ah .. Makes sense. Thanks.

Re: Wikileaks To Leak 5000 Open Source Java Projects

#110
If you really try to make the OO as beautiful as humanly possible, you neither make the member variables public nor do you offer getters and setters. Everything is realized by functions which have a meaning, you really give the class the power to manage itself, not be managed from the outside with getters and setters! If you successfully adopt this thinking pattern then you have so many problems less...
Post reply on HN