Live data from Hacker News

A Minecraft server written in COBOL

github.com

21–30 of 127 posts

Re: A Minecraft server written in COBOL

#25

Roast me but the code is very readable. Compare with some modern languages where you have to stare at it for minutes to understand what's going on.

COBOL was designed to be written and read by non-programmers. That was the theory, at least.

And let’s not forget, so was FORTRAN. (Programmers coded in Assembler back then.)

Re: A Minecraft server written in COBOL

#26

Roast me but the code is very readable. Compare with some modern languages where you have to stare at it for minutes to understand what's going on.

That’s why I like Ada (and VHDL). Somewhat verbose, perhaps, but much more readable than more “modern” languages.

Re: A Minecraft server written in COBOL

#27

Roast me but the code is very readable. Compare with some modern languages where you have to stare at it for minutes to understand what's going on.

I once worked at a FAANG company where I had access to some of the leading C++ experts in the world (some were part of the international language committee). I emailed an internal C++ list asking whether a certain line of code would create a memory leak. It was a pure use of STL templates and casting. The experts could NOT agree whether I was doing it correctly. Some expected a leak, others didn't.

This true little story says everything about C++. JavaScript is full of these things too.

Re: A Minecraft server written in COBOL

#28
My kids are just getting into Minecraft on the switch and I am a bit confused by the options for hosting a server. I’d love to hop on and play with them on a self-hosted server, what’s the current best way to do that or is that level of cross-play between PC and Switch on a self-hosted solution even possible?

Edit: I don’t currently play, which is why I’m not familiar with what’s out there

Re: A Minecraft server written in COBOL

#29

My kids are just getting into Minecraft on the switch and I am a bit confused by the options for hosting a server. I’d love to hop on and play with them on a self-hosted server, what’s the current best way to do that or is that level of cross-play between PC and Switch on a self-hosted solution even possible? Edit: I don’t currently play, which is why I’m not familiar with what’s out there

There's actually two completely separate games (Java edition and Bedrock) that can't cross-play with each other. You can buy a Bedrock edition Minecraft for Windows that should be able to cross-play with the switch.

Java Edition is the original game and it's fairly easy to either host your own server (The dedicated server is just a .jar you run) or pay for a server ($10-40/mo) using a game server host.

Unsure about bedrock, there's some instructions here (https://www.reddit.com/r/Minecraft/wiki/bds/#wiki_bedrock_de...).

Re: A Minecraft server written in COBOL

#30

My kids are just getting into Minecraft on the switch and I am a bit confused by the options for hosting a server. I’d love to hop on and play with them on a self-hosted server, what’s the current best way to do that or is that level of cross-play between PC and Switch on a self-hosted solution even possible? Edit: I don’t currently play, which is why I’m not familiar with what’s out there

You have to play the Java version on pc to connect to your own server software.
Post reply on HN