Better HN
topnewbestaskshowjobs
Log inSign up

j-f1

18 karma · joined Mar 22, 2020 (6y ago) · 12 submissions

[ my public key: https://keybase.io/j_f; my proof: https://keybase.io/j_f/sigs/6ke47XvKKa_Sd1eIrmOP5HkyZbr9mglX40FEDVG_mAs ]
Submissions

comment 3y ago · link · parent

I’m not sure about macOS, but on iOS you can install the App Store Connect app (https://apps.apple.com/app/id1234793120) and then enable notifications for new reviews from there. ([app] → Notifications → Mobile → Reviews, [your initials] → Notifications → Customer Reviews)

comment 3y ago · link · parent

There were a lot of changes made in the Swift 1–3 time frame as the team learned what it was like to write Swift at scale and developed a unique language style. That’s all done now, and Swift 5 code (released 2019) should continue to be compilable with few exceptions long into the future. It’s different enough from Swift 1 that it’s basically a different language though.

The biggest source-breaking change on the near-term horizon (which is still in progress) is compile-time enforcement of concurrency safety.

comment 5y ago · link · parent

Looks like someone figured out how to use Svelte inside of Observable a while ago — see https://observablehq.com/@ajbouh/svelte-experiments

comment 6y ago · link · parent

There were security vulnerabilities a while ago that resulted from people being able to upload React-element-shaped JSON objects in certain places strings were supposed to go. IIRC this allowed for XSS, so React added a special symbol (the $$typeof key) that would have to be imported somehow in order to add it to the plain objects.

comment 6y ago · link · parent

For #1, check out JSON Feed (https://jsonfeed.org/). It’s at least supported by Feedly, and it’s probably supported elsewhere too.

comment 6y ago · link · parent

> that’s why some content authors, like Daring Fireball’s John Gruber, as an example, only provide their full RSS feed to paying subscribers

This is false. I am not a paying subscriber, but I still get the full content of Daring Fireball articles in my RSS reader. In fact, the RSS feed is one of the links on the site’s sidebar. https://daringfireball.net/feeds/

comment 6y ago · link · parent

I’m guessing it’s the Dat Protocol → https://www.datprotocol.com

comment 6y ago · link · parent

Fortunately, if you use Prettier to format your JSON files too, it’ll quote unquoted properties and remove trailing commas: https://prettier.io/playground/#N4Igxg9gdgLgprEAuEwA6UAEmDOE...

comment 6y ago · link · parent

This is actually quite challenging because the template language allows you to insert template tags into any location in the template file, and while people usually put them in reasonable places, there’s no guarantee. For example, someone could do a thing like `{{ less_than }}div class="foo">abc</div>` and that would be totally valid but a nightmare to parse.

That’s different from a more structured template-style language like JSX, where there are only a few valid places to embed JS expressions so it isn’t too challenging to make them all look good.

comment 6y ago · link · parent

There’s https://github.com/jhipster/prettier-java, which expands Prettier to work with Java, but I’m not sure how complete or thoroughly-tested it is. It also requires that you have Node installed, which could be be a downside for people who only work with Java.

comment 6y ago · link · parent

This isn’t really possible due to Prettier’s design, unfortunately. It basically lays out each statement on one line until it gets to the maximum width, then tries a variety of ways to break the line until it’s under the limit.

We also don’t want to look at how the code is formatted coming in because one of Prettier’s goals is to make sure everyone’s code looks the same, which wouldn’t be possible if we looked at how the input is formatted too much.

comment 6y ago · link · parent

Isn’t this true of any client side site? If the client side JS has access to some information, it’s always possible for the server to inject custom JS that returns the data. Theoretically this setup provides little additional security but it does allow (for example) people to use a client pinned to a version they’ve verified to not leak information and collaborate without worrying about leakage. (Excalidraw developer here)