Better HN
topnewbestaskshowjobs
Log inSign up

klankeser

5 karma · joined Aug 14, 2024 (2y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

I would recommend reading the article example once more. Going from the example, without the overload, the function would return a union type which means any time you use the function, you have to put a type check to the result to know if the output is a list or not. With overload, as soon as an argument to the function is a certain type, the output is determined, so you won't need to type check.

comment 2y ago · link · parent

Changing ball trajectories accurately is hard but you are editing something in motion that is visible only for a few seconds, is in air, and will mostly be viewed through a bad screen. Adding in cg bins on the other hand, you need Beckham to do 3 kicks that land where the shot is looking, but more importantly have to get those cans tracked perfectly for the entire duration of the shot as they are always visible. I believe that is a much harder to pull off.