Live data from Hacker News

How Dwarf Fortress is built

stackoverflow.blog

101–110 of 407 posts

Re: How Dwarf Fortress is built

#101

Making the item system polymorphic was ultimately a mistake, but that was a big one. Q: Why was this was a mistake? A: When you declare a class that’s a kind of item, it locks you into that structure much more tightly than if you just have member elements. It’s nice to be able to use virtual functions and that kind of thing, but the tradeoffs are just too much. I started using a “tool” item in the hierarchy, which st…

"Tool" is still a class, with perhaps very generic polymorphic methods (e.g. do_default_action() ). The problem is not polymorphism per se, but rather about having a deep class hierarchy aka lasagna code. My policy: OOP is like salt. Use little and that's great. I only allow a single inheritance layer, and ideally no inheritance at all.

My policy is OOP is like Heroin. Don't even start.

Re: How Dwarf Fortress is built

#102

This is a little bit of a hijack but if I wanted to start coding games as a side project, where would I start? Which platform? Mobile, PC, console? Any good introductions on the subject of solo game development? I know I can google this, but I trust HN users more than the Google algo.

have you seen HandMadeHero? https://handmadehero.org/

Plus what do you mean by coding games specifically? Is it game engine programming? Game design? Or other related stuff?

Re: How Dwarf Fortress is built

#103

IMO that's one of the best ways a single programmer can spend his career. No weird requirements, no deadlines, no nothing, nada. Just one's passion and a product. Whether it is successful is irrelevant. Kudos Mr. Adams for making the achievement and moves gaming history. Going back to the interview, I found this line (and the logic attached) interesting: >Making the item system polymorphic was ultimately a mistake, b…

Everything about it is wonderful (I really mean that) except the fact that he's sponging off his mother to do it. I can't help but feel that it's a drop of vinegar that spoils the whole cup of milk

He is? He's making almost 9k a month, that's pretty good if you ask me. https://www.patreon.com/bay12games

Re: How Dwarf Fortress is built

#104
post #2

I read everything about this game I can get my hands on. I don’t fully understand why I find dwarf fortress so intriguing. It’s such a pure passion project… that actually made it.

Do you actually play it? I'm a bit the same about reading about it, yet I have never once played it for myself!

I love reading about it, but have played for maybe 30 minutes. The game doesn’t intrigue me, but the building of it does.

Same for Minecraft and similar. Figuring out the software and the cool way it came into existence is the problem to solve, actually playing it is (perhaps incorrectly) predictable details and so boring.

Re: How Dwarf Fortress is built

#105

Earlier quoted context omitted.

I have a passion for programming but I need something to drive me. I'm useless when I try and make stuff on my own. But if I've got someone telling me "I need a system that does X", I just get highly motivated in delivering it. Like I need requirements.

Damn you sound exactly like me...when I work for my own projects they usually die off quickly once I figure out how to do it (without actually implementing it but I'm pretty sure it can be implemented in this or that way). But if it comes from a friend, or a colleague then I'm super focused on it until it's done. It's almost as if I do projects to show off to other people or I like to serve other people.

Yeah, showing off or feeling helpful. That explains it almost perfectly.

Re: How Dwarf Fortress is built

#106
post #103

Earlier quoted context omitted.

Everything about it is wonderful (I really mean that) except the fact that he's sponging off his mother to do it. I can't help but feel that it's a drop of vinegar that spoils the whole cup of milk

He is? He's making almost 9k a month, that's pretty good if you ask me. https://www.patreon.com/bay12games

I stand very much corrected, I didn't realize the project had gathered so much support steam compared to 5-10 years ago. Happy to see it

Re: How Dwarf Fortress is built

#108
post #33

> What’s your favorite bug and what caused it? > A: It’s probably boring for me to say, but I just can’t beat the drunken cat bug... That was the one where the cats were showing up dead all over the tavern floor, and it turned out they were ingesting spilled alcohol when they cleaned their paws. I think that bug explains very well just how deeply complex Dwarf Fortress really is. Drinks can be spilled. Some drinks ha…

Unfortunately it remains unexplained (by the article) why this is considered a bug. It would be unethical to test, but this seems like perfectly cromulent behavior one might actually see in real life.

Cats in bars don’t die of alcohol poisoning regardless of the amount of beer spilled on the floor.

Re: How Dwarf Fortress is built

#109
post #88

Earlier quoted context omitted.

Do you actually play it? I'm a bit the same about reading about it, yet I have never once played it for myself!

Hah, this is like EVE Online for me. I love reading about the espionage and cloak and dagger and pure insanity, but other than a brief toe-dip...oh no I will not play it. DF lives in my blood, however.

Totally agree on reading about EVE Online. This is a real classic if you haven’t seen it before, and actually contains a lot of very important notions for identifying Ponzi schemes: http://web.archive.org/web/20091026234156/http://geocities.c...

Re: How Dwarf Fortress is built

#110

IMO that's one of the best ways a single programmer can spend his career. No weird requirements, no deadlines, no nothing, nada. Just one's passion and a product. Whether it is successful is irrelevant. Kudos Mr. Adams for making the achievement and moves gaming history. Going back to the interview, I found this line (and the logic attached) interesting: >Making the item system polymorphic was ultimately a mistake, b…

I have a passion for programming but I need something to drive me. I'm useless when I try and make stuff on my own. But if I've got someone telling me "I need a system that does X", I just get highly motivated in delivering it. Like I need requirements.

Yeah, I'm the same. I got into programming because I like solving people's problems. The hardest projects for me are the ones where I'm stuck in a cave for months working on a greenfield project that no one is using yet.
Post reply on HN