if i have an iterable sequence of characters, representing a JSON string, how would i go about parsing that? since JSON.parse() doesn't accept iterables, only strings
i am coming from a .net mvc/c# background and writing my first node/express.js application. it's a simple form with a really basic api behind it. I can see how I write my api using express.js. what do I do for the frontend? my experience is using Backbone to do my front end stuff.
I've been 'spoiled' using the bundles and whatnot to get my front end just working
there appear to be so many options that im a little overwhelmed...
i've been using Vue recently, and i'm pretty impressed with it it doesn't do much more than DOM rendering though, if you're looking for something more monolithic
not sure jQuery and Vue are supposed to be used for the same purpose i mean, Vue is for dynamic DOM rendering; JQ is just general DOM manipulation tools
Yeah sure, but i rather use React, that has a true architecture behind it that you can rely on. And that architecture leads to the most mantainable, scalable and reusable code i've ever written, specially if you combine it with Redux. But that might be because the only thing I do are SPAs, usually big ones.
@Valilutzik Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
> This adds the HotModuleReplacementPlugin. Make sure to use either the --hot flag, or the HotModuleReplacementPlugin in your webpack.config.js, but never both at the same time as in that case, the HMR plugin will actually be added twice, breaking the setup.
this is the kind of thing that makes webpack so awesome
If I create an object like this:
var obj = {};
obj.prop1 = "Foo";
obj.prop2 = "Bar";
Will the resulting object always look like this?
{ prop1 : "Foo", prop2 : "Bar" }
That is, will the properties be in the same order that I added them?
Does ES6 introduce a well-defined order of enumeration for object properties?
var o = {
'1': 1,
'a': 2,
'b': 3
}
Object.keys(o); // ["1", "a", "b"] - is this ordering guaranteed by ES6?
for(let k in o) {
console.log(k);
} // 1 2 3 - is this ordering guaranteed by ES6?
Hello guys ! According to all the actual browser incompatibility, How much time do you think we have left until we can use fully the Ecmascript 6 features on the client side, like class or querySelector ?
And when V8 decides to optimize or not when using them, but I don't fully understand when using bind, apply and arguments together is a bailout
I followed all the guidelines above, and got some deopt functions I had optimized now, but I do use arguments on some functions I bind and maybe apply later, so that statement got me :-/
@Dream_Cap Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
Let me know if this is the wrong place to ask this question. I'm trying to make buttery smooth animations that scale with text in them. I'm currently playing with the JavaScript library Velocity.js. The problem is that when I animate anything with text in it with a scale animation, the text jitters a bit during the animation. I'm using Chrome on Windows. Here is a link to a simple CodePen I'm using to try things out: codepen.io/aaronbeaudoin/pen/yXyVME
@AaronBeaudoin Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
When using CSS animations, the text doesn't jitter at all. I'm not sure if there is some limitation with JavaScript, because another library (Anime.js) yielded the same results.
@AaronBeaudoin I guess that is because when using CSS animations, the browser don't renders the text until the animation ended. You can see that the text gets blurry while the animation is being done: codepen.io/anon/pen/jwEybX
But by using a library, the browser renders the text on each animation frame, so you get the jitter
I want to send an "ajax download request" when I click on a button, so I tried in this way:
javascript:
var xhr = new XMLHttpRequest();
xhr.open("GET", "download.php");
xhr.send();
download.php:
<?
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Conten...
1. You can buy the domains, buy one server, point all the domains to the server, have multiple node applications running on the server under different ports, use nginx to direct traffic based on the domain
Advantages: All in one place, can manage all your node processes with pm2 or some similar simple tool
Disadvantages: Downtime for one means downtime for all.
2. You can set up droplets/heroku instances/AWS instances/whatever for each service, and point your domains there
The main disadvantage is that managing is a bit more complicated
in that case, it would need to be something that the client can manage. I don't want to have my own servers, I want to be able to give everything to the client after the time I stopped working for them (ideally they'd be 1-2-3 day jobs). I can tell them "ok, if something goes wrong, you can call this number to be helped in what's happening" with the idea that I would not have to do anything for them without them giving me money
@towc If it's fire&forget in the sense that you could get to a point where the service is still active but you aren't maintaining it, the second option is likely better.
@nolines Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@SANTEREK Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.