XCoins
⚔ BETTING LEAGUE ⚔


ChatLog

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

time user name message
Mar 26, 2022 16:54:04

mystiksoda

???
Mar 26, 2022 16:53:39

10bag

bro i'm saying sacrifice performance for readability, it is string manipulation and you won't live forever but you will have to come and un-fuck this code later
Mar 26, 2022 16:52:31

mystiksoda

embeded is just one of 100's of different scenarios where memory / threads etc management is very important
Mar 26, 2022 16:51:30

10bag

there are no rules any more bro we have good CPUs
Mar 26, 2022 16:51:16

10bag

this is 2022 bro everything is fucked
Mar 26, 2022 16:51:06

10bag

are you for real? this code is being written in an electron app
Mar 26, 2022 16:50:35

mystiksoda

well you have A LOT to learn if you think like that
Mar 26, 2022 16:49:50

10bag

don't need to worry about performance until you're doing embedded
Mar 26, 2022 16:49:36

mystiksoda

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

10bag

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

mystiksoda

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

10bag

but personally i value readability above all else
Mar 26, 2022 16:48:43

10bag

it'd work and look more readable to me
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:47:57

mystiksoda

constructers its easy
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:40

10bag

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

mystiksoda

overcomplicating*
Mar 26, 2022 16:44:41

mystiksoda

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

10bag

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

10bag

programming master
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:04

mystiksoda

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

10bag

bro this attitude is why you struggle
Mar 26, 2022 16:42:49

mystiksoda

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

mystiksoda

wrong
Mar 26, 2022 16:41:14

10bag

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

10bag

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

10bag

?
Mar 26, 2022 16:40:16

mystiksoda

better yet, u lose actually

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