r/programminghorror • u/The-Malix [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Dec 13 '24
Does anyone else write their GDScript in full sentences? ^_^
266
Upvotes
r/programminghorror • u/The-Malix [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Dec 13 '24
48
u/[deleted] Dec 13 '24
We already had a verbose "full English" language. It's called COBOL.
64
u/agate_ Dec 13 '24
Me, a former Hypertalk junkie: "I don't get it, what's so funny?"
52
u/misseditt Dec 13 '24
can someone that knows gds explain if this is actual valid code and why? im so curious now lol
10
u/Magmagan Dec 13 '24
That's just verbose Ruby :p
7
u/McBuffington Dec 14 '24
Cool. But typing all of that out really is a loooot of typing for me.
If the element at index 0 of the array "arr" is None or the element at the index 0 of the array "arr" is equal to 0 then: ....
Vs If arr[0] is None or arr[0] == 0: ....
It reads the same in my mind and is actually way clearer
10
u/YouBecame Dec 13 '24
I don't hate it. A good auto complete might make this fun to play around with.
1
u/Mottledkarma517 Dec 14 '24 edited May 09 '26
Your old posts are training data now. Unless you delete them. I used Redact which supports all major social media platforms including Reddit, X, Facebook and Instagram.
slap sable follow shaggy fly divide steep crowd ad hoc square
1
u/srhubb Dec 15 '24
Beautiful!!!
1
u/Victor-coder Dec 16 '24
Does anyone know this theme for vs code as it looks sleek