Hacker Newsnew | past | comments | ask | show | jobs | submit | richeyryan's commentslogin

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.


The move is to ban TikTok.


That seems to be the case - big win for the lobbyist of meta and Google.


ByteDance can avoid ban by selling it. Why wouldn't they sell it?


I don’t think they can sell it without the Chinese part. Which they probably cannot sell. So basically it is a ban.


Why can't they sell it without the Chinese part?


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


>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.

If a condition in JSX gets too complex I normally extract a component-level function and call it from the JSX part of the component.


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.


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.


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


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.


But you have to look at the whole string and check if send has a further parameter. With `send(msg)` you see it without taking extra time of reading.

And let the compiler optimize your code, that is the job of a compiler. Write your code for humans.


Perhaps this falls into the repetitive boilerplate category you referred to, but if you want framework-agnostic domain objects that still work well with Svelte, create your own using the observer pattern.

Create an object with a subscribe method and whatever other methods make sense for updating its state. Svelte will treat it like one of its stores, and it will work with the $ syntax. It can be used with React via its `useSyncExternalStore` hook. It can be used with SolidJS via its `from` utility.

If you don't want to handle the set-up boilerplate, you could use another library like Effector or RxJS, but of course, that means another dependency. There is a gradual move to make something like this a part of the platform[1], but who knows when or if it will land.

[1] https://github.com/domfarolino/observable


In my experience, the quality and depth of my code reviews were a main contributing element in my last promotion conversation for a senior+ role. It wasn't even a metric I had to scrounge up but something my manager proactively raised to justify approving the promotion along with other criteria. Other team members reported to him that my feedback helped their growth.

However, there is an aspect of being in the right team and company at the right time. If I worked in a team as experienced and knowledgeable as me, my feedback would have less value. I could also easily imagine some managers making the number of reviews an empty metric that had to be tediously gamed, much like green squares on GitHub.

Is it more common than not that senior engineers aren't appropriately rewarded for investing time in code review? Probably, most companies are imperfect in one way or another.


I'm viewing it from Ireland, and half way down the page, I see a full-screen banner for Disney+ with a notable personality from each of their franchises Moana (Disney), Mr Incredible (Pixar), Thor (Marvel), Jyn Erso (Rogue One/Star Wars) and Jeff Goldblum (National Geographic). I suppose that's what you're seeing?


Yeah same here, almost the entire landing page that I can see on my monitor is immediately just Disney+ advertising.

Nothing at all to hint I'm on nationalgeographic.com


Yes, that's it. Mr Incredible and Buzz Lightyear look very similar I guess.


I saw a production of Ulysses twice in the Abbey Theatre in Dublin on two separate runs. I had already read the book, but seeing it performed was a completely different experience, like seeing a Shakespeare text performed in film or on stage. Similarly, I saw an adaptation of the Cyclops episode in the New Theatre, which was incredible. I know Ulysses is unfilmable, but I'd like to see someone like Paul Thomas Anderson try.


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

Search: