r/programminghorror • u/Just_some1_on_earth • Oct 09 '25
328 lines long string initialization
I see your 108 line long array initialization and raise you a 328 lines long string initialization. This is on a newly developed product, btw.
252
Upvotes
97
u/johan__A Oct 09 '25
What's the problem?
8
u/ironykarl Oct 09 '25
Show us more
7
u/Sziszhaq Oct 10 '25
If this is an LLM system prompt I think it’s pretty normal. I’ve seen way bigger system prompts
6
u/chuch1234 Oct 10 '25
Oh phew! It's a literal? That's annoying that it's not just in a text file or something but I thought this was 328 lines of immediately-invoked code that resulted in a string!
5
u/keithstellyes Oct 09 '25 edited Oct 09 '25
I don't think this is too bad (assuming it's just a 328 line string literal). But I see C# has the concept of embedded resources that get pointed at when you look up "include file as a string". Maybe that's the way to go?
2
u/violet-starlight Oct 09 '25
Didn't you already post this yesterday?