Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 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
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Ashwin
@ashwins93
@krckyboy design patterns
this
Object prototypes
Closures
The list keeps going
Long Nguyen
@longnt80
@krckyboy read the book You Don't Know JS
Alvaro
@minutazos
Hi, anyone can help me with some jquery? I'm doing a masonry grid with css (using relative and absolute, with column counts) and as i have the problem that the parent div has less height than the child (who has an img), I've tried to fix it with some jquery:
$(window).load(function() {
$('.item').css('height', $('.item img').css('height'))
});
pero el problema es que todos los items tienen la altura de la primera imagen, y me gustaria que cada item tenga la altura de su correspondiente imagen, como se podria hacer'
*but the problem is that all items have the same height than the first item (or first image), how can i do to apply this for each img, and not apply the height of the first image?
alpox
@alpox
@tiagocorreiaalmeida Heyho, i'm around now :D sry i was giving private tutorate on python
primuscovenant
@primuscovenant
@heroiczero tx
Tiago Correia
@tiagocorreiaalmeida
got it solved by now :p but I run into alot of this issues in some advanced algorthms where there's a big data to handle in this case was an exercise where the lst 2 cases where arrays with a size of 5k :D
"advanced" :D
alpox
@alpox
@tiagocorreiaalmeida Hmm thats not soo many yet :P
What advanced algos? On codewars?
MarionUy
@MarionUy
Hello, I really need your help. I have a problem in loading my web page in my browser. It seems that my images and css won't read
help
Tiago Correia
@tiagocorreiaalmeida
@alpox nah was on codefights just to pass the time there's a thing called train for interviews
alpox
@alpox
@tiagocorreiaalmeida ah ok :) are you going to look for a job soon?
Jake
@JakeDVirus
is there anything wrong in this statement $headerComponent.delay(300).removeClass("unscrolled");??
The delay method is not executing and the class unscrolled is getting removed instantly.
The given statement is from below snippet
    var $headerComponent = $(".header-wrapper");
    $(window).on("scroll", function(){
        var displacementFromTop = window.pageYOffset || document.documentElement.scrollTop;
        if (displacementFromTop > 0) {
            $headerComponent.delay(300).removeClass("unscrolled");
        } else {
            $headerComponent.addClass("unscrolled");
        } 
    });
Tiago Correia
@tiagocorreiaalmeida
I would say january next year, there's a few things I wanna get done before applying to anywhere, and since I had a bit of time started on codefights things just to get an idea of what I might be asked to perform :P
alpox
@alpox
@tiagocorreiaalmeida alright, thats a good thing :D but be prepared for also theoretical examples and maybe have to show examples of some things - particularly what they like to ask are things about how the event loop works, how scoping/context works, what an eventemitter is and how its built etc.
Tiago Correia
@tiagocorreiaalmeida
Im thinking about learn something as react or other aswell but im afraid I start to leave behind things like im doing at backend and forget some so im not sure for now :D the good part of the backend is that you atually handle both, frontend and backend while building the projects
Stephen James
@sjames1958gm
@NeelDVirus removeClass is not affected by delay - https://stackoverflow.com/questions/30585825/using-delay-with-removeclass
alpox
@alpox
@tiagocorreiaalmeida hmm react is almost a must nowadays. At least one bigger frontend framework
P. Silva
@psilva00
Anyone around to help me with some Angular on the Twitch exercise? Can't seem to get the filters working properly. Anyway, here's the link just in case someone can take a look and eventually point me in the right direction: https://codepen.io/psilva00/full/RjgvzR/
I'm pretty sure it's because MainController will only run once but I've tried creating 'helper' functions to no avail.
Kaz Baig
@kbaig
@oblanao I only had issues with bigger grids (something like 100x100)
Sorin Ruse
@sorinr
D
alpox
@alpox
@psilva00 Your filter works fine from what i can tell. Your problem is more that you do direct DOM manipulations in the javascript which you really shouldn't do when working with templating engines like the one from angular or react.
@psilva00 You should not do that because the template rerenders (redraws) itself on change of any data (Like the filter) and when that happens, your direct DOM changes can be lost. Also, those templating engines don't track what changes you do directly to the DOM.
P. Silva
@psilva00
@alpox, What should my approach be, then?
Ops, sorry. Didn't read your last line.
alpox
@alpox
@psilva00 Use the templating engine of angular to do all the stuff you now did by direct DOM manipulation.
@psilva00 You can get a reference to the data you get from your request through adding the data from the response(s) to the $scope
You may want to read some angular tutorials about that
Kaz Baig
@kbaig
Is there still a point to learning AngularJS? Asking for my own knowledge here, not to criticize.
alpox
@alpox
@psilva00 Things like document.querySelectorAll should vanish from your javascript
P. Silva
@psilva00
I'm familiar with exposing data to the view through $scope, I'm just puzzled about how do it all from Angular.
alpox
@alpox
@kbaig Only if you want to work in some older companies which keep around big angularjs apps. Noone would start an AngularJS app now
P. Silva
@psilva00
So, is Angular going defunct, then?
Kaz Baig
@kbaig
@alpox I had a call with a tech consultant at PwC Boston last night. Their team builds apps for their clients in AngularJS
alpox
@alpox
@psilva00 It pretty much is already
@psilva00 Well not angular - AngularJS
P. Silva
@psilva00
Yeah, that.
Kaz Baig
@kbaig
AngularJS diff from Angular
alpox
@alpox
@psilva00 If you now talk about Angular one means Angular 2/4. What you are using is AngularJS
Kaz Baig
@kbaig
We at Angular 5 already now damn
alpox
@alpox
Angular 2/4 is still fine
@kbaig Well there's not much of a difference in those numbers
Kaz Baig
@kbaig
yeah ik