« first day (2494 days earlier)      last day (2453 days later) » 

3:00 PM
Damn, are the performance implications so minute that creating the collection in render is the accepted pattern?
 
user1596138
It's up to you. We don't know the length or complexity of the looping
 
Would anyone have any idea about to how to know if a string is a coordinate, for example C3, or G15 if the string could be anything and any length
 
user1596138
But if it's <10 elements yea I wouldn't even worry... If you really want to optimize you can either throttle the entire render with shouldUpdate or do your array generation in willUpdate (both only doing work when the props actually change)
 
@KendallFrey Found the source of the dump that haveibeenpwned alerted me to
It's a bunch of Uplay accounts - apparently Uplay accounts were compromised. I found a cracking forum with posts dating back to March of this year posting the same lists
yay ubisoft...
 
@Jhoverit I guess willReceive would work if I diffed the old props array and the new one to see if I should update, but at that point I'm probably losing whatever efficiency, thanks!
 
3:02 PM
@RachelDockter Is this school work again?
 
user7480455
greetings all
 
@Trasiva part of my project yeh, the best idea i have is putting all the possibile coordinates in an array and just checking like that, seems abit overkill tho
 
user1596138
@Vap0r Yeah, you'll get like 10X more false updates that way but that would work.
 
user1596138
Also, it won't happen first render
 
@RachelDockter And your course didn't cover anything on string manipulations? Because I feel like 95% of your questions in this room should be content that was already covered.
 
user1596138
3:04 PM
So if you actually throttle it it's simply not going to work until you update it at least once lol
 
@Jhoverit yeah you'd have to throw it in componentDidMount. Hrmmm. I really don't like any of these solutions 100%
 
@Trasiva i havnt actually started the acedemic year yet lol im just getting a headstart, so i havnt learnt anything in terms of this project
its pretty much finished now
 
user1596138
Well you could just initialize the array in constructor..
 
the main thing is if i manitpulate the string, the number could be A1 or A13 so the number could be 1 or 2 char long so it would be hard to maniplulate
 
@RachelDockter Then look into regular expression. You can do it in one line validation.
 
user1596138
3:08 PM
@Vap0r well I'd just do it in render with shouldUpdate lol
 
user1596138
And make the component simple enough that this is the only thing "happening"
 
Guys, what's your opinion of styled-components?
(As opposed to, say, css-modules)
 
I react positively to them
faint ba dum tssss
 
And now for real?
 
URLs with asterisks (*) are funky
 
3:11 PM
@MadaraUchiha Which was the paypal one? I liked that one
Glamorous
 
@RachelDockter Incorrect
 
whats incorrect
 
@RachelDockter Seriously, read up on regular expression. Come back showing that you've put some effort into this, and if it's wrong, I'll tell you why and how to fix it. But I'm not going to just spoon feed you the answer.
 
i never asked u to spoon feed me the answer lol why so aggresive?
 
o/
 
user1596138
3:14 PM
It's okay. Regexp is the wrong answer anyway.
 
Because you've been here asking questions and not showing any effort to them?
@Jhoverit What? C'mon, it's the easiest answer to verify that it's a valid coordinate, lol.
 
user1596138
He didn't even give an example
 
thats wrong but whatever lol sounds like you have abit of an ego
 
user1596138
So I have absolutely no idea lol
 
ive done it the long way now anyway
 
user1596138
3:16 PM
Can we have some sample input data
 
me? @Jhoverit
 
user1596138
It can only have two numeric chars and 1 letter? That's super easy
 
no the string could be anything
 
user1596138
Right but it's only valid if it starts with a letter and then has 1 or 2 numerics
 
and nothing after it yeh
the way i did it is checking the first 3 characters manually and checking if theres anything after that
 
3:17 PM
pull the first character, confirm it's a letter, then confirm that the second isn't a letter, and you're good, right?
 
well this is how i did it
 
Oh my god
 
sorry about the format, duno why its like that
 
@BenFortune oh god, why?
 
3:18 PM
1 message moved to Trash can
@RachelDockter Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
@GNi33 What's up with it?
 
the example, I don't like it
 
Yeah, it's a bit edgy
 
!!> const test = ["A12", "Test124", "G12", "G123"]; for (const val of test) {console.log(val.match(/^[a-zA-Z][0-9]{1,2}$/))}
 
@Trasiva "undefined" Logged: ["A12"],null,["G12"],null
 
3:19 PM
but seriously, why do I need this?
 
I win fuckers.
 
what's wrong with CSS files?
 
@Jhoverit And that's why regex wins, lol.
 
user1596138
@Trasiva Rly
 
user1596138
Lol...
 
3:20 PM
@GNi33 meh. I liked styled components much better
 
is there a way to make that so it will only return the coordinate if it has nothing after the first 3 chars?
the g123 shouldnt return
 
yup
 
It didn't
 
<Div
  fontSize={20}
  textAlign="center"
>
well, that didn't help. what the fuck is this?
 
3:21 PM
oh i thought it shortened it to g12 my mistake
thanks for that, appriciate it
 
It came back null because of the string start and end
I told you, regex was a clean solution
 
looks alot better than my way
 
user1596138
Can we fight over the beautfy of regexp now plz
 
user1596138
/^[a-z]\d?\d$/i
 
styled-components.com @BenFortune @GNi33 so much nicer (for me at least)
 
3:22 PM
@Jhoverit How is that any cleaner?
 
user1596138
Umm. Read it
 
Oh, I mean if you want to argue that. /^[a-z][0-9]{1,2}$/i
 
user1596138
Ew
 
> Why does glamorous exist?
> The problem
> You like CSS in JS, [...]
no, I do not
 
Using the numberic capture with optional seems overkill in this instance.
I mean, yours is four characters shorter.
 
3:24 PM
I'm just asking myself what makes this better than a style - css for my component that I'll require using webpack anyways?
 
Isn't that just the prettiest?
 
Meowkai!
 
The real question I'm having is whether you think it's worth it to remove the decoupling between CSS and your components like that.
 
for me, React components are already clogged enough with passing state and properties down as it is
 
3:26 PM
CSS modules still give you an escape hatch for global styles
 
Which is exactly the reason why I hate dislike react
 
adding CSS to that as well doesn't really solve anything for me
 
@jAndy The Game
3
 
@KendallFrey You're a fellow regex junky, what's your opinion?
 
3:26 PM
lol
 
@Trasiva on?
 
call me old, but I like css files that use classes
 
@SterlingArcher Run the command !!quote get scrumlord
 
no, I saw :P
 
3:27 PM
@GNi33 you're not old, you're just right
 
!!quote get scrumlord
 
36 mins ago, by Sterling Archer
As a scrummaster, I'm completely offended right nowpleasehelpmetheywontletmegothescrumassociationhasmyfamily‌​. — Sterling Archer 15 secs ago
 
@KendallFrey /^[a-z][0-9]{1,2}$/i vs /^[a-z]\d?\d$/i
 
^[a-z]\d{1,2}$
 
@MadaraUchiha we forgot to eat together :D
 
3:27 PM
^
@BenjaminGruenbaum That we did
Tomorrow?
 
@SterlingArcher @MadaraUchiha we forgot to eat each other :D (source)
 
We'll have the episode to talk about :D
 
Let's discuss today when we meet
 
@KendallFrey That's what I thought, lol.
 
I hope it won't be a fuckton of people
 
3:28 PM
👍
 
user1596138
Sorry someone asked me something
 
@BenjaminGruenbaum Probs would, Danny RSVPed.
 
user1596138
@Trasiva I'm just playing with you because you have a lot of energy this morning lol
 
What is with python devs and using horribly short k,v variables?
 
@Jhoverit Oh thank god. I was worried about your mental health, lol.
 
3:29 PM
@MadaraUchiha cool, me you Danny, Yafim (not sure if you've met), Dana, Orit, and maybe Dana's friend.
 
@SterlingArcher Because key, value?
 
No word from Avihu yet
 
@Trasiva yeah, but then you end up with a mighty unreadable list comprehension
list comps = ternary in terms of readability
 
@SterlingArcher Depends on what it's being used for. If it's just a simple hash table, I use k,v if it's complex, I use proper names. Same rules apply in Lua for me.
 
That's fine though, as is a single ternary expression, but once it's nested, or the list comp becomes more nested as well, it just becomes hard to read
 
3:32 PM
whenever i do lua I always use k, v
dunno why
nowhere else
 
@SterlingArcher Oh yea if it's nested, never use short hand value names.
Shit gets wonky at that point.
And your readability looks like @rlemon's notes.
 
if it's nested, make functions
 
> This method returns true if the object is valid according to the schema or false if it is not. It also stores a list of invalid fields and corresponding error messages in the context object and causes the reactive methods to react.
Ok simple schema, not bad
 
user1596138
@SterlingArcher We had a guy that would name everything u
 
user1596138
3:37 PM
"u"
 
user1596138
And then just pick random single letters from there
 
why would he named a variable after me
he dont know me
 
user1596138
Yes, you are following completely
 
A sock for what/who?
 
Nevermind
The comment was taken off the title
Which I didn't bother reading
 
3:39 PM
@SterlingArcher is Python code ever read after it's written though
 
true, i wrote a geo-api and haven't looked at it since
 
@SterlingArcher I still get angry when I think about how little credit I got on that entire re-write of our bing maps code.
 
Thats shitty, and would drive off most devs
 
Gee, it's as if there's a reason I'm looking for a new job, lol.
 
3:57 PM
lol
 
 
user1596138
@Feeds What a letdown.
 
user1596138
Ban that feed for sucking
 
4:14 PM
@KendallFrey @rlemon Space-X CRS-12 launch live
 
thanks for the reminder
 
I got you brother.
 
I can't believe people still don't use relative offsets for expressing a point in time...
I mean... "Monday, August 14 at 12:31 p.m. EDT, or 16:31 UTC" wtf... I don't know when this is in my timezone, gth
Just use (+8 hours) or whatever, dumbfaggs
 
lol
I hate UTC time personally
 
i mean, EDT is easier to understand when you're close to said timezone, :p
 
4:17 PM
I much prefer the +/- whatever
 
I wish everyone used UTC
 
user1596138
@jAndy You already know your offset from UTC.....
 
@jAndy I hear the argument, and I'm not invalidating it. However it's in 15 minuts.
 
@KendallFrey they all do in England
 
No they don't
and I meant everyone
 
4:18 PM
I'm especially fucked, because I'm living in a place that also uses "winter and somer times"
 
user1596138
UTC is the +/- isn't it lmao
 
@jAndy same
 
I hate coding forms that map to an array in the DB.
 
means, the hour changes twice a year +-1
 
@Loktar Military uses it too, don't forget, lol.
 
user1596138
4:18 PM
UTC is +6
 
Especially when they need to be pre-populated, removed, and added at will
So tedious
 
user1596138
+5 for EST
 
@Trasiva yeah not for everything though I mean normal day to day you don't use zulu time
just for mission type stuff
 
True
 
but it's not like I'm saying "Bro lets do lunch at UTC 01:00!"
 
4:19 PM
But then again, I was stuck in a mission support job, so I was always in zulu at work.
 
@Loktar That's exactly what I want
 
@KendallFrey And for that, you can go fuck yourself with a cactus sideways.
 
There is only one solution, either we finally use once and for all ONE GLOBAL TIME and don't have 528 fucking hundred different timezones OR we just use offsets
 
@KendallFrey be the change you wish to see
 
user1596138
Isn't the point of timezones just so that the sun comes up the sameish time everywhere
 
4:20 PM
then you can have your 529 billion timezones I don't care
 
user1596138
I always found that retarded
 
if you start giving everyone UTC times I'm sure others will catch on
or you will just never have to meet with people
either way win/win!
 
user1596138
Like. Who cares. Why can't sunrise be at 03:00 one place and 09:00 somewhere else
 
user1596138
It would be a literal time lol
 
user1596138
4:21 PM
Not some psuedo-keep-track-of-daylight-time
 
A global time doesn't care about sunrise, it's just a number
 
user1596138
If EVERYONE worked 9-5 tho, I can see the sense in timezones
 
lol
 
user1596138
@jAndy Exactly lol I'd be fine with that.
 
@Jhoverit but you could just have people work 1-9 then
 
user1596138
4:22 PM
Airports have already caught on...
 
No timezones!
 
user1596138
All airports and runways in the world use UTC/GMT (afaik)
 
what would be the problem if we just kick in a "world-time" starting in +8 hours with 00.00, for each and everybody. So my sunrise will be at 17.00 and yours probably at 05.00
 
as if runways had clocks :P
 
well they have split local/gmt
 
4:23 PM
but who cares about sunrise, we can all be certain when we talk about 20.00
 
user1596138
Well yea but they schedule flights in UTC never converting for actual scheduling in case they fuck up lol
 
user1596138
Err I worded that really dumb.
 
Do what you want I guess, I can rest assured the US will keep it's current time keeping methods as long as I'm alive
I still measure things by feet so meh.
 
lol
valid point
 
Was reading a UK article they were talking about Stones
I was like fuck how much does a stone weigh?!
 
user1596138
4:25 PM
Yea we won't ever have global time IMHO. As long as we live even somewhat by daylight
 
I thought they were all metric
 
@Loktar UK? lmao nooo
 
user1596138
It's like the fact I can't buy beer after 1am. People are convinced there's actually a difference between 1am/1pm for reasons other than it's dark
 
I think logic and reason will win eventually. Same reason why 24h systems will overcome the am/pm crap soon :P
 
well once we travel to other planets
I mean then it makes a ton of sense
 
user1596138
4:26 PM
^ no then we'll just have +6GMT/+13.5Mars
 
we will need a universal time really since we can't base it all off of our solar system
 
user1596138
Lmao
 
on Mars we will have a what? 55h system?
 
fun fact: the metre was originally based on the size of the earth
 
how fast does Mars rotate
 
4:27 PM
@Loktar stardate, obviously
@jAndy 25ish hours i think
 
@KendallFrey yeah, do they have a breakdown yet for mins/hours?
 
an additional hour? cool, lets move there
 
@Loktar BTW UTC is universal, it's in the name
 
universal to our solar system
how can we oppress others?!
 
no, universal to the universe
 
4:28 PM
the universe doesn't live in 24 hour cycles
 
universal universe time UUT
 
At least in that it's based on seconds
 
user1596138
Would we keep "days/weeks/months/years" or would we simply move forward or backward in "time" by the minute/hour/some other non-looping value
 
user1596138
If we left the solar system ^
 
The conversion to days and years isn't universal, that is pretty arbitrary
 
user1596138
4:29 PM
LIke would we do ms since an epoch based on physics
 
ms since launch
 
user1596138
^ Oooh
 
T-MINUS 2 minutes to launch
 
This will be the cause of the great Alpha Centauri wars I can feel it.
 
actually, it doesn't even matter once you agreed on one specific starting time and the duration of a unit (like second)
 
4:30 PM
@Jhoverit Problem is, physics itself says you can't do that
 
user1596138
Time starts when we leave lol
 
time isn't constant
 
> You oppress us with your 24 hour days
 
user1596138
@KendallFrey we have "aged" the universe in a fairly constant way, right?
 
4:31 PM
well done
 
user1596138
As in you could take the same type of measurement from a different galaxy and come up with an identical answer?
 
@Jhoverit You mean time since the big bang? That's not known nearly well enough for timekeeping.
 
user1596138
Hey someday
 
@Jhoverit measuring what?
 
I predict an interruption at 0.09
 
user1596138
4:31 PM
Something using the CMB I assume
 
@jAndy At point oh nein? How original.
 
dang
 
oh shiiii js13k
I should participate
 
Did you Nazi that coming?
Man, those merlin engines sure look pretty
 
This girl said she recognized me from a vegan club... but I'd never met herbivore.
 
4:35 PM
lol
 
I read that first and didnt notice the joke
then I spilled my drink
RETRO BURN!
 
I get that when my Nintendo overheats
hur hur hur.
 
such a pretty landing
 
10 point landing
gorgeous
 
beautiful
 
4:39 PM
absolutely perfect
im wet
 
@Loktar No, this is a retro burn:
Demetrius: "Villain, what hast thou done?"
Aaron: "That which thou canst not undo."
Chiron: "Thou hast undone our mother."
Aaron: "Villain, I have done thy mother."
 
lol
a burn for the ages
 
If anybody tries to tell you that Shakespeare was classy...
 
oh, 36hr for rendezvous
I thought they would line it up to happen quicker
 
no rendezvous happens much earlier
most of it is syncing
 
4:43 PM
oh.
 
It has to get to a matching speed first
 
does anyone know where i can find practice exercise for ui router
 
I wonder why they disabled the live chat
too much cgi and flat earth I guess
 
Yea, there was a lot of that last time.
And the MAGA chants.
 
maga?
 
4:50 PM
Make America Great Again.
 
!!quote
 
hi guys which is the easiest to get started as a freelance dev? upwork/crossover/freelancer
 
@Hisham boardroom blowie
 

« first day (2494 days earlier)      last day (2453 days later) »