Hacker News new | past | comments | ask | show | jobs | submit | pimterry's comments login

FMLA has a 50 employee minimum limit, as they noted above. If there aren't 50 employees within a 75-mile radius, you aren't FMLA eligible (there's quite a few other conditions too, and it's still unpaid regardless): https://en.wikipedia.org/wiki/Family_and_Medical_Leave_Act_o...


> In the age of subscriptions, being able to see all your recurring payments on a single page and cancellable with two tabs without questions asked, is a feature worth paying for.

This is a service the banking system should clearly provide natively though - there's no good reason Apple is the only one capable of this, nor any good reason why they're best placed for this (there's plenty of non-Apple subscriptions where this would be useful).

Your card provider is well aware of what recurring payments are currently authorized, and should be perfectly capable of providing tools to cancel those authorizations (and inform the merchant of this when doing so).

That that doesn't work is a failure on the part of financial firms (who could provide it) and regulators (who imo should oblige card providers to offer this, and oblige companies to treat cancellation notification like this as equivalent to written notice). Recurring payments are an increasingly fundamental part of consumer banking, but banks provide effectively zero tools for consumers to manage them.

The argument against is that some of these payments might have ongoing obligations you can't just cancel without consequence, and you'd be effectively just be refusing to pay your bills - but you could equally well have no balance available or something so the payment fails in existing cases anyway, so this seems like an entirely solveable issue (if a business that you _must_ pay receives a notification that you've cancelled the card billing authorization, they're going to need to get in touch with you about it just as if your monthly charge failed).


Yeah they should get together and create a standard protocol for managing, transferring, and paying subscriptions.

Imagine if you could manage subs through your bank, but also transfer the sub to a different bank as needed.

Could even have protocols for payees to verify payer sub status. Maybe there could be two "ends" to a sub; payer and payee end. Like a money wormhole.


> this domain was caught injecting malware on mobile devices via any site that embeds cdn.polyfill.io

I've said it before, and I'll say it again: https://httptoolkit.com/blog/public-cdn-risks/

You can reduce issues like this using subresource intergrity (SRI) but there are still tradeoffs (around privacy & reliability - see article above) and there is a better solution: self-host your dependencies behind a CDN service you control (just bunny/cloudflare/akamai/whatever is fine and cheap).

In a tiny prototyping project, a public CDN is convenient to get started fast, sure, but if you're deploying major websites I would really strong recommend not using public CDNs, never ever ever ever (the World Economic Forum website is affected here, for example! Absolutely ridiculous).


I always prefer to self-host my dependencies, but as a developer who prefer to avoid an npm-based webpack/whatever build pipeline it's often WAY harder to do that than I'd like.

If you are the developer of an open source JavaScript library, please take the time to offer a downloadable version of it that works without needing to run an "npm install" and then fish the right pieces out of the node_modules folder.

jQuery still offer a single minified file that I can download and use. I wish other interesting libraries would do the same!

(I actually want to use ES Modules these days which makes things harder due to the way they load dependencies. I'm still trying to figure out the best way to use import maps to solve this.)


The assumption of many npm packages is that you have a bundler and I think rightly so because that leaves all options open regarding polyfilling, minification and actual bundling.


polyfilling and minification both belong on the ash heap of js development technologies.


I would agree with you if minification delivered marginal gains, but it will generally roughly halve the size of a large bundle or major JS library (compared to just gzip'ing it alone), and this is leaving aside further benefits you can get from advanced minification with dead code removal and tree-shaking. That means less network transfer time and less parse time. At least for my use-cases, this will always justify the extra build step.


I really miss the days of minimal/no use of JS in websites (not that I want java-applets and Flash LOL). Kind of depressing that so much of the current webdesign is walled behind javascript.


I don’t. Always Craigslist and hacker news to give that 2004 UX.


Cool, I can download 20 MB of JavaScript instead of 40. Everyone uses minification, and "web apps" still spin up my laptop fans. Maybe we've lost the plot.


I wish. When our bundles are being deployed globally and regularly opened on out of date phones and desktops, it can't be avoided yet.


There might be a negative incentive in play: you may be compressing packages, but having your dependencies available at the tip of *pm install bloats overall size and complexity beyond what lack of bundling would give you.


The assumption shouldn't be that you have a bundler, but that your tools and runtimes support standard semantics, so you can bundle if you want to, or not bundle if you don't want to.


> I always prefer to self-host my dependencies

Ime this has always been standard practice for production code at all the companies I've worked at and with as a SWE or PM - store dependencies within your own internal Artifactory, have it checked by a vuln scanner, and then called and deployed.

That said, I came out of the Enterprise SaaS and Infra space so maybe workflows are different in B2C, but I didn't a difference in the customer calls I've been on.

I guess my question is why your employer or any other org would not follow the model above?


> I guess my question is why your employer or any other org would not follow the model above?

Frankly, it's because many real-world products are pieced together by some ragtag group of bright people who have been made responsible for things they don't really know all that much about.

The same thing that makes software engineering inviting to autodidacts and outsiders (no guild or license, pragmatic 'can you deliver' hiring) means that quite a lot of it isn't "engineered" at all. There are embarrassing gaps in practice everywhere you might look.


Yep. The philosophy most software seems to be written with is “poke it until it works locally, then ship it!”. Bugs are things you react to when your users complain. Not things you engineer out of your software, or proactively solve.

This works surprisingly well. It certainly makes it easier to get started in software. Well, so long as you don’t mind that most modern software performs terribly compared to what the computer is capable of. And suffers from reliability and security issues.


Counterpoint: It's not not about being an autodidact or an outsider.

I was unlikely to meet any bad coders at work, due to how likely it is they were filtered by the hiring process, and thus I never met anyone writing truly cringe-worthy code in a professional setting.

That was until I decided to go to university for a bit[1]. This is where, for the first time, I met people writing bad code professionally: professors[2]. "Bad" as in best-practices, the code usually worked. I've also seen research projects that managed to turn less than 1k LOC of python into a barely-maintainable mess[3].

I'll put my faith in an autodidact who had to prove themselves with skills and accomplishments alone over someone who got through the door with a university degree.

An autodidact who doesn't care about their craft is not going to make the cut, or shouldn't. If your hiring process doesn't filter those people, why are you wasting your time at a company that probably doesn't know your value?

[1] Free in my country, so not a big deal to attend some lectures besides work. Well, actually I'm paying for it with my taxes, so I might as well use it.

[2] To be fair, the professors teaching in actual CS subjects were alright. Most fields include a few lectures on basic coding though, which were usually beyond disappointing. The non-CS subject that had the most competent coders was mathematics. Worst was economics. Yes, I meandered through a few subjects.

[3] If you do well on some test you'd usually get job offers from professors, asking you to join their research projects. I showed up to interviews out of interest in the subject matter and professors are usually happy to tell you all about it, but wages for students are fixed at the legal minimum wage, so it couldn't ever be a serious consideration for someone already working on the free market.


Would an unwisely-configured site template or generator explain the scale here?

Or, a malicious site template or generator purposefully sprinkling potential backdoors for later?


But wouldn't some sort of SCA/SAST/DAST catch that?

Like if I'm importing a site template, ideally I'd be verifying either it's source or it's source code as well.

(Not being facetious btw - genuinely curious)


I was hoping ongoing coverage would answer that; it sounds like a perfect example. I heard that the tampered code redirects traffic to a sports betting site.


> I guess my question is why your employer or any other org would not follow the model above?

When you look at Artifactory pricing you ask yourself 'why should I pay them a metric truckload of money again?'

And then dockerhub goes down. Or npm. Or pypi. Or github... or, worst case, this thread happens.


There are cheaper or free alternatives to Artifactory. Yes they may not have all of the features but we are talking about a company that is fine with using a random CDN instead.

Or, in the case of javascript, you could just vendor your dependencies or do a nice "git add node_modules".


I just gave Artifactory as an example. What about GHE, self-hosted GitLab, or your own in-house Git?

Edit: was thinking - would be a pain in the butt to manage. That tracks, but every org ik has some corporate versioning system that also has an upsell for source scanning.

(Not being facetious btw - genuinely curious)


I've been a part of a team which had to manage a set of geodistributed Artifactory clusters and it was a pain in the butt to manage, too - but these were self-hosted. At a certain scale you have to pick the least worst solution though, Artifactory seems to be that.


> have it checked by a vuln scanner

This is kinda sad. For introducing new dependencies, a vuln scanner makes sense (don't download viruses just because they came from a source checkout!), but we could have kept CDNs if we'd used signatures.

EDIT: Never mind, been out of the game for a bit! I see there is SRI now...

https://developer.mozilla.org/en-US/docs/Web/Security/Subres...


This supply chain attack had nothing to do with npm afaict.

The dependency in question seems to be (or claim to be) a lazy loader that determines browser support for various capabilities and selectively pulls in just the necessary polyfills; in theory this should make the frontend assets leaner.

But the CDN used for the polyfills was injecting malicious code.


Sounds like a bad idea to me.

I would expect latency (network round trip time) to make this entire exercise worthless. Most polyfills are 1kb or less. Splitting polyfill code amongst a bunch of small subresources that are loaded from a 3rd party domain sounds like it would be a net loss to performance. Especially since your page won’t be interactive until those resources have downloaded.

Your page will almost certainly load faster if you just put those polyfills in your main js bundle. It’ll be simpler and more reliable too.


In practice when this wasn't a Chinese adware service, it proved to be faster to use the CDN.

You are not loading a "bunch" of polyfill script files, you selected what you needed in the URL via a query parameter, and the service took that plus user agent of the request to determine which were needed and returned a minified file of just the necessary polyfills.

As this request was to a separate domain it did not run into the head of line / max connections per domain issue of Http 1.1 which was still the more common protocol at the time this service came out.


yes, but the NPM packaging ecosystem leads to a reliance on externally-hosted dependencies for those who don't want to bundle


> I always prefer to self-host my dependencies

Js dependencies should be pretty small compared to images or other resources. Http pipelining should make it fast to load them from your server with the rest

The only advantage to using one of those cdn-hosted versions is that it might help with browser caching


> Http pipelining should make it fast to load them from your server with the rest

That's true, but it should be emphasized that it's only fast if you bundle your dependencies, too.

Browsers and web developers haven't been able to find a way to eliminate a ~1ms/request penalty for each JS file, even if the files are coming out of the local cache.

If you're making five requests, that's fine, but if you're making even 100 requests for 10 dependencies and their dependencies, there's a 100ms incentive to do at least a bundle that concatenates your JS.

And once you've added a bundle step, you're a few minutes away from adding a bundler that minifies, which often saves 30% or more, which is usually way more than you probably saved from just concatenating.

> The only advantage to using one of those cdn-hosted versions is that it might help with browser caching

And that is not true. Browsers have separate caches for separate sites for privacy reasons. (Before that, sites could track you from site to site by seeing how long it took to load certain files from your cache, even if you'd disabled cookies and other tracking.)


nope, browsers silo cache to prevent tracking via cached resources


There is still a caching effect of the CDN for your servers, even if there isn't for the end user: if the CDN serves the file then your server does not have to.

Large CDNs with endpoints in multiple locations internationally also give the advantage of reducing latency: if your static content comes from the PoP closest to me (likely London, <20ms away where I'm currently sat, ~13 on FTTC at home⁰, ~10 at work) that could be quite a saving if your server is otherwise hundreds of ms away (~300ms for Tokyo, 150 for LA, 80 for New York). Unless you have caching set to be very aggressive dynamic content still needs to come from your server, but even then a high-tech CDN can² reduce the latency of the TCP connection handshake and¹ TLS handshake by reusing an already open connection between the CDN and the backing server(s) to pipeline new requests.

This may not be at all important for many well-designed sites, or sites where latency otherwise matters little enough that a few hundred ms a couple of times here or there isn't really going to particularly bother the user, but could be a significant benefit to many bad setups and even a few well-designed ones.

--------

[0] York. The real one. The best one. The one with history and culture. None of that “New” York rebranded New Amsterdam nonsense!

[1] if using HTTPS and you trust the CDN to re-encrypt, or HTTP and have the CDN add HTTPS, neither of which I wouldn't recommend as it is exactly an MitM situation, but both are often done

[2] assuming the CDN also manages your DNS for the whole site, or just a subdomain for the static resources, so the end user sees the benefit of the CDNs anycast DNS arrangement.


> prefer to avoid an npm-based webpack/whatever build pipeline

What kind of build pipeline do you prefer, or are you saying that you don't want any build pipeline at all?


I don't want a build pipeline. I want to write some HTML with a script type=module tag in it with some JavaScript, and I want that JavaScript to load the ES modules it depends on using import statements (or dynamic import function calls for lazy loading).


Do you not use CSS preprocessors or remote map files or anything like that... or do you just deal with all of that stuff manually instead of automating it?


That's still allowed! :)


I suspect this is more relevant for people who aren't normally JavaScript developers. (Let's say you use Go or Python normally.) It's a way of getting the benefits of multi-language development while still being mostly in your favorite language's ecosystem.

On the Node.js side, it's not uncommon to have npm modules that are really written in another language. For example, the esbuild npm downloads executables written in Go. (And then there's WebAssembly.)

In this way, popular single-language ecosystems evolve towards becoming more like multi-language ecosystems. Another example was Python getting 'wheels' straightened out.

So the equivalent for bringing JavaScript into the Python ecosystem might be having Python modules that adapt particular npm packages. Such a module would automatically generate JavaScript based on a particular npm, handling the toolchain issue for you.

A place to start might be a Python API for the npm command itself, which takes care of downloading the appropriate executable and running it. (Or maybe the equivalent for Bun or Deno?)

This is adding still more dependencies to your supply chain, although unlike a CDN, at least it's not a live dependency.

Sooner or later, we'll all depend on left-pad. :-)


I always prefer to self-host my dependencies,

Wouldn't this just be called hosting?


As you might know, Lit offers a single bundled file for the core library.


Yes! Love that about Lit. The problem is when I want to add other things that have their own dependency graph.


This is why I don't think it's very workable to avoid npm. It's the package manager of the ecosystem, and performs the job of downloading dependencies well.

I personally never want to go back to the pre-package-manager days for any language.


One argument is that Javascript-in-the-browser has advanced a lot and there's less need for a build system. (ex. ESM module in the browser)

I have some side projects that are mainly HTMX-based with some usage of libraries like D3.js and a small amount of hand-written Javascript. I don't feel that bad about using unpkg because I include signatures for my dependencies.


Before ESM I wasn't nearly as sold on skipping the build step, but now it feels like there's a much nicer browser native way of handling dependencies, if only I can get the files in the right shape!

The Rails community are leaning into this heavily now: https://github.com/rails/importmap-rails


npm is a package manager though, not a build system. If you use a library that has a dependency on another library, npm downloads the right version for you.


Yep. And so does unpkg. If you’re using JavaScript code through unpkg, you’re still using npm and your code is still bundled. You’re just getting someone else to do it, at a cost of introducing a 3rd party dependency.

I guess if your problem with npm and bundlers is you don’t want to run those programs, fine? I just don’t really understand what you gain from avoiding running bundlers on your local computer.


Oh lol yeah, I recently gave up and just made npm build part of my build for a hobby project I was really trying to keep super simple, because of this. It was too much of a hassle to link in stuff otherwise, even very minor small things

You shouldn't need to fish stuff out of node_moduoes though, just actually get it linked and bundled into one is so that it automatically grabs exactly what you need and it's deps.

If this process sketches you out as it does me, one way to address that, as I do, is have the bundle emitted with minification disabled so its easy to review


That was my thought too but polyfill.io does do a bit more than a traditional library CDN, their server dispatches a different file depending on the requesting user agent, so only the polyfills needed by that browser are delivered and newer ones don't need to download and parse a bunch of useless code. If you check the source code they deliver from a sufficiently modern browser then it doesn't contain any code at all (well, unless they decide to serve you the backdoored version...)

https://polyfill.io/v3/polyfill.min.js

OTOH doing it that way means you can't use subresource integrity, so you really have to trust whoever is running the CDN even more than usual. As mentioned in the OP, Cloudflare and Fastly both host their own mirrors of this service if you still need to care about old browsers.


The shared CDN model might have made sense back when browsers used a shared cache, but they dont even do that anymore.

Static files are cheap to serve. Unless your site is getting hundreds of millions of page views, just plop the js file on your webserver. With HTTP/2 it will probably be almost the same speed if not faster than a cdn in practise.


If you have hundreds of millions of pageviews, go with a trusted party - someone you actually pay money to - like Cloudflare, Akamai, or any major hosting / cloud party. But not to increase cache hit rate (what CDNs were originally intended for), but to reduce latency and move resources to the edge.


Does it even reduce latency that much (unless you have already squeezed latency out of everything else that you can)?

Presumably your backend at this point is not ultra optimized. If you send a link header and using http/2 the browser will download the js file while your backend is doing its thing. I'm doubtful that moving js to the edge would help that much in such a situation unless the client is on the literal other side of the world.

There of course comes a point where it does matter, i just think the cross over point is way later than people expect.


> Does it even reduce latency that much

Absolutely:

https://wondernetwork.com/pings/

Stockholm <-> Tokyo is at least 400ms here, anytime you have multi-national sites having a CDN is important. For your local city, not so much (and of course you won't even see it locally).


I understand that ping times are different when geolocated. My point was that in fairly typical scenarios (worst cases are going to be worse) it would be hidden by backend latency since the fetch could be concurrent with link headers or http 103. Devil in details of course.


I'm so glad to find some sane voices here! I mean, sure, if you're really serving a lot of traffic to Mombasa, akamai will reduce latency. You could also try to avoid multi megabyte downloads for a simple page.


Content: 50KB

Images: 1MB

Javascript: 35MB

Fonts: 200KB

Someone who is good at the internet please help me budget this. My bounce rate is dying.


While there are lots of bad examples out there - keep in mind its not quite that straight forward as it can make a big difference whether those resources are on the critical path that blocks first paint or not.


What's all that JavaScript for?


Cookie banner


It’s not an either or thing. Do both. Good sites are small and download locally. The CDN will work better (and be cheaper to use!) if you slim down your assets as well.


> But not to increase cache hit rate (what CDNs were originally intended for)

Was it really cache hit rate of the client or cache hit rate against the backend?


Both.


Even when it "made sense" from a page load performance perspective, plenty of us knew it was a security and privacy vulnerability just waiting to be exploited.

There was never really a compelling reason to use shared CDNs for most of the people I worked with, even among those obsessed with page load speeds.


In my experience, it was more about beating metrics in PageSpeed Insights and Pingdom, rather than actually thinking about the cost/risk ratio for end users. Often the people that were pushing for CDN usage were SEO/marketing people believing their website would rank higher for taking steps like these (rather than working with devs and having an open conversation about trade-offs, but maybe that's just my perspective from working in digital marketing agencies, rather than companies that took time to investigate all options).


I don’t think it ever even improved page load speeds, because it introduces another dns request, another tls handshake, and several network round trips just to what? Save a few kb on your js bundle size? That’s not a good deal! Just bundle small polyfills directly. At these sizes, network latency dominates download time for almost all users.


> I don’t think it ever even improved page load speeds, because it introduces another dns request, another tls handshake, and several network round trips just to what?

I think the original use case, was when every site on the internet was using jquery, and on a js based site this blocked display (this was also pre fancy things like HTTP/2 and TLS 0-RTT). Before cache partitioning you could reuse jquery js requested from a totally different site currently in cache as long as the js file had same url, which almost all clients already had since jquery was so popular.

So it made sense at one point but that was long ago and the world is different now.


I believe you could download from multiple domains at the same time, before HTTP/2 became more common, so even with the latency you'd still be ahead while your other resources were downloading. Then it became more difficult when you had things like plugins that depended on order of download.


You can download from multiple domains at once. But think about the order here:

1. The initial page load happens, which requires a DNS request, TLS handshake and finally HTML is downloaded. The TCP connection is kept alive for subsequent requests.

2. The HTML references javascript files - some of these are local URLs (locally hosted / bundled JS) and some are from 3rd party domains, like polyfill.

3a. Local JS is requested by having the browser send subsequent HTTP requests over the existing HTTP connection

3b. Content loaded from 3rd party domains (like this polyfill code) needs a new TCP connection handshake, a TLS handshake, and then finally the polyfills can be loaded. This requires several new round-trips to a different IP address.

4. The page is finally interactive - but only after all JS has been downloaded.

Your browser can do steps 3a and 3b in parallel. But I think it'll almost always be faster to just bundle the polyfill code in your existing JS bundle. Internet connections have very high bandwidth these days, but latency hasn't gotten better. The additional time to download (lets say) 10kb of JS is trivial. The extra time to do a DNS lookup, a TCP then TLS handshake and then send an HTTP request and get the response can be significant.

And you won't even notice when developing locally, because so much of this stuff will be cached on your local machine while you're working. You have to look at the performance profile to understand where the page load time is spent. Most web devs seem much more interested in chasing some new, shiny tech than learning how performance profiling works and how to make good websites with "old" (well loved, battle tested) techniques.


Aren't we also moving toward not even letting cross-origin scripts having very little access to information about the page? I read some stuff a couple years ago that gave me a very strong impression that running 3rd party scripts was quickly becoming an evolutionary dead end.


Definitely for browser extensions. It's become more difficult with needing to set up CORS, but like with most things that are difficult, you end up with developers that "open the floodgates" and allow as much as possible to get the job done without understanding the implications.


CORS is not required to run third party scripts. Cors is about reading data from third parties not executing scripts from third parties.

(Unless you set a Cross-Origin Resource Policy header, but that is fairly obscure)


The same concept should be applied to container based build pipelines too. Instead of pulling dependencies from a CDN or a pull through cache, build them into a container and use that until you're ready to upgrade dependencies.

It's harder, but creates a clear boundary for updating dependencies. It also makes builds faster and makes old builds more reproducible since building an old version of your code becomes as simple as using the builder image from that point in time.

Here's a nice example [1] using Java.

1. https://phauer.com/2019/no-fat-jar-in-docker-image/


> The same concept should be applied to container based build pipelines too. Instead of pulling dependencies from a CDN or a pull through cache, build them into a container and use that until you're ready to upgrade dependencies.

Everything around your container wants to automatically update itself as well, and some of the changelogs are half emoji.


I get the impression this is a goal of Nix, but I haven't quite digested how their stuff works yet.


> self-host your dependencies

I can kind of understand why people went away from this, but this is how we did it for years/decades and it just worked. Yes, doing this does require more work for you, but that's just part of the job.


For performance reasons alone, you definitely want to host as much as possible on the same domain.

In my experience from inside companies, we went from self-hosting with largely ssh access to complex deployment automation and CI/CD that made it hard to include any new resource in the build process. I get the temptation: resources linked from external domains / cdns gave the frontend teams quick access to the libraries, fonts, tools, etc. they needed.

Thankfully things have changed for the better and it's much easier to include these things directly inside your project.


There was a brief period when the frontend dev world believed the most performant way to have everyone load, say, jquery, would be for every site to load it from the same CDN URL. From a trustworthy provider like Google, of course.

It turned out the browser domain sandboxing wasn’t as good as we thought, so this opened up side channel attacks, which led to browsers getting rid of cross-domain cache sharing; and of course it turns out that there’s really no such thing as a ‘trustworthy provider’ so the web dev community memory-holed that little side adventure and pivoted to npm.

Which is going GREAT by the way.

The advice is still out there, of course. W3schools says:

> One big advantage of using the hosted jQuery from Google:

> Many users already have downloaded jQuery from Google when visiting another site. As a result, it will be loaded from cache when they visit your site

https://www.w3schools.com/jquery/jquery_get_started.asp

Which hasn’t been true for years, but hey.


The only thing I’d trust w3schools to teach me is SEO. How do they stay on top of Google search results with such bad, out of date articles?


Be good at a time when Google manually ranks domains, then pivot to crap when Google stops updating the ranking. Same as the site formerly known as Wikia.


> For performance reasons alone, you definitely want to host as much as possible on the same domain.

It used to be the opposite. Browsers limit the amount of concurrent requests to a domain. A way to circumvent that was to load your resources from a.example.com, b.example.com, c.example.com etc. Paying some time for extra dns resolves I guess, but could then load many more resources at the same time.

Not as relevant anymore, with http2 that allows sharing connections, and more common to bundle files.


Years ago I had terrible DNS service from my ISP, enough to make my DSL sometimes underperform dialup. About 1 in 20 DNS lookups would hang for many seconds so it was inevitable that any web site that pulled content from multiple domains would hang up for a long time when loading. Minimizing DNS lookups was necessary to get decent performance for me back then.


Using external tools can make it quite a lot harder to do differential analysis to triage the source of a bug.

The psychology of debugging is more important than most allow. Known unknowns introduce the possibility that an Other is responsible for our current predicament instead of one of the three people who touched the code since the problem happened (though I've also seen this when the number of people is exactly 1)

The judge and jury in your head will refuse to look at painful truths as long as there is reasonable doubt, and so being able to scapegoat a third party is a depressingly common gambit. People will attempt to put off paying the piper even if doing so means pissing off the piper in the process. That bill can come due multiple times.


Maybe people have been serving those megabytes of JS frameworks from some single-threaded python webserver (in dev/debug mode to boot) and wondered why they could only hit 30req/s or something like that.


Own your process – at best that CDN is spying on your users.


> and it just worked

Just to add... that is unlike the CDN thing, that will send developers into Stack Overflow looking how to set-up CORS.


I don't think SRI would have ever worked in this case because not only do they dynamically generate the polyfill based on URL parameters and user agent, but they were updating the polyfill implementations over time.


>self-host your dependencies behind a CDN service you control (just bunny/cloudflare/akamai/whatever is fine and cheap).

This is not always possible, and some dependencies will even disallow it (think: third-party suppliers). Anyways, then that CDN service's BGP routes are hijacked. Then what? See "BGP Routes" on https://joshua.hu/how-I-backdoored-your-supply-chain

But in general, I agree: websites pointing to random js files on the internet with questionable domain independence and security is a minefield that is already exploding in some places.


I strongly believe that Browser Dev Tools should have an extra column in the network tab that highlights JS from third party domains that don't have SRI. Likewise in the Security tab and against the JS in the Application Tab.


I've seen people reference CDNs for internal sites. I hate that because it is not only a security risk but it also means we depend on the CDN being reachable for the internal site to work.

It's especially annoying because the projects I've seen it on were using NPM anyway so they could have easily pulled the dependency in through there. Hell, even without NPM it's not hard to serve these JS libraries internally since they tend to get packed into one file (+ maybe a CSS file).


Also the folks who spec'ed ES6 modules didn't think it was a required feature to ship SRI from that start so it's still not broadly and easily supported across browsers. I requested the `with` style import attributes 8 years ago and it's still not available. :/


Another downside of SRI is that it defeats streaming. The browser can't verify the checksum until the whole resource is downloaded so you don't get progressive decoding of images or streaming parsing of JS or HTML.


I can see the CDNs like CF / Akamai becoming soon like the internet 1.2 - with the legitimate stuff in, and all else considered gray/dark/1.0 web.


I agree with this take, but it sounds like Funnull acquired the entirety of the project, so they could have published the malware through NPM as well.


> the World Economic Forum website is affected here, for example! Absolutely ridiculous

Dammit Jim, we’re economists, not dream weavers!


World Economic Forum website is affected here, for example!

What did they say about ownership? How ironic.


Meanwhile ...

"High security against CDN, WAF, CC, DDoS protection and SSL protects website owners and their visitors from all types of online threats"

... says the involved CDN's page (FUNNULL CDN).-

(Sure. Except the one's they themselves generate. Or the CCP.)


Another alternative is not to use dependencies that you or your company are not paying for.


The suntrain mentioned here is completely nuts, but a really cool solution: https://www.suntrain.co/


If you're in Spain, you can contact Spain's permanent representation in the EU here: https://es-ue.org/contactar/


> It's not a small problem, there's like 12K cases per year last time I checked.

https://maldita.es/malditateexplica/20221026/datos-okupacion... has the actual data (in Spanish):

* 10-17k cases of occupation annually (rising until 2021, but down in 2022 and further down in 2023: https://www.cronista.com/espana/actualidad-es/adios-okupas-c...)

* Of those ~15k, 5% are actually occupation of somebody's residence (allanamiento de morada) and 95% of cases are occupation of an empty and unused house/shop/office (usurpación de vivienda). That includes unused commercial properties, and homes that are neither rented nor used by the owner.

* Note that a personally used holiday homes are also considered as a person's residence, so any occupation there would also come into that first 5%: https://www.ocu.org/fincas-y-casas/gestion/gestion-patrimoni....

That is to say: it is a problem (the 500 - 1000 cases per year nationwide of occupation of people's homes is clearly problematic) but it's not a really widespread problem for most middle-class people (the vast majority of people even in the middle classes do not own totally unused property).

It is a significant concern if you're a commercial landlord with any shops & offices between rental contracts, or if you're directly investing in property as pure speculation, without using it at all (which imo should be discouraged regardless - although I'd rather punitively tax it).

In the really problematic 5% case of people's homes, my understanding is that the law has tightened significantly, and if you can show that you're registered as actually living there, in theory they will evict okupas within 24 hours (I don't know how well that works in practice though).


These stats don't account for the much more common case of people that start renting a house and stop paying the rent indefinitely because technically it doesn't fit the definition of "okupas." I've seen estimates of that number being as high as 1% of the people renting, making it ~30K extra people living on a house they don't own and are not paying for.


The only stats I can find are https://www.idealista.com/news/finanzas/economia/2023/03/03/... - that shows 30k people actually evicted from houses they were renting but stopped paying for in 2022.

Can't find any numbers on how many people are not paying and indefinitely staying in flats. While I'm sure it's a slow process, personally I'd be surprised if there's that many people in that situation long-term, since there's clearly laws and a working process to remove tenants in this case (30k evictions for non-payment in a year means forcing an eviction is clearly possible).

Idealista has some details on the process and how long it takes here: https://www.idealista.com/news/inmobiliario/vivienda/2022/10... and suggests that 7-8 months is typical (really interesting how effectively Idealista dominates as the source for info on all these topics, superb example of content marketing).


That's interesting , where can I see those stats? And legally as you say it's not the same as squatting, it's quite different.


In the US, I knew someone who owned a second house in the same city that they had never lived in and planned to rent out in the future. When someone broke in and squatted there early in covid, they reacted as though the squatters were in the house they actually currently lived in - describing their fear and trauma in a way such that people who didn't know the story sometimes literally thought someone had broken into their own residence.

So I wouldn't be at all surprised if a lot of those empty homes being squatted in are felt as personal attacks and violations by the absentee owner, which would make it feel like a much bigger problem for individuals if you move in circles where people own empty properties.


Squatting is a problem, period. Doesn’t matter if the house is empty or not.


I don't agree with squatting on the whole, but this distinction clearly does matter. If someone squats a property that you were planning to rent out then you lose the income that you could have gained thereby. That's not nearly as bad as losing access to the home you currently live in.


It can be worse, as you are losing rental income, which can have larger impacts on your budget and life.

I have family in California that had to deal with squatters on a rental property. It cost them ~400k, which included their kids college funds and retirement.

Costs were 3 years of lost rent while they paid the mortgage 250k damages done by the squatters, plus legal fees.


It could be worse for some people in some cases, but it’s pretty clear which is going to be worse in general most of the time.


Perhaps, financial damage is real and can have long term consequences that outlive short term inconvenience.

You are probably right in the majority of cases,but I do think it is a mistake to automatically discount financial harm as less.

If I invest 20 years of my income in a property that someone has stolen, that is a significant loss to me in human terms as well as financially.

I would be open to treating the destruction of such property equivalent to the taking of an equivalent amount of one's life.


>If I invest 20 years of my income in a property that someone has stolen, that is a significant loss to me in human terms as well as financially.

You've also paid for your primary residence. But on top of that, you need it to live in. So it's a worse situation, generally speaking.


That was a general comment, true for both cases.


Maybe the moral point is that housing shouldn't be an investment class?


Housing is inherently an investment.

It take a huge amount of materials and labor to build, and returns value slowly over time. Depending on the inputs and returns, this can either create positive or negative value.


Of course we should invest in actual property building, I meant investment class as in asset class - a thing you buy with the hope of capital increase. This is clearly quite different from investing in building houses that results in a new house.


Buying a house and purposefully leaving it empty is immoral, sqatting or not.


But if "empty living space", space that's reserved but unused, is immoral would you extend it to any such reserved but unused living space?

Is an empty room in your house immoral? Or massively oversized rooms even if you live in them? In the end you're still blocking a lot of "empty space" that someone else could use if only there were smaller but more living units. Same applies when you live in a detached house and "blocking" any potential living space that could have existed on higher floors of a tall apartment building. Zoning laws can also be an issue but the question stands.

To put in in practical terms, one person having two 50sqm/550sqft apartments is immoral. One person having one 150sqm/1500sqft apartment is fine? Where is the line and how arbitrary do you want it to be?


It’s not clear exactly where to draw the line, but that’s true of all kinds of moral distinctions. So I don’t think that kind of slippery slope argument is very persuasive.


I didn't mean it as a slippery slope argument, rather an explanation of why calling "this in particular" immoral is probably just one person drawing the line in such a way that what they need/want is perfectly covered. It's more likely that their changing needs/wants move that bar, than that the moving bar changes their needs/wants.

So "buying a house and purposefully leaving it empty is immoral" is bound to change the moment they purchase a second, empty house.

Years ago I hosted some African refugees in my home for a short time while more appropriate accommodation was in the works. I cannot describe the feeling I had seeing one of the children understand how a modern toilet works: we do our business in a bunch of clean water, and then dump a bunch more clean water to take it away. Given their circumstances this was probably the most immoral thing we could have done in the modern world.


>It's more likely that their changing needs/wants move that bar, than that the moving bar changes their needs/wants.

This seems to be an unsupported speculation. And indeed it cuts both ways. Maybe you only think the second house is ok because that covers your needs and wants (either present or future anticipated). If you leave out the psychologizing, there's nothing to your argument beyond the slippery slope. Even if the exact location where individual people draw the line is psychologically explicable based on self-interest and their particular life circumstances, it still doesn't follow that a moral distinction cannot possibly be made.

More generally, it's fairly obvious that people who believe in strong property rights will tend to be people who have lots of property and people who don't will tend to be people who don't. That doesn't invalidate the arguments of either side; these have to be evaluated on their merits. You can say "I bet you'll believe in strong property rights once you own a house!", while a homeless person might equally say "I bet you'll have more sympathy for squatters once you've lived on the streets for a year!" Those sorts of examples tell us that people aren't perfectly disinterested when forming their moral outlook, but it doesn't tell us much about where moral distinctions can or can't be drawn.


This is not correct; purchasing real estate is obviously morally neutral.


Purchasing housing can be morrally neutral.

What you do with it (or, don't do with it) is not morally neutral. I believe that hoarding it, preventing others from living in or purchasing it, is immoral.


No, because if there is not enough for other people they either are forced to get exploited by landlords or become homeless. Purchasing real estate is immoral, as is whole notion of rent-seeking through usurpation of unused land such that other persons cannot use it when you don't use it and occupy it.


That's probably why there was a second clause to their statement, which you appear to have ignored.


A fair point. I thought what I was saying was too obvious to expound further, but here goes:

Buying a house in order to leave it vacant is morally neutral. To wit,

Mike Murderer buys up real estate along the river and leaves it empty so that the dead bodies he stores inside are not discovered. Mike has acted immorally!

Mayor Susan convinces the city council to buy up real estate along the river and leave it empty to facilitate moving the residents there to higher ground to avoid expensive and dangerous seasonal flooding. Susan has acted morally.

But they both took the same positive action: purchasing real estate. This action was morally neutral.

As other people in this thread have correctly noted, it’s the justification not the action that has moral implications.


It is correct. Moral neutrality is a mental defense mechanism to avoid bad feelings. The vast majority of folks find it easier to rewrite their interpretation of events than tell themselves no.


No, it’s not. Living where you want, for free, is not a right.


Why it's not immoral? can you elaborate?


So if you buy a fixer upper, one that would be unfit for renting to people. You can't spend your weekends and holidays working on it for a few months to get it into better condition without being called immoral? Sorry that my lack of funds and desire to better myself offends you, but that's a crazy take.


Because our society believes in property rights. Individuals can have any reason they want to own property and do with it what it pleases them.


Property rights are human rights.


Squatters doesn't make purposefully leaving houses vavent any less immoral.


Get rid of the pathetic scarcity mindset.

Just build more houses and then nobody will care.


Having a free shelter is fundamental to a person's freedom, arguing otherwise is immoral.


I actually lived in a country where everyone had a right for free shelter. It was called the USSR.

The quality and quantity of said shelter was beyond abysmal. Several families sharing a single apartment, a family per room, was the norm.

If anyone attempted to squatter anywhere, they would very quickly find themselves free sheltered in Gulag. If they were to argue for their rights against oppression and exploitation, like you do, they would be very quickly free sheltered in a mad house and injected with generous doses of haloperidol.


What is ironic is that I’ve people living like that in the US too. I once lived in a building with a lot of immigrants from different parts of the world. I once got a glance in a living room walking down the hall: two bunks in the living room dozens of people inside. Another apartment was a studio apartment shared by two guys whose main source of income seemed to be charging lime scooters in the apartment. They’d be hauling scooters in and out all day.

So maybe things wouldn’t be that different at all for the poorest of this country but they’d not have the boot of monthly rent pinned on their neck.


Good news - the US is interested in Part B, jail for squatting (including outdoors in a public place) but not Part A, because communism is terrible.


Yeah, on the other hand you had Anarchist Catalonia or currently Zapatistas. In USA you had MK Ultra, where government experimented on people through for example drugging them and you have homelessness too. Moreover people who fought for liberation were diagnosed with schizophrenia.


And who has to build that shelter, and what about their freedom?


> And who has to build that shelter

Jimmy & Rosalynn Carter

https://www.habitat.org/carter-work-project

> what about their freedom?

I think they made good use of it.

We in the USA are the wealthiest nation in the history of the world. We could solve homelessness and hunger tomorrow.

I'm not saying that people should lose their property to squatters, that's not the solution. I'm saying that we could build ~300,000 new homes and give them to people for free and it would barely register on the national budget.


Yes, if you assume people won't destroy the free houses, I totally agree.

I think it is remarkable that people argue for theft from others instead of donating their time, effort, or money to building those houses.

The underlying hypocrisy is that most people argue that others should pay, but won't act individually on their own beliefs


Then everyone will go sleep in the street, in order to get a free house.


No, they won’t.


Would you sleep in a tent for a year to get a million dollars? I already have a house and would still do it.

Hell, I would do it for 10% of that. No job and drinking and camping for a year sounds like an epic vacation.

Before you doubt me, I was certifiably homeless in San Francisco for 3 months it was a blast. Slept on couches everyday, worked cash jobs, and partied every night.


No one has to build that shelter, no one should be coerced to that.


So nobody is forced to build shelter, but if someone does build one for themselves, it can be taken?

Just trying to understand how this right to shelter works.


It's crucial to understand that if we let a person that build a shelter keep it for eternity then that person can build many shelters such that there will be no land left for other people to build their shelters on.


Indeed.

This is why in a society free from theft, one must build or make something for exchange to get things you want.

I don't see why buying two plots and building two houses entitles someone else to one of them.


I don't agree with the notion of buying a plot. No one should ever have to pay for an empty plot of land.


OK, so you dont buy the plot and just build two houses on them. How does that change your logic.


How do you deal with a situation where some people don't have any land anymore to put their houses there?


They make something they can trade, or go somewhere where there is land.


How they can make something they can trade, if they have no land on which they can make it? Where can they go, if private property exists in most of the world?


You make things that don't need land, like 99% of humans on the planet. AKA get a job.

There's no free land, but there is cheap land, especially in deserts. Simply owning land might not be as nice as you imagine


You can't have a freedom that's conditional on somebody else's forced labour.


It's not conditional of somebody else's forced labor, why do you think that?


Everyone is entitled to free shelter, but nobody is required to build them? Where do you think the free shelter is going to come from? Because, looking around, I don't see very many free shelters, so they're going to have to come from somewhere.

And if your answer is to take all the existing houses and give them, one to each family that needs a place to stay, that's great in the short term. In the long term, though, who's going to build a new one when it will just be taken from them? And if nobody builds new ones, where are new ones going to come from, as the population continues to grow?


At worst everyone should have an access to piece of land where they can build a shelter for themselves, or live in a yurt or an RV if they don't want to build the typical housing.


Yes, It is in Spain:

Article 47 of Spanish Constitution:

All Spaniards are entitled to enjoy decent and adequate housing. The public authorities shall promote the necessary conditions and shall establish appropriate standards in order to make this right effective, regulating land use in accordance with the general interest in order to prevent speculation.


No, it's not.

It does not mean you have the right to live in a flat en La Castellana for whatever you want pay. It means the State has to implement policies to help people access housing.

Also, article 33 give citizens the right to private property. You cannot come squat in my house because article 33 should prevent it, even when article 47 exists.


Yep, good point.

Let's avoid considering outliers to maintain a balanced discussion.

While I don't believe anyone has the right to live in Castellana or the Royal Palace, it also wouldn't be fair to require someone to move to the desert to find a home.


Having a right to housing is not the same as having the right to "living where you want".

If they actually had that right then a Spaniard would have the right to live in the king's and politicians' houses which is obviously not a right.


Better not leave for work or anywhere else then.


Worth looking up the difference between trespassing on property someone actively lives in, and "okupas" occupying otherwise empty buildings.

Once you understand the difference, you'd understand that you can continue living your life like normal :)


I don't see the difference. How many hours or days can one be away. 1 hour, 1 day, 1 year?


I don't think there is a clear "N amount of days away from the residence means you're not actively living there", the court would look at many factors.

For example, if it's evident the owner is intending to return, there is personal belongings, utility contracts in the owners name and such, courts would (probably) consider it your primary residence even if you take an extended leave from it.

On the other hand, if you're away for several months, there is no clear intent to return and you've removed all furniture/personal belongings, courts can think it looks like it isn't your primary residence anymore, especially if you own other properties that it seems you might be living in instead.

Like most issues in society, there isn't any clear dividing line and no guarantees. That's why we have the legal system we have after all, so nuances can be taking into consideration.


In what case does it make no difference to me, a person who bought or built a structure, that I can no longer use it and it has been stolen?


I'm not sure what the question is, could you reformulate that?


You said

>Worth looking up the difference between trespassing on property someone actively lives in, and "okupas" occupying otherwise empty buildings. Once you understand the difference, you'd understand that you can continue living your life like normal :)

I dont see how the duration between my visits means there is not impact on my life if someone steals my 2nd house. Im still out my savings, or retirement funds, or years of work it took to build the house.


This is absurd.

Is your car sitting in your driveway right now? Someone else could be driving it, it's immoral that you don't leave the keys sitting on the roof.

Is your bed or couch empty right now? Someone else could be sleeping there right now.

Do you have money in your checking account? Someone else could be buying the things they need with that money, you should put the cash outside for them to take.

A house sitting empty while the owners renovate, look for tenants, try to sell, etc is a normal and necessary part of a functioning society.

The solution to housing shortages is to build more housing. That's it, that's the whole solution.


To take this further, everyone here has a computer. Obviously you don't use 100% of the cycles all the time, so it is immoral if you do not install a program that allows anyone else to use your unused cycles.

Yes there are power costs with 100% usage vs idle time but there are also cost of upkeep on a house.


It's not absurd. Yes, it's immoral that I am as wealthy as I am (relatively, on a global scale), and it's immoral that I get to eat so much better than others in the same society as I am in. It doesn't mean I'm going to do anything about it, it just means on that axis, I am not a particularly moral person.


It's not a fact that it's immoral. It being immoral is _your_ judgement. If someone else thinks it's not immoral, that is _just as legitimate_.


I mean, the massive infrastructure waste that exists to accomodate unproductive cars is a real point that degrades where we live.

So much space in towns dedicated to storing cars while they're not being used, taking space away from where housing can be built. As a non-american, I believe that parking lots are immoral as well :)


Buying a car and purposefully not using it 24 hours a day as an Uber is immoral. I'll take yours when you leave it parked, okay? You can have it back when I'm done with it, probably when it needs major repairs because I'm not putting any money into it. As the owner of record, that's your problem.


It depends on the actual numbers, which usually don't support the fear coming from the media.


Absolutely. From the article:

Media reports have been instrumental in shaping the narrative around squatting, with stories of 'okupas' sometimes being sensationalised to highlight conflicts and drama.

This is the approach of the class privileged enough to own the media (literally or figuratively): shape, to their favor, the public's opinion & perspective of an issue that affects most people relatively little, if at all, via sensational media.


So let's now worry about killings, bombings, rapings, etc because there's not so many of them, right? Don't be that naïve.


In the US, people call CPS or the police on ten year olds playing unsupervised in a park or walking home from school in perfectly safe suburbs and towns because they believe the children will be kidnapped, raped and murdered. So yes, it is possible to worry too much about rape and murder as well.

See also: security theater, the TSA.


Homelessness is a problem, even having to pay rent to another person to have a place to live is a problem. Squatting is just a strategy to fight an inherently oppressive private property norm.


> even having to pay rent to another

I'm curious how would you expect housing to stock to grow or even stay stable if nobody had to pay rent?

Would all housing be used owned by the state and assigned to individuals based on certain criteria (with huge amounts of inefficiency and corruption that such a system creates)?


It could grow either by people making their own houses on their own, or by them finding others who would help with this process, or by paying someone for the labor required for the house to get build.

I think that private property should not get nationalized.


Right, so basically you want the system we currently have?


No, I want for example to abolish private property of land and natural resources.


Fortunately, most citizens are not economically illiterate enough to support this ideology. Private ownership of land and natural resources is the foundation of 21st-Century economic prosperity.


No it's not. Private property created a world where 8 persons control as much wealth as the poorest half of humanity. This is not common prosperity, this is exploitation.


So you’d rather the poor be even poorer as long as the rich wouldn’t control as much wealth or didn’t exist at all?


No, I think no one should get exploited and oppressed and everyone should have an opportunity to develop to the heights of one's potential.


@TotalCrackpot, I completely agree. Thank you.


I would like to know what the limits of your application of this idea is because if I were to extend your argument that "even having to pay rent to another person to have a place to live is a problem.", this is what I get to:

I am currently buying a house, every month I pay money to the bank, this is very similar to having to pay rent. From my understanding of your logic, this would be a problem.

Further from that, I am building a house. I have to make payments to the builder(s) in order to have a place to live. Is this a problem?


Not endorsing the view, just sharing lines of reasoning I've seen.

Paying money to the bank implies you financed your purchase of a home. This is not necessarily a morally-neutral activity, it's in fact nuanced but we've done a good job of handwaving away the nuance in the last 4-5 generations of Americans.

A small vignette to explain: financing allows people to leverage their credit history and income to make larger purchases than they could otherwise afford. This increases the sticker price of purchasing a home, which prices out people with low credit or income. Anything that increases the price of housing effectively increases the price of rent, which limits peoples' abilities to save to actually purchase a home – it's a nasty cycle. One could argue that by participating in that system of financing, you're perpetuating it, but most people immediately dismiss this idea, ymmv.

Building a house, and paying people to build the house, is not a problem. You're exchanging value for labor and assets. You're de facto increasing the supply of housing.


So, I personally like the idea of someone working with a builder to build your house. I also like the idea of only ever buying something rather than financing it.

I also think that if that was only the option, housing prices would rise rather than fall.

Cash up front, I assume in an escrow so that buyer can't cheat builder and builder can't run away with the money.

This means that a someone who wants to build/buy a home is going to need around 150k saved up.

Assuming that 50k yearly salary and rent is immoral, they have to live at home until saved up. 1/3 put aside is 16.66k per year, 9 years before they can get a house.

In actuality, the cost is probably going to be more expensive as you would no longer have developments going up.


Not necessarily, you just might not build 100% of your eventual home immediately.

It used to be (i.e. prior to the postwar expansion of credit to the American consumer) pretty common to build a "starter home" that was intended to be expanded. You start with the basics (basement, kitchen, bathroom, bedroom) and expand modularly from there as your prosperity and needs allow.

In the midwest, they would start by building the foundation, basement, and a very modest first floor. As the family prospered, had children, and developed roots in the neighborhood, they'd expand the above-ground portion of the home in the summer months. You can find homes frozen at each stage of development from the pre-depression 1900s still around today, although they're of greater archaeological value today than housing stock value. A lot of present-day "colonial" housing stock in the Northeastern U.S. have evidence of this gradual accrual over the decades.

This idea of "build a whole mansion at once" was historically reserved for the truly wealthy, and has only been "practical" for a greater segment of society for the last 50 years (again, with the expansion of consumer credit, not because we can actually afford these things).

You could still choose to build things this older style. Our culture of "obtain everything all at once, immediately up to the limit of your purchasing power" is the main impediment. That, and building codes might frown on some earlier-phase iterations, though YMMV.


My ~150k is for a starter home. That is what a ranch 3 bedroom, 2 bath with kitchen/dining and living room, no basement goes for in my area, based on 1990's code.

Current code is more stringent.

I know that people used to add on, that is however going to be more costly in the long term. Think about heating and A/C system, rather than buy the system once and keep it for 15 years as you expand you need to keep redoing duct work and adding capacity.

You will end up with insulation and vapor barriers between two interior walls.

Plumbing and electrical will become interesting as well.

I grew up in the kinds of homes you are describing, I like them but the building style does have challenges.

I also like the idea of people putting down roots, however this in turn limits people's opportunities.

This also limits the type of housing, what would be required in order to build a duplex or townhouse? A condo/apartment building?

Part of the current green movement talks about getting rid of suburbia and condensing into more urban areas. This would be a direct opposition to that as you would need to buy a lot size that guarantees that you can grow.


I don't think I have a problem per se with the notion of borrowing money, if that's what you are asking about.

I personally don't have an issue with you finding people who help you with building the house that agree to do that for some payment.


Are you willing to provide your address so we can stay at your place? It would be inherently oppressive if you don't.

There are homeless shelters where people can have shelter without paying rent.


I am living under my address, I am occupying that place, so I am not fine with providing my address. But I am fine with people living in abandoned houses.


How do you define abandoned? If I leave for 1 day is that abandoned? What about 1 week, 1 month or 1 year?


I think it depends on local customs and local agreements, it can differ. I guess I could consider a house abandoned if no one lives there for a year or 2. While for a mine, I think I would consider it abandoned the moment previous miners left it, such that other can get into the mine and mine some resource.


I'm a little confused. You said you want to get rid of private property but also your residence is occupied so I can't stay there. Who gave you the right to say that? If there is no private property it seems like we should be able to vote who can stay in your residence.


Unoccupied (for x or more months) second homes should be rented out, otherwise squatted in or burned to the ground, period. It doesn't matter if you disagree, Might Makes Right.

Be careful: Meme Magic works in both directions, and it is often difficult to detect its presence.


> burned to the ground

Which helps who exactly? Even squatting means that those houses will no longer be maintained and fall apart sooner or later which is how you end up having even more expensive housing long-term because of lower supply.

Higher taxation for uninhabited housing seems like an infinitely more sensible option...


> Which helps who exactly?

A seemingly simple question, but not really.

> Even squatting means that those houses will no longer be maintained and fall apart sooner or later which is how you end up having even more expensive housing long-term because of lower supply.

I would like for humanity to get together and figure out how to genuinely pursue an optimal experience for all people, but it seems like the most wealthy and powerful among us are "not very (genuinely) interested" in that. Okay then, Plan B it is, I say.

> Higher taxation for uninhabited housing seems like an infinitely more sensible option...

Agreed. That's a bit slow for my liking though, we've been kicking that can down the road for generations. I believe fear to be one of the most substantial motivators in existence, and there are a lot more of us then there are of them.


Occupation of bank-owned homes also causes a lot of trouble. I hope you never have to experience living next to squatters, as among other things, you might end up paying for their exaggeratedly high utilities.


> That is to say: it is a problem (the 500 - 1000 cases per year nationwide of occupation of people's homes is clearly problematic) but it's not a really widespread problem for most middle-class people (the vast majority of people even in the middle classes do not own totally unused property).

I don’t understand the point of trying to downplay or diminish this problem.

Is dividing the victims along arbitrary class lines and arguing that most victims are not “middle class” supposed to make it better? It’s a problem regardless of who owns the property.


> Is dividing the victims along arbitrary class lines and arguing that most victims are not “middle class” supposed to make it better?

That was in reply to the parent comment, arguing this is a serious problem primarily for the "not-so-rich middle class" that is being ignored because we falsely imagine it's mainly a problem for banks and rich people.

In fact, the data suggests this really is primarily a problem for commercial landlords and property speculators, and the risks for typical homeowners is very low.

This is in sharp contrast to most media coverage, and the parent comment, which paint a picture of substantial risks that your personal home will be taken over by squatters. That is not true. The real level of risk to the average Spaniard is very roughly 2x the risk that they'll be murdered this year - not absolutely zero, but not very far from something you'd worry about day-to-day in Spain.


Neither huge amount of somewhat legit cases of 'unused', nor media coverage doesn't make it right. I also wouldn't easily compare the murder count (which are hardly underreported) and occupation count (which most likely are, because legal way is way more expensive and lengthy).


> I also wouldn't easily compare the murder count (which are hardly underreported) and occupation count (which most likely are, because legal way is way more expensive and lengthy).

The legal process is definitely lengthy for actual occupation (usurpación) where the average eviction time is now but for people breaking & entering into your personal residence (allanamiento) it's not at all. If you can demonstrate this (easy enough: show you're the owner & empadronado, ask the neighbours to vouch for you, or show the utility bills all have your name on them) then it's clear allanamiento and that means there's no judicial order or further investigation required and the police can (and do) forcibly remove & arrest people _immediately_. It's a very nice clear-cut crime.

Basically the strong legal protections for personal dwellings cut both ways: they protect okupas who make somebody's empty property their legal residence, but they'll also strongly protect you & your own home if it's your legal residence.

There's more detailed background from an actual law firm on that here: https://vecindia.es/desalojo-okupas/cuanto-tardan-en-desaloj...

Given all that, I'd be quite surprised if allanamiento is underreported at all.

> Neither huge amount of somewhat legit cases of 'unused', nor media coverage doesn't make it right.

I'm not saying it's right, or that the problem doesn't exist. There are a small number of real cases of individual's homes being invaded. Even in other cases, property ownership does need to function reliably for commercial properties, and although owning empty properties may be problematic this is not a very good solution to that at all. I would be very happy to see usurpación cases resolved much quicker, and to increase property taxes on empty properties to reduce speculation instead.

That said, I do think that:

* The media hype about it is overblown, and for most people who worry about it (and some people worry about this a lot!) it's really not a serious risk.

* Political discussion & action related to it is frequently overblown for political advantage, and that's why some people think losing your home and being unable to recover it is far more common than it is.

* The victims here are generally large business and property speculators. The law should definitely protect those groups too, yes, but the strictness & speed of legal & police procedures should be proportional to the damage to the victims, and an empty shop being used by okupas is clearly less problematic than having somebody take over your actual home.


* Media hype (and political discussion) is overblown from both sides. That's partially what keeps the left in the news because otherwise they don't have much to offer against capitalism unless maybe Hamas puts some show. And carefully calculated policies and solving problems is not rock-n-roll enough.

* The victims here are everyone who okupas can reach, the limit is not some imaginary moral boundary of the trespasser, but a sheer cost/reward balance. And it's not obvious where you should draw the line. Is a small shop worth it less than a relatively well off private citizen? How small a shop should be to be protected?

Arguably in the countries where the banks are protected the private citizens look even more protected, but I'm not going into that.


> Is dividing the victims along arbitrary class lines and arguing that most victims are not “middle class” supposed to make it better?

The class lines aren't arbitrary: a squatter in someone's unused third vacation property or whatever is causing much less harm than a squatter claiming someone's only residence while they're out of town.

So yes, the dynamics of who it happens to can make it better or worse. The only reason that wouldn't be the case is if what you consider bad about it is a violation of abstract property owner rights, rather than the potential material harms.


I completely agree.


Thanks for the info. It's not that widespread, yes, but due to its gravity it's intoxicating and polarizing the public.

From what I observe, the amount of cases could have dropped down because many people choose to not buy or somehow shield their property (sometimes just filling windows with bricks, for example, which looks weird). So I'm not sure it's because the okupas/govt/police somehow changed the direction, it's just like the people get better at protecting themselves.

Btw, bying an apartment in Barcelona costs you 10% tax already, that probably discourages most speculation (and the prices have been stagnant for a couple of years).


> Btw, bying an apartment in Barcelona costs you 10% tax already, that probably discourages most speculation (and the prices have been stagnant for a couple of years).

I'm not too sure those measures deter those who are filthy-rich. Would you agree that it can be viewed as the cost of doing business... and, worst — that it could price out small competitors (allowing for the formation of cartels of big landlords)?


nope, there's no cartels of big landlords in Bcn, that's a leftist fantasy


Maldita is a joke. Sometimes they don't know how to read data, other times they actively engage into twisting numbers. Every time they debunk something, you can be sure that they debunked is actually true. I remember a case where the claim was something like "there's 300.000 cases of <something>" and they debunked it with "FALSE, bla bla bla bla bla"... and when you read the fine print, it was not 300.000 cases but 298.000 cases. They are 1000% unreliable.


Worth noting that the "EU GDP is stagnating terribly" narrative that motivates this post and quite a few of these comments is not true.

If you look at cost-relative (PPP) & per-capita numbers, the EU economy has been growing at a very similar or faster rate than the US for decades.

https://statisticstimes.com/economy/united-states-vs-eu-econ... has a good introduction to the top-line numbers. https://www.bruegel.org/analysis/european-unions-remarkable-... has a more detailed analysis.

The raw GDP differences come in very large part from exchange rate fluctuations and increasing costs & population in the US, not a meaningful increase in what the average American can buy with their earnings. PPP adjusts for these.

In terms of "how much <basket of normal purchases> can people buy" numbers, the EU is closer to the US today than it has ever been.

(That said, I fully agree with the post's conclusion regardless: a simple unified way to create an EU business & a universal language base would be a huge boost)


For more background, and some detailed discussion of the opposite argument ("display: masonry" over "display:grid"+"grid-template-rows: masonry") see https://github.com/w3c/csswg-drafts/issues/9041


A really nice feature here is that if you view the demos in a browser that doesn't support this (i.e. all current stable browser releases without special flags enabled) because they're building directly on grid layouts, they still appear in a pretty reasonable fixed-row format: https://webkit.org/demos/grid3/.

In each case it'd look much nicer with a proper masonry layout but it's still very usable otherwise (and of course you could feature detect to provide a better fallback if you're not happy with that anyway).


> This is pretty commonly used by apps to make them harder to reverse engineer. It prevents you from installing your own cert in the system's trust store and then using that to man-in-the-middle the app's communication with its backend.

As an aside - this isn't generally very effective or worthwhile nowadays.

Anybody doing reverse engineering at a level where they're installing their own system certificates & intercepting traffic can easily run many off the shelf scripts (Frida scripts, Objection, apk-mitm, etc) which will disable certificate pinning like this automatically. This takes _seconds_ to disable and is standard practice.

Even doing so manually is not especially difficult - the pin is fairly predictable value, and a reverse engineer can access all content of the mobile app, so can easily search for and just replace it before installation.

From a reverse engineering perspective, there's little-to-no value in purely client-side protections like this. You're not increasing the reverse engineering difficulty significantly and you do create many practical problems with e.g. certificate rotation in future.

OTOH there is an interesting case to be made for certificate pinning as a protection for users being unknowingly MitM'd. That's a different scenario that may well be worth defending against, but due to the many downsides of cert pinning, using certificate transparency to mitigate this is strongly preferable nowadays.


Mostly agreed - I think the one difference is that to disable the pin, you have to modify and sideload the APK, which a non-rooted phone may not permit you to do. (Or your modified apk might not have access to the app's local data, security keys, etc).

In contrast, with a non-pinned app, you can monitor traffic of that app as it is installed right now.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: