XCoins
⚔ BETTING LEAGUE ⚔


ChatLog

First Previous 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 Next Last

time user name message
Mar 26, 2022 17:18:42

mystiksoda

but in this case regex is better
Mar 26, 2022 17:18:14

mystiksoda

and yes everyone avoids regex, including me
Mar 26, 2022 17:17:55

mystiksoda

that can only be achieved with regex unless u wanna write a bunch of loops and conditions which will basically be linbes of code and time wasted with no readability and probably even performance gains
Mar 26, 2022 17:16:10

10bag

i'm not being obtuse i just personally avoid regex whenever i can because i just can't read it
Mar 26, 2022 17:15:56

mystiksoda

you have no controll whatsoever on what exact parts of the string get replaced or under what conditions
Mar 26, 2022 17:15:33

10bag

or do it in a loop?
Mar 26, 2022 17:15:31

mystiksoda

and even then u stil have issues like @XcomReborn mnetioned
Mar 26, 2022 17:14:53

mystiksoda

because u'd literally be writing something along the lines mystring..replace (\"a\", \"b\").replace(\"c\", \"d\").replace... and so on
Mar 26, 2022 17:13:43

10bag

because c# has somehow changed or because i misunderstand the original problem?
Mar 26, 2022 17:13:36

mystiksoda

and even if string.replace is faster, it is by no means more readable in this situation
Mar 26, 2022 17:13:30

10bag

that SO question isn't applicable?
Mar 26, 2022 17:13:12

mystiksoda

he already explained
Mar 26, 2022 17:12:58

mystiksoda

James*
Mar 26, 2022 17:12:57

10bag

bro i just want to understand the problem at hand
Mar 26, 2022 17:12:29

mystiksoda

if u wanna go down that route do you even know who Jmaes Newton King is?
Mar 26, 2022 17:12:19

10bag

i didn't, i just clicked his name on stack overflow there
Mar 26, 2022 17:12:11

capricciosa

I think you just need to run filecheck
Mar 26, 2022 17:11:54

mystiksoda

i know who is john skeet nerd
Mar 26, 2022 17:11:44

capricciosa

Yeah i dont have any problems at all with Fallout 76
Mar 26, 2022 17:11:26

10bag

so disregard jon skeet (author of c# in depth and programmer at google) and trust mystik soda
Mar 26, 2022 17:11:14

mystiksoda

many things including regex have recieved QOL and performance boosts
Mar 26, 2022 17:10:51

mystiksoda

yes of course
Mar 26, 2022 17:10:39

10bag

c# has changed much?
Mar 26, 2022 17:10:26

mystiksoda

cool an answer from 2009
Mar 26, 2022 17:10:24

10bag

with some kerbal every 3 or 4 years
Mar 26, 2022 17:10:13

10bag

@tariq_smells he's the racist company of heroes player and self righteous unused phd highly qualified programmer
Mar 26, 2022 17:09:52

capricciosa

Fallout 76 also
Mar 26, 2022 17:09:25

10bag

4Head
Mar 26, 2022 17:08:54

tariq_smells

wait i follow you from before but don't recognize you did u stream something else beofre
Mar 26, 2022 17:08:52

10bag

https://stackoverflow.com/questions/1620410/regex-replace-string-replace-or-stringbuilder-replace-which-is-the-fastest

First Previous 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 Next Last