Comment by ๐Ÿ‘ zipsegv

Re: "Hi guys,ive been working on a roguelike for the past fewโ€ฆ"

In: s/C_Programming

i will be refactoring later,which by the way is a thing you should never do,instead you could've been doing good code since the begining.

tbf you can't always know whether your code is "good' from the beginning, especially when you do something new for the first time. I've written a lot of parsers for example and every time I write one it's always better than the previous one I've written. and my first parser was completely terrible, looking back on it.

refactoring is a natural part of the development cycle

๐Ÿ‘ zipsegv

2025-08-10 ยท 9 months ago

6 Later Comments โ†“

๐Ÿ’€ abilu [OP/mod] ยท 2025-08-10 at 02:17:

Oh,i forgot to mention that,the code that i have to refactor,were written _without_ readability in mind,i started this just for a ncurses test,but now im quite invested in it. Thanks for the insight!

๐Ÿš€ stack ยท 2025-08-11 at 17:48:

I find that my code needs 3 rewrites to be good.

First one to figure out what I am doing.

Second after trying to fix the first, because it was crap and making a bigger mess.

Third, to get it done right.

Generally I find that everything including data structures and algorithms is way off and trying to clean up wastes more time than starting over.

๐Ÿš€ Ivy_Mycelia ยท 2025-09-25 at 07:31:

Sounds fun! Any update yet on it?

๐Ÿš€ stack ยท 2025-09-25 at 13:13:

You could use tildegit.org, it's a lot like github.

I have a bunch of C projects there

My latest, a really fast embeddable Gemini server:

โ€” https://tildegit.org/stack/fornax

๐Ÿš€ Ivy_Mycelia ยท 2025-09-25 at 16:53:

@stack that actually looks so much nicer then GitHub imo. Might make the switch

๐Ÿš€ stack ยท 2025-09-25 at 16:55:

And it's not owned by Satan.

Original Post

๐ŸŒ’ s/C_Programming

๐Ÿ’€ abilu: [mod]

Hi guys,ive been working on a roguelike for the past few days,the code is absolute shit now but i will be refactoring later,which by the way is a thing you should never do,instead you could've been doing good code since the begining. Anyway,when i finish version one (The first version where there's actual gameplay) i will be publishing it on github for you guys to see! I pratically dont use github,i use git though. It's a simple roguelike,no classes (i might want to add it later),rooms are...

๐Ÿ’ฌ 7 comments ยท 2 likes ยท 2025-08-10 ยท 9 months ago