Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 01 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 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
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
Christopher McCormack
@cmccormack
if @ezioda004 hadn't fallen asleep he could probably improve performance a bit more
Adel
@AdelMahjoub
usually I would use canvases for this stuff, but making it fast on the dom is good to try
Christopher McCormack
@cmccormack
I think it's pretty dang fast with just HTML haha
but I agree
I would probably change mine to canvas had I planned it from the beginning, mine isn't very performant
it would be if it didn't need click handlers I think
Adel
@AdelMahjoub
I made a lot of different versions, vue, angular, react all using dom and canvases, this one is one of a lot
it can be even faster using webgl with phaser
or pixijs
but yeah, one is a video game framework the latter is a rendering library so :laughing:
Adel
@AdelMahjoub
the good thing , it is possible to create git braches from glitch, now it is merged, I guess it will be useful for future ref
Christopher McCormack
@cmccormack
didn't know you could make branches that's neat
Adel
@AdelMahjoub
yeah, it is very different from what is was, very good work
live editing was like freezing every 2sec
Maybe they 'll add private projects in the future
Christopher McCormack
@cmccormack
like private github repos?
or just not public on glitch?
Adel
@AdelMahjoub
yeah, not public on glitch, some paid service
it is very convenient for demos
Christopher McCormack
@cmccormack
I just wish it had a better editor
doesn't do auto close tags or anything
Adel
@AdelMahjoub
yeah, some editor customization is welcome
Christopher McCormack
@cmccormack
I like what codesandbox did, integrating VS Code in
Adel
@AdelMahjoub
ah, didn't know about it, I'll check it
Brad
@bradtaniguchi
Ran into a bug related to this: const num = Number(null); // num = 0
Christopher McCormack
@cmccormack
what's the bug?
does it coerce null to 0?
Brad
@bradtaniguchi
yup, that and anoyher dumb yhing
inji010203
@inji010203
@all can you help me with this one...I a stuck for past one week https://stackoverflow.com/questions/53265169/css-position-absolute-making-the-tetxbox-go-down
yozhikvtumane
@yozhikvtumane
Hello! I need some help please with portfolio page challenge. https://yozhikvtumane.github.io/fcc-portfolio/ in projects section I have those boxes made with flex, and when you resize page they become with different height
Can I get a hint how to fix it please?
yozhikvtumane
@yozhikvtumane
Alrighty, I added word-break: break-all and it's fine now, but I don't like how text breaks letter by letter
Spyrantis Theodoros
@thodorisanta
anyone here?
Spyrantis Theodoros
@thodorisanta
i noticed that in this chalenge: https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-data-structures/-iterate-through-the-keys-of-an-object-with-a-for---in-statement
when i use:
function countOnline(obj) {
  // change code below this line
  let i=0;
  for(let user in obj){ 
    if(obj.user.online === true){
       i++;
    }
  }
  return i;
  // change code above this line
}
it doesnt even return anything
so i tried using brackets, so instead of obj.user.online. i used : obj[user]["online"]
and it works
can someone please explain me why?
yozhikvtumane
@yozhikvtumane
Because user here is not a key but a variable, and you try to access through a key name
try to add console.log(user) inside a loop to see what I mean
Spyrantis Theodoros
@thodorisanta
@yozhikvtumane if i write it like this : user.online it shows in the console the same thing as this obj[user]["online"]
yozhikvtumane
@yozhikvtumane
How does the object look like? @thodorisanta
Spyrantis Theodoros
@thodorisanta
@yozhikvtumane
Alan
Jeff
Sarah
Ryan
0
Spyrantis Theodoros
@thodorisanta
is there a way where using dot (".") will be more efficient than brackets?
Aditya
@ezioda004
@thodorisanta Efficient? Both bracket and dot access has its use cases. In short dot access is a subset of bracket access.
Spyrantis Theodoros
@thodorisanta
@ezioda004 yeah but my understanding from the above is that brackets can do everything dot can do but dot cant do what i tried above. So im basically asking if there would be a case where brackets wont work and dot will do the job.
Aditya
@ezioda004
@thodorisanta Bracket would cover all the cases where dot works but vice versa isnt true. The advantage of using dot access is the readability/simpler syntax.
Spyrantis Theodoros
@thodorisanta
@ezioda004 thats what i thought. thanks!
Dušan Todorović
@krckyboy
Let me know what you think of a website I finished today, as it's for my portfolio: https://krckyboy.github.io/John-s-Bar/
yozhikvtumane
@yozhikvtumane
@krckyboy awesome!