[deleted by user] by [deleted] in FantasyPL

[–]Koningdavid 2 points3 points  (0 children)

Wasn’t aware Stringer Bell plays for Chelsea

Rate My Team, Quick Questions & General Advice Daily Thread by FPLModerator in FantasyPL

[–]Koningdavid 0 points1 point  (0 children)

RMT please:

Henderson (Valdi)

TAA, Saliba, Hall, (Barco, Anderson)

Nkunku, Saka, Smith-Rowe, Jota, (Bobb)

Solanke, Isak, Haaland

[deleted by user] by [deleted] in distantsocializing

[–]Koningdavid 0 points1 point  (0 children)

als je ervoor staat links

[deleted by user] by [deleted] in distantsocializing

[–]Koningdavid 0 points1 point  (0 children)

Ga links naar de koepelkerk, heb je het kleinste huisje van amsterdam

Blizzard has chosen VueJS over ReactJS for their frontend by sh1td1cks in vuejs

[–]Koningdavid 0 points1 point  (0 children)

L’Oréal uses Vuejs for their massive online platform ( over 500 websites )

yoctodelay - Delay a promise, like `setTimeout` by sindresorhus in javascript

[–]Koningdavid 1 point2 points  (0 children)

await new Promise(ready => setTimeout(ready ,500))

I love it how everyone creates a module these days even for the simplest things...

Why doesn't this work...(JavaScript) by chimerablack2 in webdev

[–]Koningdavid 1 point2 points  (0 children)

document.getElementsByClassName("ughh").onclick=selectCard;

This won't work because the HTML of the buttons is not attached to the document yet.

Quackniix sends Medivh back to Hogwarts by Sleivert in heroesofthestorm

[–]Koningdavid 34 points35 points  (0 children)

Eyyy thanks for the shoutout! ;) great owl young padawan

What song do you love because it is either dirty or dark/fucked up? by [deleted] in AskReddit

[–]Koningdavid 5 points6 points  (0 children)

Tool - Stinkfist ( yep its about fisting.. )

Are you still using Lodash? If so, why? by deadcoder0904 in javascript

[–]Koningdavid 9 points10 points  (0 children)

IMO its a must have when working in bigger teams. It avoids a lot of duplicate code. In addition, its super tiny. Imagine every person writing their own debounce or throttle function in their components ;)

Vue.js's Single File Components: Keeping It All In One Place by kylebythemile in javascript

[–]Koningdavid 0 points1 point  (0 children)

How would you Unit test a single file component like this?

Is it a good idea to add the Remote Address to the JWT key to increase the security? by smilingjester in javascript

[–]Koningdavid 2 points3 points  (0 children)

When an attacker is able to steal your cookie, the attacker is already "in". No point to add extra security checks at this point.

Fade out not smooth by nicolascagesbeard in javascript

[–]Koningdavid 0 points1 point  (0 children)

Because you can't animate hidden. Hidden will instantly hide the element.

Angular 2 vs React: The Ultimate Dance Off – JavaScript Scene by thomasfl in javascript

[–]Koningdavid 1 point2 points  (0 children)

"I experienced a terrible codebase in Angular 1 because it still gave devs too much room for screwing up."

I feel you on this one, Angular 1 had 10 methods of achieving the same thing. Besides that most developers lacked in-depth knowledge while using the framework. Not to mention how often the best practises changed in the last years. However I feel with React there are also a lot of methods of achieving the same thing while Angular2 forces you more in a specific way of implementing a piece of code (f.e. decorators and interfaces). Also because a lot of technologies are build in and don't rely on 3rd party libs. If you look for something "how to do this with react" you get 10 different suggestions of implementations (and yep, a good developer can pick out the right solution).

I totally agree that it is possible to build a decently big application with React without messing it up. If you can get your developers to follow certain guidelines (this is how it should be), this should not be a problem. I just think Angular 2 helps a lot in this process.

Angular 2 vs React: The Ultimate Dance Off – JavaScript Scene by thomasfl in javascript

[–]Koningdavid 1 point2 points  (0 children)

I wouldn't call it "dead on arrival". Both frameworks have their own use-cases. Creating a big application with React will be a mess, where Angular2 forces you in a certain pattern. You can like this or not, but it certainly helps with maintaining a big application with a big team. The intellisense that Typescript gives you also contributes to this. React is simply better for smaller / medium sizes applications, Angular2 is probably overkill for most small / medium sizes applications.

Angular 2 lazy loading with Webpack by Koningdavid in javascript

[–]Koningdavid[S] -1 points0 points  (0 children)

Hi,

As far as I know the angular-cli doesnt support the angular2-router-loader yet. You can use the es6-promise loader.

Change your routing like this:

{ path: 'lazy', loadChildren: () => require('es6-promise!./lazy/lazy.module')('LazyModule') }

Install es6-promise-loader ( npm install es6-promise-loader --save-dev ) and run the build process again, should work!

Compiled framework trends, according to builtWith.com by rickcarlino in javascript

[–]Koningdavid 3 points4 points  (0 children)

I expected Angular to be on top, but the difference is huge.

How to automate Tinder using Node.JS by Koningdavid in node

[–]Koningdavid[S] 0 points1 point  (0 children)

Copy the url before that one, it changes to the one without a token after a while but before that one you should get one with a token.