News for hackers. Stuff that matters.
Re:GOTOphobia Considered Harmful (In C) by snovv_crash on Sunday February 26, 2023 @05:20PM (#34950192)
Sure it's possible to have horrible spaghetti today. Just look at any pubsub architecture based system and tell me what piece of code executes after another. It's super popular, and it's GOTOs all over again, just with data instead.
Re:GOTOphobia Considered Harmful (In C) by jjav on Monday February 27, 2023 @02:50AM (#34954067)
This is a good observation, thanks. Yes, some of these cloud-native patterns do become what is essentially a spaghetti flow pattern, even if not in the fragmented pieces of code directly.
Re:GOTOphobia Considered Harmful (In C) by zozbot234 on Monday February 27, 2023 @03:10AM (#34954172)
Async-await in general has all the same pitfalls. In fact, async programming, being based on reifying program continuations, is a GOTO equivalent in a quite literal sense.
Re:GOTOphobia Considered Harmful (In C) by snovv_crash on Monday February 27, 2023 @08:03AM (#34955912)
It's not just cloud, ROS uses this for robotics, for example.