- Joined
- May 8, 2022
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
isnt it something like 30k+ lines for just the code for students and it's just an if else statement nightmareHow can you mention a programming war crime without bringing up YandereDev?
How can you mention a programming war crime without bringing up YandereDev?
isnt it something like 30k+ lines for just the code for students and it's just an if else statement nightmare
Just a reminder, if you think those case statements as the beginning of video 2 are bad. I'll remind people that the entirety of Undertale's dialogue is written in a single case statement that goes for 3,000 lines.
Don't forget Maldavius FigtreeHow can you mention a programming war crime without bringing up YandereDev?
Toby Fox is a good game developer, but not a good programmer.Just a reminder, if you think those case statements as the beginning of video 2 are bad. I'll remind people that the entirety of Undertale's dialogue is written in a single case statement that goes for 3,000 lines.
class Program {
static void Main(string[] args) {
if (System.Console.OpenStandardOutput()
.BeginWrite(new byte[] { 072, 101, 108, 108, 111, 032, 087, 111, 114, 108, 100, 033 },
0, 12, null, null)
.AsyncWaitHandle.WaitOne()) { }
if (System.Console.ReadKey().Modifiers == 0) { }
}
}
That's nothing. Check this out: https://github.com/Hello-World-EE/Java-Hello-World-Enterprise-EditionHere's some obtuse ways of writing "Hello World" to the C# console.
C#:class Program { static void Main(string[] args) { if (System.Console.OpenStandardOutput() .BeginWrite(new byte[] { 072, 101, 108, 108, 111, 032, 087, 111, 114, 108, 100, 033 }, 0, 12, null, null) .AsyncWaitHandle.WaitOne()) { } if (System.Console.ReadKey().Modifiers == 0) { } } }
This guy's taken it even further
What a fucking furry niggerJust a reminder, if you think those case statements as the beginning of video 2 are bad. I'll remind people that the entirety of Undertale's dialogue is written in a single case statement that goes for 3,000 lines.
It's not completely terrible (unlike Undertale). It's in one place, like it would be in a normal resource file (although I wouldn't hate a state machine with every room being a class, and per-room dialogue), and he made a markup microlanguage for text effects.Just a reminder, if you think those case statements as the beginning of video 2 are bad. I'll remind people that the entirety of Undertale's dialogue is written in a single case statement that goes for 3,000 lines.