Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 5y ago · link · parent

I'd say the same about CloudFlare some time ago when it comes to blocking "enemies" that are not explicitly breaking the law, but here we are. Never say never, and even if an organization would never do such a thing today, who knows who is controlling the organization tomorrow.

comment 5y ago · link · parent

And related to that, somehow UFOs sightings tend to be mostly happening in the US and not so much outside of it, leading further evidence to it being a culture-bound syndrome rather than real-life events.

comment 5y ago · link · parent

> 2- Signing an SSL certificate is a one-time thing.

Certificates are definitely the weak spot here, as many of them already have a poor track record regarding security so probably poor spines too. Certificates requires central authority somewhere in the chain, and if they don't let you in, you don't stand a chance. Self-signed certificates are not gonna fly for most parts, unless you teach people to self-validate certificates with out-of-band ones.

comment 5y ago · link · parent

No, you're conflicting two different things. DDoS is obviously illegal as you're attacking someone else. The "forced to host a tenant that they object to" the other commentator is mentioning is regarding not liking their speech and ideas, not actions. Of course we should try to stop illegal activities that actively harm others. When it comes to Parler, it's unclear if Parler themselves were active in inciting the violence, just members who happened to be using Parler, or if they are related at all.

comment 5y ago · link · parent

Indeed. It's impossible to stop the spread of disinformation completely, no matter what we do. Instead, what we need, is better education on how to parse and digest information we receive from others. To stop taking everything we hear as automatic truth and instead consider all opinions, even if they sounds wrong at first. We need another Age of Reason instead of what we're executing on now.

comment 5y ago · link · parent

I hear you, we have different experiences for sure, which is why the issue is not black or white. I also have around 10 years of experience and would guess neither of my projects nor the projects I work on would be successful unless we had a free tier.

comment 5y ago · link · parent

It's worth noting that a lot of their reference architectures are hugely bloated for what they need to do. It's equally important to consider the cost of the solution, and many of AWS solutions are very expensive.

comment 5y ago · link · parent

> can I disable XHR while still running JS?

Sure, but it's not easy. You'd have to run content-scripts from some browser extension that polyfills the APIs you want to get rid of. But disabling XHR/fetch/others won't stop your browser from being able to make requests. CSS can make requests (like when you provide custom font paths, or images), HTML can also make requests (<img> and <iframe> elements comes to mind). Without those, we don't have a web anymore, we have a document storage without links to other resources.

CSS cannot be used as an external API as much as HTML cannot be used as an API. The trick the author is talking about under "CSS as an API" assumes that JS is activated, otherwise you can't really do anything dynamic with the data. And if you're not doing something dynamic (like you wanna display some text in :content under a :before element), you can just set it in the HTML response instead of in the CSS response.

I'm not saying that disabling JS by default is bad (I do so myself, enabling it only for trusted sites). I'm just pointing out that disabling CSS is not gonna give you any additional benefits. As long as you're in the browser, a HTML page can make requests for you, even if you have CSS disabled.

comment 5y ago · link · parent

Well, trade offs right? Rolling their own form component is sometimes the right decision, depending on context and more.

See also, #1 and #12 that should be considered in your example too.

comment 5y ago · link · parent

> Can you explain what the issue with this is?

The only issue I can think of is mixing code/data with styling information. Otherwise there is no "issue" per se.

> What does this circumvent that cannot be done with pure JS?

Nothing, it is just JS after all, and the idea that you can store data in other things than JS variables is not new (jQuery days we stored data in various attributes in the DOM to keep track of state). You could also store the same data in <title/> tag and get the same results. Not sure what the use case is, except it's a fun little hack.

Maybe this will spawn some new JS framework, nothing would surprise me anymore.

comment 5y ago · link · parent

It also shows a lack of understanding of how JS and CSS works in the browser. Disabling only JS would prevent anything from happen as CSS doesn't execute any code here, the JS part is responsible for that.

Except for enjoying a web without styles, there is no reason to disable CSS (together with disabling JS). You're not gonna prevent any more JS fudgery by having JS and CSS disabled compared to just JS disabled.

comment 5y ago · link · parent

Basically any popular SaaS in the wild today would disagree with your "Nothing good will come from it" comment as 99% of them offer some sort of free plan.

It's really hard to start a service from 0 and get users to join the platform when it's new. Imagine then that there is no way for users to try out the platform before subscribing to it, uptake will be even lower.

You don't have to reply to every chat and communication channel, especially if it's clear that you've already tried to help the user and it's not enough for them. Ignoring is a powerful tool many forget.

comment 5y ago · link · parent

> Talk of violence and murder is not free speech

US law always seemed strange to me but why is discussions around violence and murder not covered under free speech? The countries that take free speech seriously allow you to freely speak about anything, as long as you don't break the law (inciting violence for example). Seems strange US would be so far behind on this but still see themselves as last bastion of free speech.

comment 5y ago · link · parent

Indeed I could, but I much rather hire two co-workers and cut my salary is three pieces and give them one piece each, if it would come to that. Life's more than money and people jump on the chance to do something they find is meaningful.

comment 5y ago · link · parent

Google for some owns the full pipeline of websites, from where the website is being served from (Google AMP), scripts where the website does client side stuff (Tag Manager + Analytics), to the browser that reads it (Google Chrome / Chromium) and in some cases even the OS (Chrome OS).

Is not hard to imagine that they are getting rid of Cookies because they now have other ways of getting the data, and getting rid of Cookies would make things harder for competitors that don't own the full pipeline.

Even with that, I'm sure that the engineers working on Chromium/Google Chrome are being told that they are removing Cookies for the greater good and don't have insights into the longer pipeline that we're now seeing the middle off.

comment 5y ago · link · parent

I'm not sure where the company nor the employees are based, but it does seem ridiculously high and probably more than what 90% of the people in this world earns while working full-time. With that high salary and low amount of hours, I would personally feel bad, as the contrast against my peers and people around me would be too high.

comment 5y ago · link · parent

Just because "Every React codebase I've ever worked in has used JSX" doesn't mean "you still need to transpile JSX in most scenarios". Of course, if you're serious about using React, doing the transpilation before pushing your code to the CDN probably makes the most sense, rather than doing the transpilation client-side or using vanilla JS. But just because it's common, doesn't mean you need to follow that way of doing things.

comment 5y ago · link · parent

Just as a heads up, in the stickied post there is information about what the "rules" are for the subreddit. This is the third paragraph from there (https://old.reddit.com/r/CoinBase/comments/gbjetq/welcome_to...):

> If posting for assistance please provide your case number in your post. Moderators will only respond to PMs that have been requested in a post, and unsolicited DMs to individual moderators and chat requests will not receive a response.

Maybe if you try to create a normal post, you can get help faster.

comment 5y ago · link · parent

> In other words, if the underlying network is useless -- so is the currency...

Many of us agree with that, hence it would be preferable that cryptocurrencies were the standard, not country-currencies. In the grand scheme of things, Bitcoin ends up being more resistant and durable than the many ledgers each country runs themselves.

Or in other words, if you trust in Bitcoin, use it directly, not via Coinbase. As peter_d_sherman said: "currency is only as good as the underlying network"

For example, what would happen to the Turkish lira if the Central Bank of the Republic of Turkey burned down and somehow couldn't restore data from backups? With Bitcoin and others, the risk is much lower from central failure. Although individual failure risk is much higher. Tradeoffs.

comment 5y ago · link · parent

And if that wasn't confusing enough, Signal et al call the foundation "The Signal Foundation" while the proper, official name is "Signal Technology Foundation".

comment 5y ago · link · parent

Usually Coinbase goes down when the price goes down, not up. Probably because a ton of people are trying to sell their bitcoins as soon as the price starts walking downwards.

comment 5y ago · link · parent

I for one enjoyed your comment, I think it's just a heated subject and HN tends to swing up/down with the votes on those topics, no matter if you argue well or not. I don't necessarily agree with everything you said, but it's well argued in general, and now I do understand the point of view I did not understand before. So thank you!

comment 5y ago · link · parent

This is the assumption I had as well last time I tried it, but it's not like that, at least last time I tried it a couple of years ago. Might have changed by now.

comment 5y ago · link · parent

Yeah, and a bunch of other caveats, hence my ask to look into the specific technologies to understand more how it works, and why it works the way it works.

And while it's true that you don't strictly need a server for signalling, most people would expect a library called PeerJS to work P2P over the internet, without requirements to have a speaker/microphone and also without having to be within speaker/microphone range.

comment 5y ago · link · parent

Such a strange wording. Sounds like you're saying "It's too simple, we need to make it more not-simple" while anyone would agree that simple is better than non-simple. What if it can be simple, useful and scalable? That's the ideal I think.

comment 5y ago · link · parent

Tested this a couple of years ago and Chrome prevented WebRTC connections from ever establishing if you're not connected to internet proper (it was doing some lookup to a Google domain before trying to actually create the WebRTC connection, even if I had nothing to do with Google, and stopped the attempt if it couldn't connect). Might have changed by now.

comment 5y ago · link · parent

A little bit off-topic but still relevant to jamming. I noticed the other day I went to a big electronics store (Mediamarkt) and noticed that my cellular connection died just as I entered the store. When asking about it, they told me the reception is just so poor there so I should use their WiFi instead. As I wanted to compare products with other stores, I used the WiFi.

But afterwards I started thinking, is it possible to store is doing this on purpose, in order to ex-filtrate data via the WiFi connection? They wouldn't get more than the hostname if it's over https, but who knows what more kind of data they could get from it. They could also block websites of competitors and blame the internet, and prevent consumers from comparing themselves.

Or I'm just a conspiracy-nut lite, but it wouldn't surprise me a lot if it was like that.

comment 5y ago · link · parent

Fun fact about PeerJS, you'll need a server in order to use it (look into STUN/TURN/ICE for more info). The maintainer seems to be hosting one default instance that goes down from time to time. https://github.com/peers/peerjs/issues/671 https://github.com/peers/peerjs/issues/693

If you're looking to do "pure" P2P in the browser, we're not there yet as we cannot accept incoming connections without something in between right now.

comment 5y ago · link · parent

Of course you don't have to have nodejs to handle large amounts of http requests, if you spend enough time you can get any language/framework to handle the amount you need :)

But, seems that at least in the TechEmpower framework benchmarks, es4x (JS) ends up on position 9 while the closest PHP framework ends up at 13. Now it's just a small benchmark with specific tests, but I do think it's easier to make NodeJS handle large amount of requests than PHP. Although again, you can definitely do large amounts of requests with PHP too. I've spent about 5 years on each, found that getting good performance out of V8 is easier than out of PHP.

1
256257258
307