Company of Heroes


ChatLog

First Previous 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 Next Last

user name message \/

mystiksoda

10bag did you even take any time to read the doc u just linked???

muktoakash

is the tts reading c-sharp as c-hash? I was quite confused for a bit

10bag

no i didn't but replacing characters in a string should be pretty ez

10bag

bro he's gonna be trying to fix this code for the next decade, trust me

mystiksoda

yes of course

10bag

what's wrong with using replace for readability then?

mystiksoda

u gain nothing

mystiksoda

better yet, u lose actually

10bag

?

10bag

the regex is just for stripping chars you don't want though

10bag

you're moving goalposts

mystiksoda

wrong

mystiksoda

they don't really teach any regex in school at all

10bag

bro this attitude is why you struggle

mystiksoda

they just tell you it exists and that you should avoid using it

10bag

remember two years ago when you were troubleshooting idiots trying to install python so they can run your broken scripts

10bag

programming master

10bag

i'm just curious bro, seems you over complicate things

mystiksoda

10bag the thing is he's not evercomplicating at all

mystiksoda

overcomplicating*

10bag

well, everybody else just googles \"twitch tts\" and runs it in the background from someone's website

mystiksoda

string.Replace() can only replace a string by another string and thats it, you have no controll over on how to replace or under which conditions so on and so fourth

mystiksoda

constructers its easy

10bag

i thought the original regex was just for stripping forbidden chars from a string ie \"xcom:reborn\" to \"xcomreborn\" so why not just iterate using replace

10bag

it'd work and look more readable to me

10bag

but personally i value readability above all else

mystiksoda

public (Type paramName, Type ParamName){ intructions...}

10bag

slight speed penalty i guess but who cares because we have gigahertz

mystiksoda

thats how u write a constructor

10bag

don't need to worry about performance until you're doing embedded

First Previous 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 Next Last