XCoins
⚔ BETTING LEAGUE ⚔


ChatLog

First Previous 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 Next Last

time user name message
Mar 26, 2022 17:08:07

mystiksoda

oh yeah u can do it that way as well
Mar 26, 2022 17:07:43

mystiksoda

default*
Mar 26, 2022 17:07:39

mystiksoda

oh u meant the dafault vaule in the parameter?
Mar 26, 2022 17:07:21

mystiksoda

i missed nothing
Mar 26, 2022 17:07:18

mystiksoda

no
Mar 26, 2022 17:06:34

mystiksoda

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

mystiksoda

something along the lines of
Mar 26, 2022 17:05:11

mystiksoda

yes u can make a default constructor
Mar 26, 2022 17:04:54

mystiksoda

oh u mean constructor
Mar 26, 2022 17:04:25

mystiksoda

yes
Mar 26, 2022 16:59:54

capricciosa

okay
Mar 26, 2022 16:59:12

mystiksoda

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

mystiksoda

ok then its simple
Mar 26, 2022 16:58:00

mystiksoda

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

mystiksoda

ok
Mar 26, 2022 16:56:28

mystiksoda

is that what u want?
Mar 26, 2022 16:56:24

mystiksoda

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

10bag

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

10bag

that was a funny couple of months
Mar 26, 2022 16:55:40

10bag

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

mystiksoda

Kappa
Mar 26, 2022 16:55:16

mystiksoda

i'll bash his head instead, thats fun
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:02

edgewalker69

The local village idiot, dont worry about him SeemsGood
Mar 26, 2022 16:54:25

mystiksoda

you understand 0 of programming whatsoever
Mar 26, 2022 16:54:22

10bag

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

mystiksoda

ok i give up
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

First Previous 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 Next Last