91 points · by chmaynard · 6y ago · 58 comments
This is probably also why clicking on any of the buttons causes the text to vanish during the click. It's turning white, because the default for an active button is `color: activebuttontext`.
The new hint values for the soft key enter is a small but very useful addition!
I would like more information about Safari being available on Apple Watch.
Normally I'd think it's inclusion was an accident or oversight, but it's mentioned at both the top and the bottom of the article.
> The implementation is available through the navigator.clipboard API which must be called within user gesture event handlers like pointerdown or pointerup, and only works for content served in a secure context (e.g. https://). Instead of a permissions-based model for reading from the clipboard, a native UI is displayed when the page calls into the clipboard API; the clipboard can only be accessed if the user then explicitly interacts with the platform UI.
that looks pretty cool... do other browsers implementation also work like ↑ that?
https://docs.house.gov/meetings/JU/JU05/20190716/109793/HHRG...
> WebRTC for videoconferencing is not supported for third-party browsers because Safari displays a prominent UI to make sure the user knows when a website is recording using the camera and microphone. Apple does not yet have a way to make this UI work in other WebKit clients.
That's a far cry from what you're insinuating.
Safari also doesn't support service workers or the fullscreen API.
And then they are stifling competition for their app - by “forcing” you to create an app that integrates with dialer and your call history?
Maybe your startup was “impacted” by not having the expertise or funding to create a native app like at least a dozen companies have done?
Facetime is a feature that helps sell their devices. If they don't ultimately make money from it, why did they spent money to create it?
FaceTime and Messages (blue bubbles) are the only strong lock-in Apple has beyond brand effect. People don't buy iPhones over Android for Maps or Mail: they do it for the camera, FaceTime, and the blue bubbles. See the comparative market irrelevance of iPads, Macs, and other Apple products.
> And then they are stifling competition for their app - by “forcing” you to create an app that integrates with dialer and your call history?
They force developers to choose / balance resources between iOS and the web. Because the desirable users are on iOS, resources must be wasted on proprietary native apps instead of cross-platform web apps that would theoretically work on any device/OS.
They specifically want to funnel apps through the App Store, so that they can gouge developers for 30%.
> Maybe your startup was “impacted” by not having the expertise or funding to create a native app like at least a dozen companies have done?
My case isn't representative: we did have the expertise and the funding, we built the native app, we found product-market-channel-model fit, and after I stepped away, they've expanded internationally and closed a Series A this year. For us, the impact was diverting tens of thousands of dollars to Swift development. At the time we saw this as merely technical reality: we also built an Android app for performance reasons.
That was years ago. By now, there should be many competitive video conferencing web apps that work across devices, and there aren't.
At this point Apple's anti-competitiveness has become undeniable. It looks like the Justice Dept is setting up to slam them for bundling/tying Safari to iOS as they did Microsoft with IE/Windows (the ruling that popped the dot com bubble).
I've stepped away but AFAIK they're still using it. It was expensive but worked with our business model ($20 for a successfully completed self-service video call between service provider and end customer, $50 to have the virtual survey performed/recorded by our trained video surveyors around the world, $90 to also have priced).
I'd compare TokBox, Twilio Video, and Jitsi.
Their browser monopoly on ios can only last so long. The same strategy backfired horribly for ms in the ie6 days.
(And no, you can't install an alternate browser on ios. It's just a crippled "skinned" shell on top of safari)
> Changes in this [13.1] release of Safari were included in the following Safari Technology Preview releases: 90, 91, 92, 93, 94, 95, 96, 97, 98.
No fixes for SameSite Lax cookies under service worker routes.
No page lifecycle API so we better handle iOS PWAs.
Also, for the SameSite Lax thing, can you explain a bit more? That sounds like a bug. If you have a reproducible case, please file at bugs.webkit.org and let me know the Bug ID.
Also another bug, which is maybe related: https://rocky-fjord-97287.herokuapp.com
It solves really no problem (I mean, Python, Ruby and almost all other programming languages are doing fine without preventing against variable reassignment, and we can still reassign function parameters and object properties in JS).
So much brain power wasted on this useless thing.
Also using `const` everywhere is semantically misleading and ugly. It's not what you would expect in 99% of other programming languages out there.
- it has lexical scope instead var function scope
- it does not hoist like var
- it prevents accidental reassignment
Accidental reassignment happen more often in JS because of non-lexial scoping, weakly typed and async functions. Also, both Ruby and Python are "strongly typed" as opposed to weakly typed Javascript.I’ve always thought const was something of a mid feature, as it doesn’t generally do what people think. He’ll back when Opera was an actual browser engine it just used const as an alias for var.
I look at it as mostly a safety net: I'd rather use const by default, unless I have a good reason to be able to mutate the variable. (To flip it around: what problem does being mutable-by-default solve?) 9 times out of 10, I don't need to change the value for the lifecycle of the function; and often if I do, the code is cleaner anyway if I use an immutable pattern (such as `const foo = bar.map()` rather than `for(x in bar) foo.push()`). Thanks to the magic of Merkle trees, we can generally make fresh pointers without it costing much memory overhead.
const arr = ['foo'];
arr[0] = 'bar';
assert(arr[0] === 'bar'); // !!!
Something like that would make sense though IMHO:
const PHI = 1.618;
I don't get how JS is designed really, they try to solve a bad design (`var`) but they introduce another bad design (`const`) and they make things even messier. Many devs ship JavaScript thought TypeScript these days, so I hope Microsoft can clean this mess one day.
Personally, I default to const, and use it pretty much 99.9% of the time. I use `let` in the few cases where it's actually useful to have a block-scoped variable. Ironically, this probably does a better job of "communicating" intent than the ritualistic obsession with "immutability" does, simply because you know if you're deviating from the default, there is a good reason for it.
> they try to solve a bad design (`var`) but they introduce another bad design (`const`)
`let` is intended to be the actual `var` replacement, and it's okay for that. I think there's an argument that `const` is a bad design, in the sense that it's deceptive, under the not-that-uncommon case you describe. Still, I'd rather have it than not, and I personally still like defaulting to `const` and opting-in to `let` in the (rarer and rarer) event that it's needed. (I'm also on 100% TypeScript at this point, which doesn't remove the potential for problems, but does provide an extra layer of guard rails in general.)
performance-wise, const is also around 20% faster than var, and usually faster than let (you can test it yourself: https://jsperf.com/let-vs-var-performance/67).
Edit: I forgot (because I always just write `const` anyway), but TSLint/VScode also default to bothering you to use const if you define a let/var and never re-define it.
I can see the argument that using `const` over `let` doesn’t bring any huge benefits, but I don’t see what the harm is either. I never found it a waste of brainpower. At this point it’s idiomatic, so I think using `let` everywhere is more likely to have people confused.