News for hackers. Stuff that matters.
Re:Writing a Playstation 1 Game in 2024 by badsectoracula on Thursday August 22, 2024 @02:53PM (#41323329)
I am used to thinking that if i want to post code that "anyone" would understand it'd be in C but i wonder if nowadays JavaScript would be a better choice (as long as it applies to JS anyway) for a "lingua franca".

(Python might be another choice but i don't really like writing it :-P)

Re:Writing a Playstation 1 Game in 2024 by cubefox on Thursday August 22, 2024 @04:09PM (#41323958)
One problem with C or C style code like JavaScript is that it often uses opaque special characters like various different brackets where the meaning isn't self-explanatory. E.g. "if (A) {B}". This can be expressed more naturally with "if A then B end if" in pseudocode. Or another C offender: "a = b". In pseudocode this would typically be "a ← b" or perhaps "a := b".
Re:Writing a Playstation 1 Game in 2024 by spookie on Friday August 23, 2024 @05:34PM (#41333312)
How is walrus any more intuitive?
Re:Writing a Playstation 1 Game in 2024 by cubefox on Saturday August 24, 2024 @03:14AM (#41336257)
:= is at least known from mathematics. It's also asymmetric, unlike =.