Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
Christopher McCormack
@cmccormack
They're all going to be very fast in this context, the user would never notice the time difference between any of those selectors
Aditya
@ezioda004
@AdelMahjoub https://www.measurethat.net/Benchmarks/Show/393/0/queryselector-vs-getelementsbyclassname
Albeit not by a lot but my statement was based on this talk I watched yesterday
Adel
@AdelMahjoub
:+1: @cmccormack
well it is not slow; just not as fast, but is incredibly fast
Christopher McCormack
@cmccormack
wow front row looks comfy in that video @ezioda004
Aditya
@ezioda004
@cmccormack Rofl - I found that weird like I get people should be comfy but that felt excessive
Christopher McCormack
@cmccormack
These talks almost never apply to newer coders doing web stuff
but it is good to know
@ezioda004 isn't it like 01:00 there?
Aditya
@ezioda004
@cmccormack Almost, its 12:40
Christopher McCormack
@cmccormack
@ezioda004 ah you're in one of those odd half hour timezones
Aditya
@ezioda004
I could say the same to you :P
Christopher McCormack
@cmccormack
well no, you're GMT+5:30 which is an odd half hour one :) I'm GMT-7:00I believe
TCzechowski
@TCzechowski
@ezioda004 Just curious - For how long have you been coding? you seem to know javascript details in and out :P
Christopher McCormack
@cmccormack
At least a week I bet
TCzechowski
@TCzechowski
funny you
Christopher McCormack
@cmccormack
My logic is sound
Aditya
@ezioda004
@cmccormack Smarty pants
@TCzechowski I started exactly today a year ago! I wont say I know a lot; I just watch a lot of JS/Programming talks in my free time, so I pick a thing or two from that
TCzechowski
@TCzechowski
Yeah, but I'm at that stage when every method that gives me my desired result is good, and you always tell me interesting facts here
im not even trying to think "which method is faster" etc
if it works, it works haha
but im a beginner tho
Christopher McCormack
@cmccormack
Don't worry, you'll learn all of those things, and then subsequently forget them
Aditya
@ezioda004
Yeah I wont worry about that; I just throw my wisdom out there for anyone who may benefit from it lol
TCzechowski
@TCzechowski
And @ezioda004 , how did you learn coding? any bootcamp? books? or just FCC? can you tell me some examples of exercises that I should build / code to learn it quicker? :)
Aditya
@ezioda004
@TCzechowski I started out with FCC; learned a lot from the folks here in the chat then I was fortunate enough to get a scholarship and do Frontend Nanodegree program. For books, I'd highly suggest YDKJS series and for projects fcc is great. For projects - current curriculum projects are fine, though if you're looking to do more than definitely do these projects too, they used to be a part of the old curriculum certificate and personally quite fun and challenging to make.
Christopher McCormack
@cmccormack
yeah sad they moved those to a non-required section
I spent the most time on some of those and learned a lot
Aditya
@ezioda004
Same, those projects are really good for exploring and learning new things!
TCzechowski
@TCzechowski
And how much did it take for you to land your first developer job?
Christopher McCormack
@cmccormack
@ezioda004 i'll probably still go and do some that I didn't complete just to practice with new tech
Aditya
@ezioda004
@TCzechowski I recently landed my first full time job as software engineer. So technically it took me < year to land one however, I'm certain I'd have gotten one earlier had I started applying after finishing frontend curriculum.
@cmccormack Yeah, thats what I'm planning to do in my free time after I start working, these projects and getting the full stack certificate
Adel
@AdelMahjoub
line 155 using query selector is way more performant
check the preview , the difference is 'huge'
Christopher McCormack
@cmccormack
more performant than what though?
find is probably why it's so slow
Adel
@AdelMahjoub
try filter
or a regular loop
same result
it is the use case that made query selector faster
Christopher McCormack
@cmccormack
you're filtering on all the cells every iteration
Adel
@AdelMahjoub
requestAnimation frame is most likemy updated at 60fps
Christopher McCormack
@cmccormack
in the slow version
Adel
@AdelMahjoub
yes query selector in this context will be more performant than getElement
refresh at 60fps + the iteration on 30x30 array
Christopher McCormack
@cmccormack
but using getElementsByClassName could you not eliminate at least one of the loops?
given I didn't review the code closely
Adel
@AdelMahjoub
we could yes
but I want the two method in the same context inside an iteration
Christopher McCormack
@cmccormack
grid = JSON.parse(JSON.stringify(nextGrid)); this is also very slow