⚔ COMPANY OF HEROES ⚔


ChatLog

First Previous 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 Next Last

time \/ user name message
Mar 26, 2022 16:50:35

mystiksoda

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

10bag

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

10bag

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

10bag

there are no rules any more bro we have good CPUs
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: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:54:04

mystiksoda

???
Mar 26, 2022 16:54:14

mystiksoda

ok i give up
Mar 26, 2022 16:54:22

10bag

that's the spirit
Mar 26, 2022 16:54:25

mystiksoda

you understand 0 of programming whatsoever
Mar 26, 2022 16:55:02

edgewalker69

The local village idiot, dont worry about him SeemsGood
Mar 26, 2022 16:55:05

10bag

it's trolling up until the point you realise i'm right and then quietly start doing exactly what i said in the first place 4Head
Mar 26, 2022 16:55:16

mystiksoda

i'll bash his head instead, thats fun
Mar 26, 2022 16:55:21

mystiksoda

Kappa
Mar 26, 2022 16:55:40

10bag

never forget when xcom told me you cannot distribute a python application
Mar 26, 2022 16:55:46

10bag

that was a funny couple of months
Mar 26, 2022 16:56:20

10bag

man was there troubleshooting pleb users python installations and wondering why nothing worked
Mar 26, 2022 16:56:24

mystiksoda

users.Find (u => u == user)
Mar 26, 2022 16:56:28

mystiksoda

is that what u want?
Mar 26, 2022 16:57:15

mystiksoda

ok
Mar 26, 2022 16:58:00

mystiksoda

does your TwitchUser class have any unique property that identifies that user ?
Mar 26, 2022 16:58:32

mystiksoda

ok then its simple
Mar 26, 2022 16:59:12

mystiksoda

users.FirstOrDefault (u => u.Username == user.Username)
Mar 26, 2022 16:59:54

capricciosa

okay
Mar 26, 2022 17:04:25

mystiksoda

yes
Mar 26, 2022 17:04:54

mystiksoda

oh u mean constructor
Mar 26, 2022 17:05:11

mystiksoda

yes u can make a default constructor
Mar 26, 2022 17:05:20

mystiksoda

something along the lines of
Mar 26, 2022 17:06:34

mystiksoda

public TwitchUser () { Username = \"somename\"; Id = 1234; ... etc}
Mar 26, 2022 17:07:18

mystiksoda

no

First Previous 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 Next Last