Company of Heroes


ChatLog

First Previous 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 Next Last

user name message

mystiksoda

embeded is just one of 100's of different scenarios where memory / threads etc management is very important

10bag

there are no rules any more bro we have good CPUs

10bag

this is 2022 bro everything is fucked

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?

First Previous 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 Next Last