wfunction

Joined 14 years ago

Karma
3,901
Submissions
1,547
Member since
Oct 15
View on Hacker News

Recent submissions

Comment · 9 years ago
I just installed Brave. Then I realized it doesn't allow Chrome extensions? I have so many ranging from email notifiers to cookie opt-outs to my own custom extensions for security and usability (like one that colors usernames on HN, for example)... how should I give all those up just to use a different browser?
Comment · 9 years ago
eBay is only in the buyer's favor in terms of refunds. It doesn't actually go after fraudsters who refund you immediately to make you shut up after you call out their counterfeits and whatnot.
Comment · 9 years ago
What?
Comment · 9 years ago
> I took function pointers as an example of why "supporting dynamic dispatch" is irrelevant for categorizing programming languages as OOP / not OOP.

Again, like everywhere else in your comments, you're conflating and confusing the language with the model/paradigm and keep trying to shove a language into a programming paradigm. Firstly, you can do OOP in assembly and yet it's not an "OOP language". The language is quite independent of the paradigm. Secondly, who was even trying to categorize languages here? You keep thinking the argument is about categorizing languages and then refute a nonexistent discussion...

> I must admit my ignorance : which languages except prolog don't work like this ?

Again: the discussion is not about trying to shove languages into categories; it's about programming paradigms. You can use the same language to code in multiple paradigms.

Look up "actor-oriented programming". It's a different model meant for concurrent processes, i.e. it's not a subroutine model since you don't need to wait for the procedure to finish and produce a result before continuing.

There are lot of "models of computation" out there (probably a better search term than "programming paradigm", btw) and people go so far as to do PhDs on these. I suggest looking around and not assuming everything is some trivial variation of OOP or FP or DP (declarative programming) or whatever you saw in undergrad.

Comment · 9 years ago
A lot of misunderstanding in what you wrote, but to comment on two parts:

> Every languages that have some kind of function pointer allow this.

It doesn't seem like you're reading the discussion. The claim the parent made was that "every time you do {X}, it is OOP". My reply was "yes, you can do OOP in C, but OOP implies far more than just {X} (it implies {Y}, etc.); merely {X} does not imply OOP".

You reply with "languages that have function pointers allow {Y}". Well yes, they do allow {Y}. Most/all of them in fact probably allow OOP in full. Nobody suggested such languages don't allow OOP (in fact I said the opposite about C). What does that have to do with the entire discussion and argument? Your argument isn't even wrong... it doesn't even compile.

> message-passing is only relevant if you adhere to Alan Kay's vision of objects. I personally don't (even if the guy coined the term).

This 100% completely misses the point of what I said. Replace it with "procedural call" if you're allergic to "message passing". The point I was making was we're talking about subroutine calls: you call a procedure and wait for it to produce a single value as the resulting output before proceeding. Again: if you're not used to other paradigms then that might be why you're missing my point here and adversely reacting to superficial things like the nomenclature. Whether you dress it as message passing or anything else has nothing to do with the issue.

Comment · 9 years ago
No, it absolutely is not. OOP has lots of well-known unique characteristics such as inheritance, dynamic dispatch, polymorphism, encapsulation, etc... as well other less-frequently-noticed semantic differences like the fact that the message-passing follows a subroutine model (which may be more difficult to appreciate if that's the only thing you're used to). Yes, you can do OOP in C, but just making a struct and defining procedures to operate on it doesn't imply any OOP.
Comment · 9 years ago
> Seriously guys, if you think OO has failed you are obnoxious to the amount of successful OO software that everyone uses every day.

Not sure what you mean. Do you mean oblivious?

Comment · 9 years ago
Is not saying hello when you see someone that you would normally be expected to say hello to not considered "rude"? It is to me, but it's not obnoxious...
Comment · 9 years ago
> I mean, you could just never leave your house if you were concerned about safety.

I'd take a 1/1000000 chance. I wouldn't take a 1/1000 chance. Get the point?

Comment · 9 years ago
What I would be afraid of is if these folks work in groups and they hear about the one guy who dared to go after them. Then you might get one of them arrested but your life might be under threat from a dozen others. Is it really worth it?
Comment · 9 years ago
Would they pursue something like counterfeit software licenses or gift cards mailed via USPS, if the scale isn't as large (like <$100)? Asking since it's happened to me on smaller scales before, but the amount is smaller and I'm not sure how to prove I received whatever I received...
Comment · 9 years ago
It sounds like we're agreeing? I was also saying, just like you, that the choice is not based on the statistics. The parent one is the one that used the statistic to justify the choice of biking.
Comment · 9 years ago
I don't think people think in terms of life expectancy. Do you? Is a 1% chance of dying on your next ride and otherwise living 100 years equivalent to not riding your bike and living 99 years to you?

Edit regarding your comment: Oh, I see why you're confused. I didn't need to do the math because I was talking about a 1-time bike ride as an example to just get the point across -- it's already scary for 1 ride. But if you want the actual math for a lifetime, there's a ~1/5000 lifetime odds of dying in 1 year of biking. That's still pretty damn high. I don't know about you but I'd rather just give up on the 78th expected year of my life and lose the 0.1% chance of dying in the next 5 years.

Comment · 9 years ago
Safety concerns?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton