HackerTrans
TopNewTrendsCommentsPastAskShowJobs

richeyryan

no profile record

comments

richeyryan
·2 yıl önce·discuss
It seems like the move is to force ByteDance to set up a company incorporated wholly in the United States, which would then be subject to the oversight of the US government. Then, Byte Dance would lease the IP surrounding TikTok to this separate company. All the US customer data would be siloed on US servers and perused by US agencies and Byte Dance would still get their revenue from the US market. I don't know if the close association with ByteDance and China would still make that sort of arrangement a target of the US government.
richeyryan
·2 yıl önce·discuss
I suspect they want better condition handling. Because JavaScript lacks a useful conditional expression beyond ternary expressions, condition handling in JSX generally uses boolean operators or ternary expressions. Suppose the conditional logic is in any way complex. In that case, your choice is to use nested ternary expressions, which can be hard to read or to somehow break the condition out of the JSX using a helper function or separate component so you can use if statements in a regular function context. SolidJS added conditional helpers to its JSX flavour to address this issue[1]. The React team seems ideologically opposed to the idea as it presumably moves JSX away from using only JavaScript for handling logic.

[1]https://www.solidjs.com/docs/latest/api#show
richeyryan
·2 yıl önce·discuss
Most computer users don't use command-line apps day in and day out. Most computer users nowadays use chat apps (Discord, Slack, Whatsapp) and have probably encountered bots on those platforms before. There is an inherent familiarity that makes it feel more accessible.
richeyryan
·2 yıl önce·discuss
Substitute software for standard accountancy practices or a filing system that led to lost files, giving the incorrect impression that postmasters were stealing, and the result would have been the same. The core issue is an organisiation that values avoiding blame at all costs over transparency and accountability.
richeyryan
·3 yıl önce·discuss
It would be nice if the author would add mozjpeg[1] to the comparison. At certain image resolutions, it can produce smaller file sizes than WebP, and because it is still a jpeg, it has a much better compatibility story, which the author alluded to.

[1]https://github.com/mozilla/mozjpeg
richeyryan
·3 yıl önce·discuss
I think the use of template strings simplifies it, even inline:

const { status } = await send(`${capitalize(greeting)}!`)

console.log(status)

It does reduce the number of discrete operations to make the pipe example look more impressive, though.