Readit News logoReadit News

Dead Comment

Dead Comment

Dead Comment

hasty_pudding commented on Ibiza locals living in cars as party island sees rents soar   bbc.com/news/business-687... · Posted by u/AlgoRitmo
franciscop · 2 years ago
This article is leaving a lot out IMHO. I'm from Spain and I've had friends and family working and living in Ibiza. It is a "financial paradise" to work because you make a crazy amount of money in very little time, if you can stand the drunken/drugged culture. Both "peninsula" (mainland) people and locals go work there in summer to make a little fortune. It is known that many locals work OR rent out the 2-3 summer months and with that they have enough to live for the rest of the year.

While it's true that summer rent is very expensive, people who work there can definitely pay it, but then you would not save THAT much, so people find their way into cheaper accommodations, whatever that means. So while I don't know the personal story of the interviewee, it's definitely not because a lack of jobs or low pay (a problem that DOES plague most of the country).

For hacker news, imagine if this article was about the "poor Google employee living in a van and cannot afford rent", you'd laugh at its face.

hasty_pudding · 2 years ago
News needs sensationalism.

Thanks for posting another side of this.

What you're saying makes a lot of sense.

Dead Comment

hasty_pudding commented on Tonal.js: Functional music theory lib   github.com/tonaljs/tonal... · Posted by u/brianzelip
recursive · 2 years ago
I mean some languages don't.

I have ideas but I don't think I'm getting them through. Most of the problems functional proselytizers have with objects come from inheritance and mutability. Instance methods from classes don't seem to conflict with any of the functional tenets.

As for mutability, I think it's good sometimes. Dates should have been immutable, but Maps are a good fit for mutation. Immutable maps might make sense too sometimes.

But I find it difficult to communicate about any of this when fundamental terminology is used in novel ways.

hasty_pudding · 2 years ago
what languages don't use objects to implement non-primitive data structures?

like a binary tree for example

hasty_pudding commented on Tonal.js: Functional music theory lib   github.com/tonaljs/tonal... · Posted by u/brianzelip
recursive · 2 years ago
In javascript, what data structure can you implement without objects? Pretty much nothing. Even arrays are objects.
hasty_pudding · 2 years ago
What languages on Earth implement non-primitive data structures without objects?

I guess maybe low level c and assembly where you implement everything as bits in physical memory?

hasty_pudding commented on Tonal.js: Functional music theory lib   github.com/tonaljs/tonal... · Posted by u/brianzelip
recursive · 2 years ago
I'm well aware of the pros and cons of mutability. I object (hah!) to this novel new use of the word "object". The concept is well defined by the ECMAScript spec.

Your first link's first sentence's first two words are "Immutable objects". No problem there. It doesn't conflate objects with mutability.

hasty_pudding · 2 years ago
you know how unsufferable it is when people bog a conversation down with semantics instead of ideas.

the point is obvious.

Being that every single language on Earth uses objects for non-primitive data structures that should be inferrable to a reasonable person.

a data structure in that context is clearly an ordered grouping of objects versus an unordered/loose grouping of objects.

hasty_pudding commented on Tonal.js: Functional music theory lib   github.com/tonaljs/tonal... · Posted by u/brianzelip
metaxy2 · 2 years ago
Well, in principle you could have the node objects be created with an object literal in an outside builder function, and the manipulation also be done by outside functions. That's how it's done in languages without OOP. The question is how far are you willing to go to avoid doing anything that looks like OOP.
hasty_pudding · 2 years ago
Very far
hasty_pudding commented on Tonal.js: Functional music theory lib   github.com/tonaljs/tonal... · Posted by u/brianzelip
eitacaraleo · 2 years ago
Uh… what? It’s quite the opposite; why would you need a class for linked lists and trees?
hasty_pudding · 2 years ago
You definitely need generic node objects to define the nodes.

You could have a completely stateless class/object that would manipulate those nodes and add them and remove them from the data structure.

u/hasty_pudding

KarmaCake day168December 13, 2023View Original