Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "javascript"


Which of the 635000 npm modules do I choose?

  • If you've spent any time in the Node or Front End JavaScript world, you know there are hundreds of thousands of modules to choose from.
  • Before you reach for the ORM, I'd highly suggest making sure you need to use one in the first place.
  • For Web Sockets, rather than include a list of different ones I'm just recommending primus.
  • A couple years ago it was helpful to pull in some npm modules and you might have a specific use case that requires one, but now there's enough native support that it makes sense to leave out the extra dependencies if you're not doing anything too crazy with debugging.
  • Use this guide to help you when you're wasting time deciding what to pick or don't even know where to start.
  • I'm writing a lot of new content to help make Node and JavaScript easier to understand.

save | comments | report | share on


Twitter Is Struggling to Contain the Bitcoin Scam Outbreak

  • The Fine Print: The following comments are owned by whoever posted them.
  • We are not responsible for them in any way.
  • Hacking the stupid is always easy.
  • There may be more comments in this discussion.
  • Without JavaScript enabled, you might want to turn on Classic Discussion System in your preferences instead.
  • The Tao is like a glob pattern: used but never used up.
  • It is like the extern void: filled with infinite possibilities.

save | comments | report | share on


Send SMS When Your Typeform Is Submitted Using Node.js, Hapi and the Messages API

  • In this tutorial we are going to learn how to send a SMS when your Typeform is submitted using the Nexmo Messages API and the Node.js framework Hapi.
  • We'll use the Nexmo Messages API to send an SMS message with the date and link to view the response.
  • You can download and run this code for yourself from the nexmo-community/nexmo-typeform-sms respository on GitHub. The code for this example is built using Node.js and the hapi framework.
  • In order to receive an incoming webhook from Typeform, you need to have an application set up with at least one POST route.
  • We’ve used a hapi server to setup a webhook that’s connected to a Typeform, which sends a SMS message using the Nexmo Messages API whenever a user completes the form.

save | comments | report | share on


'this' keyword execution context in javascript

  • In the global execution context, this keyword is assigned to the window object.
  • If we invoke a function, javascript engine creates its own execution context where this keyword refers to the window object.
  • Bind method is something different it will invoke the function and returns the new function with this keyword bound to the passed object.
  • In the above image have you seen dummy function returns the new function with this keyword is bound to the object we passed it as an argument.
  • Because the method we are passing to the event Handler is invoked in the global environment where this keyword refers to the window object.
  • If we try to access the setState method it doesn't found on the execution context so that we need to bind the this keyword to the class.

save | comments | report | share on


Why Facebook's API starts with a for loop

  • In JavaScript 1.5 and earlier versions, it was possible to override Primitive Object's constructor, and have this overridden version called when using bracket notations.
  • You can still have similar behavior in today's javascript, but it is limited to variables you create, or item creations not using the bracket notation.
  • The fix itself was not to block the function Array creation in itself, but to force the bracket notation of item creations to use the native implementation, and not your custom function.
  • It still will be called if we use the x = new Array(1,2,3) or x = Array(1,2,3) notation though, but this doesn't help us with JSON hijacking.
  • The reason why it is not valid is that Firefox and IE considers the brackets to be the start of a block statement, and not an object creation.

save | comments | report | share on


Why Facebook's api starts with a for loop

  • In JavaScript 1.5 and earlier versions, it was possible to override Primitive Object's constructor, and have this overridden version called when using bracket notations.
  • You can still have similar behavior in today's javascript, but it is limited to variables you create, or item creations not using the bracket notation.
  • The fix itself was not to block the function Array creation in itself, but to force the bracket notation of item creations to use the native implementation, and not your custom function.
  • It still will be called if we use the x = new Array(1,2,3) or x = Array(1,2,3) notation though, but this doesn't help us with JSON hijacking.
  • The reason why it is not valid is that Firefox and IE considers the brackets to be the start of a block statement, and not an object creation.

save | comments | report | share on


myConsole - A JavaScript editor for your phone, in JavaScript.

  • A simple JavaScript editor for you phone, in JavaScipt.
  • A live version of it is hosted here.
  • Top devs blog here.
  • Free forever.
  • We’re a place where coders share, stay up-to-date and grow their careers.
  • We strive for transparency and don't collect excess data.

save | comments | report | share on


Getting started with Sanity as a headless CMS

  • Sanity is the perfect companion for when you want to get started with the JAMstack, or just need API for your project.
  • In this tutorial you'll learn how to get started with using Sanity — from configuring the React editor with JavaScript, to querying the API and migrating the content datasets.
  • And when you need humans to be in control of digital content, Sanity has an open source editor, that you can configure with simple JavaScript, customize with React, and host anywhere you want – be it Netlify, Now, or on Sanity's cloud.
  • If you run sanity start in your project folder, the CLI will open a local server with hot-module reloading so you can configure it without having to refresh the browser manually.
  • In other words, it's swift to get a project going where your editor can begin working with content, that you can fetch and use in your project.

save | comments | report | share on


myConsole - A JavaScript editor for your phone, in JavaScript.

  • A simple JavaScript editor for you phone, in JavaScipt.
  • A live version of it is hosted here.
  • Top devs blog here.
  • Free forever.
  • We’re a place where coders share, stay up-to-date and grow their careers.
  • We strive for transparency and don't collect excess data.

save | comments | report | share on


Advanced JavaScript panels

  • I do not complain but as result it is hard to find advanced topics about JavaScript.
  • This video will give a very good insight into the browser’s JavaScript engine, how it works and what are the optimization techniques.
  • In the 2nd part he will go into the details and explain the new V8 engine, why & how it was made, and how it will improve our NodeJS and Client apps.
  • There are many panels about WebAssembly, but this one is more relevant nowadays and I think it does a better job explaining how & why we will use Native libraries in the JavaScript apps.
  • If you skip the first 5 minutes and the hard to understand English accent you will learn a lot about JavaScript run time, memory model, scope chains and closure.
  • Immutability isn’t a new topic in JavaScript, immutable.js is here for a long time.

save | comments | report | share on