⚔ COMPANY OF HEROES ⚔


ChatLog

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

time \/ user name message
Mar 26, 2022 16:33:32

mystiksoda

10bag did you even take any time to read the doc u just linked???
Mar 26, 2022 16:33:36

muktoakash

is the tts reading c-sharp as c-hash? I was quite confused for a bit
Mar 26, 2022 16:33:51

10bag

no i didn't but replacing characters in a string should be pretty ez
Mar 26, 2022 16:34:06

10bag

bro he's gonna be trying to fix this code for the next decade, trust me
Mar 26, 2022 16:37:11

mystiksoda

yes of course
Mar 26, 2022 16:39:53

10bag

what's wrong with using replace for readability then?
Mar 26, 2022 16:40:07

mystiksoda

u gain nothing
Mar 26, 2022 16:40:16

mystiksoda

better yet, u lose actually
Mar 26, 2022 16:40:23

10bag

?
Mar 26, 2022 16:41:10

10bag

the regex is just for stripping chars you don't want though
Mar 26, 2022 16:41:14

10bag

you're moving goalposts
Mar 26, 2022 16:41:28

mystiksoda

wrong
Mar 26, 2022 16:42:49

mystiksoda

they don't really teach any regex in school at all
Mar 26, 2022 16:43:00

10bag

bro this attitude is why you struggle
Mar 26, 2022 16:43:04

mystiksoda

they just tell you it exists and that you should avoid using it
Mar 26, 2022 16:43:38

10bag

remember two years ago when you were troubleshooting idiots trying to install python so they can run your broken scripts
Mar 26, 2022 16:43:40

10bag

programming master
Mar 26, 2022 16:44:25

10bag

i'm just curious bro, seems you over complicate things
Mar 26, 2022 16:44:41

mystiksoda

10bag the thing is he's not evercomplicating at all
Mar 26, 2022 16:44:49

mystiksoda

overcomplicating*
Mar 26, 2022 16:47:40

10bag

well, everybody else just googles \"twitch tts\" and runs it in the background from someone's website
Mar 26, 2022 16:47:49

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
Mar 26, 2022 16:47:57

mystiksoda

constructers its easy
Mar 26, 2022 16:48:36

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
Mar 26, 2022 16:48:43

10bag

it'd work and look more readable to me
Mar 26, 2022 16:48:51

10bag

but personally i value readability above all else
Mar 26, 2022 16:49:28

mystiksoda

public (Type paramName, Type ParamName){ intructions...}
Mar 26, 2022 16:49:31

10bag

slight speed penalty i guess but who cares because we have gigahertz
Mar 26, 2022 16:49:36

mystiksoda

thats how u write a constructor
Mar 26, 2022 16:49:50

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