I've been thinking about heading styles in code and pure text files, especially for classic systems like the Apple II. I've seen various formats like equal signs and dashes. I want to know what styles you guys prefer. Are there any specific style guides you recommend for consistency?
5 Answers
Some fun ASCII art can be cool, but it does need to be legible. Been there, done that with the fancy borders. But let's be real, it's often an anti-pattern in modern coding!
Yeah, I feel like it slows down development, but for projects that are fun like retro coding, it fits!
Honestly, I haven't seen much use for headers in modern code. I think it's a bit of a lost art. The code from 15+ years ago had them, but it feels outdated now. Still, for older systems or specific files, they might make sense!
Haha, fair point! But using headers makes sense for retro projects like the one I’m working on.
Yeah, they were more common back in the day! It seems to fit with nostalgic programming.
I think clean, simple blocks work best. For example:
// Getting started
// ----------------
Just basic comments can do the job, but sometimes I like adding a bit of Markdown flair when I can.
That's a great approach! Simple and effective.
I typically just follow whatever the standards of the language are. Consistency is key, right? For most files, simple markdown works like a charm, using hashtags for headings.
I always go for visual styles that make a statement, like using stars instead of equal signs for my headings. It just adds a bit of flair to my comments! Personally, I also like to include my name and notes from the day, it keeps things organized for me.
True! It's nostalgic but not practical for real-world applications.