Company of Heroes


ChatLog

First Previous 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 Next Last

user name message /\

mystiksoda

so do i

10bag

i copy my regex straight up bro, no shame

mystiksoda

also how are you going to learn maths when they start putting a bilion different letters and symbols 1 one equation to the point u don't see much numbers, if any at all

mystiksoda

you say that because you never took any time to learn any regex at all

10bag

dropy bro you've spent your entire adult life in twitch chat, you'd have thought you'd learn how to deal with people by now

capricciosa

Works well

capricciosa

I avoid rejects like 10bag by blocking

10bag

i'd rather understand 20 lines than have to google 1 line

10bag

i dunno, to me readability means i don't have to google to read it

mystiksoda

but in this case regex is better

mystiksoda

and yes everyone avoids regex, including me

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

10bag

i'm not being obtuse i just personally avoid regex whenever i can because i just can't read it

mystiksoda

you have no controll whatsoever on what exact parts of the string get replaced or under what conditions

10bag

or do it in a loop?

mystiksoda

and even then u stil have issues like @XcomReborn mnetioned

mystiksoda

because u'd literally be writing something along the lines mystring..replace (\"a\", \"b\").replace(\"c\", \"d\").replace... and so on

10bag

because c# has somehow changed or because i misunderstand the original problem?

mystiksoda

and even if string.replace is faster, it is by no means more readable in this situation

10bag

that SO question isn't applicable?

mystiksoda

he already explained

mystiksoda

James*

10bag

bro i just want to understand the problem at hand

mystiksoda

if u wanna go down that route do you even know who Jmaes Newton King is?

10bag

i didn't, i just clicked his name on stack overflow there

capricciosa

I think you just need to run filecheck

mystiksoda

i know who is john skeet nerd

capricciosa

Yeah i dont have any problems at all with Fallout 76

10bag

so disregard jon skeet (author of c# in depth and programmer at google) and trust mystik soda

mystiksoda

many things including regex have recieved QOL and performance boosts

First Previous 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 Next Last