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
MarionUy
@MarionUy
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
alpox
@alpox
@psilva00 Be aware that Angular and AngularJS are 2 totally different things
Even though they are made by (mostly) the same devs
Kaz Baig
@kbaig
Complete rewrite
P. Silva
@psilva00
Yeah, that I know.
I have yet to wrap my head around the ES 6 way of doing things though, to be honest.
Marius Nicolae
@bytao7mao
Hello guys, how should i avoid concatenation in append(jquery) when i click a button ?
Kaz Baig
@kbaig
@psilva00 In what sense
P. Silva
@psilva00
@kbaig, syntax and whatnot.
Kaz Baig
@kbaig
@bytao7mao append is to add to the html of an element. What are you trying to do?
alpox
@alpox
@bytao7mao Append pretty much means concat :D
Marius Nicolae
@bytao7mao
im using some code to get json text
when i click the button which is getting that text, it's concatenating
what should i use to avoid this
alpox
@alpox
@bytao7mao Another method than .append
Marius Nicolae
@bytao7mao
ok, which one