Company of Heroes


ChatLog

First Previous 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 Next Last

user name message

10bag

are you for real? this code is being written in an electron app

mystiksoda

well you have A LOT to learn if you think like that

10bag

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

mystiksoda

thats how u write a constructor

10bag

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

mystiksoda

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

10bag

but personally i value readability above all else

10bag

it'd work and look more readable to me

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

mystiksoda

constructers its easy

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

10bag

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

mystiksoda

overcomplicating*

mystiksoda

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

10bag

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

10bag

programming master

10bag

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

mystiksoda

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

10bag

bro this attitude is why you struggle

mystiksoda

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

mystiksoda

wrong

10bag

you're moving goalposts

10bag

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

10bag

?

mystiksoda

better yet, u lose actually

mystiksoda

u gain nothing

10bag

what's wrong with using replace for readability then?

mystiksoda

yes of course

10bag

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

10bag

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

First Previous 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 Next Last