Your Choice JavaScript News

Node News Tuesday, February 6

Node News TLDR / Table of Contents

  • fs: add promises API by jasnell · Pull Request #18297 · nodejs/node
    • node – Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:
    • pr, callback API counterparts, native immediate callback, obsolete note, promises API doc
  • Forms, File Uploads and Security with Node.js and Express —
    • Mark Brown shows how to use Node.js and Express to process form data and handle file uploads, covering validation and security security issues.
    • validation errors, Handling form data, simple contact form, email address, popular web framework
  • 5 Impeccable Reasons Node.js is Great for Startups
    • Among all the server side frameworks Node.js became the most favorite among startups. Here are 5 reasons that Node.js is preferred by most startups.
    • Node.js, response time, low learning curve, development speed, micro-services architecture
  • Automatic visual diffing with Puppeteer
    • Monica Dinculescu: I did a little song-and-dance that sets up Puppeteer , takes screenshots of your app (like, all the routes you care about), and then compares them to the “golden” ones. If they match, your test passes! It only works with Chrome (because Puppeteer), but that’s not a big…
    • little song-and-dance, big deal, Puppeteer, app, routes
  • Java vs .NET vs Python vs Ruby vs Node.JS: Who reigns the job market?
    • In this article Henn Idan digs into the buzz around Java through analyzing the current job market, focusing on server side languages. 
    • Java, jobs, job market, Glassdoor, Test Automation Engineer
  • Modernizing Node.js with idiomatic JavaScript – Node.js Collection –
    • This blog post was written by Peter Marshall, Software Engineer at Google, V8 and Arunesh Chandra, Sr. Program Manager at Microsoft, Chakra Until recently, it was hard to write JavaScript that worked…
    • JavaScript, developers, code, JavaScript virtual machines, performance
  • Redirecting…
    • event loop, node.js, real-time communication, open source, Learn Node.js
  • Free Learning – Free Programming eBooks | PACKT Books
    • A new free programming tutorial book every day! Develop new tech skills and knowledge with Packt Publishing’s daily free learning giveaway.
    • asynchronous single thread, permanently free titles, scalable applications, powerful components, exclusive discounts

Score: 25590
URL: https://github.com/nodejs/node/pull/18297
Tweeted At: Tue Feb 06 04:35:37 +0000 2018
Publish Date:
Author: nodejs

  • Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
  • Already on GitHub?
  • Sign in to your account

Tags: pr, callback API counterparts, native immediate callback, obsolete note, promises API doc

Score: 6915
URL: https://www.sitepoint.com/forms-file-uploads-security-node-express/
Tweeted At: Tue Feb 06 00:33:04 +0000 2018
Publish Date: 2018-02-06T00:15:57+00:00
Author:

  • // routes.js – const express = require(‘express’) – const router = (req, res) = { – = router – – Displaying the Form – When people make a GET request to /contact, we want to render a new view contact.ejs: – // (req, res) = { – res.render(‘contact’) – })…
  • ejs — – div class=”form-header” – h2Send us a message/h2 – /div – form method=”post” action=”/contact” novalidate – div class=”form-field” – label for=”message”Message/label – textarea class=”input” id=”message” name=”message” rows=”4″ autofocus/textarea – /div – div class=”form-field” – label for=”email”Email/label – input class=”input” id=”email” name=”email” type=”email” value=”” / – /div – div…
  • If invalid, we need to pass back the submitted values to the view so they don’t need to re-enter them along with any error messages we want to (req, res) = { – res.render(‘contact’, { – data: {}, – errors: {} – }) – }) – – router.post(‘/contact’, (req, res)…
  • There are three middlewares we need to include to wire this up: – const cookieParser = require(‘cookie-parser’) – const session = flash = middlewares = [ – // … – cookieParser(), – session({ – secret: ‘super-secret-key’, – key: ‘super-secret-cookie’, – resave: false, – saveUninitialized: false, – cookie: { maxAge: 60000…
  • errors.isEmpty()) { – return res.render(‘contact’, { – data: req.body, – errors: errors.mapped() – }) – } – – const data = matchedData(req) – console.log(‘Sanitized: ‘, data) – // Homework: send sanitized data in an email or persist in a db – – req.flash(‘success’, ‘Thanks for the message!

Tags: validation errors, Handling form data, simple contact form, email address, popular web framework

Score: 3921
URL: https://modernweb.com/5-impeccable-reasons-node-js-great-startups/
Tweeted At: Tue Feb 06 08:00:52 +0000 2018
Publish Date: 2016-07-11T08:30:27+00:00
Author:

  • Some of the key helpful attributes of this micro-services architecture support includes: – – Thanks to the above-mentioned reasons and many other developer friendly aspects the popularity of Node.js is continuing to grow at rapid speed.
  • From the robust open source community consisting of a huge number of promising startups to big service providers and software companies including PayPal, Walmart, eBay, Microsoft and Linkedin, a good portion of quality developers from diverse environments are adopting to this framework.
  • The robust community of users and developers consisting of biggies and the promising band of startups made Node.js is popular in the recent times.
  • At a time when mobile web is increasingly replacing mobile specific native apps and becoming the sole avenue of accessing the web, the high speed, performance and adaptability made Node.js the preferred platform for web development.
  • Many rising development companies after switching to Node.js could develop several apps within the same time frame.

Tags: Node.js, response time, low learning curve, development speed, micro-services architecture

Score: 2500
URL: https://changelog.com/news/automatic-visual-diffing-with-puppeteer-oYN
Tweeted At: Tue Feb 06 16:43:12 +0000 2018
Publish Date:
Author:

  • I did a little song-and-dance that sets up Puppeteer , takes screenshots of your app (like, all the routes you care about), and then compares them to the “golden” ones.
  • If they match, your test passes!
  • It only works with Chrome (because Puppeteer), but that’s not a big deal since this is the kind of thing you only put in your .
  • The results are super cool in your test suite output:

Tags: little song-and-dance, big deal, Puppeteer, app, routes

Score: 1800
URL: https://jaxenter.com/java-vs-net-vs-python-vs-ruby-vs-node-js-who-reigns-the-job-market-127430.html
Tweeted At: Tue Feb 06 08:01:59 +0000 2018
Publish Date: 2016-07-05T10:37:37+00:00
Author: Henn Idan

  • If you ask Oracle, they can show you some numbers that go along with these statements: – – SEE ALSO: The top 100 Java libraries in 2016 — After analyzing 47,251 dependencies – – In order for us to see how popular Java really is, we decided to look where it…
  • Just like any other person looking for a job, we searched the term “Java” in Glassdoor, limiting the result to the US, and got 60,322 results.
  • When searching for Scala positions, the numbers slim down to 2,618 jobs on Glassdoor and 4,242 jobs for developers and engineers on Indeed.
  • It also seems that Akka, which is also used by Java and Scala developers, is less popular, with 283 jobs on Glassdoor and 427 jobs on Indeed.
  • In order to get some clue about open positions for Groovy developers, we narrowed down the search term to developers and engineers, and got a reasonable number of 1,795 jobs available.

Tags: Java, jobs, job market, Glassdoor, Test Automation Engineer

Score: 1671
URL: https://medium.com/the-node-js-collection/modernizing-node-js-with-idiomatic-javascript-f18d984dcf93
Tweeted At: Tue Feb 06 13:45:11 +0000 2018
Publish Date: 2018-01-29T17:07:09.090000+00:00
Author: Node.js Foundation

  • In other words, if developers want to improve the performance of their JavaScript, what sort of code should they write?In the past, performance advice was often presented as anti-patterns, for example “Don’t use for-each” or “Don’t use try-catch”.
  • For much of its life, Node.js embedded the V8 engine as the only option to run JavaScript code.
  • Fast-forward to 2018 — Node.js can now also be powered by the ChakraCore JavaScript engine and V8 has a new optimizing compiler Turbofan, both of which have a very different performance profile to Crankshaft.
  • The answer is straightforward: JavaScript developers should focus on writing idiomatic, readable and maintainable code and not focus on the compilers underneath.
  • Ideally, developers should not have to worry about any of those micro-optimizations, instead they should be able to write something much simpler like the following, and trust that the compiler will do the right thing for performance:We believe that instead of developers specializing their JavaScript code for the compilers, compiler…

Tags: JavaScript, developers, code, JavaScript virtual machines, performance

Score: 6101
URL: http://www.codehenge.net/blog/2014/01/what-is-node-js/
Tweeted At: Tue Feb 06 05:40:01 +0000 2018
Publish Date:
Author:

    Tags: event loop, node.js, real-time communication, open source, Learn Node.js

    Score: 2200
    URL: https://www.packtpub.com/packt/offers/free-learning/
    Tweeted At: Tue Feb 06 15:32:58 +0000 2018
    Publish Date:
    Author:

      Tags: asynchronous single thread, permanently free titles, scalable applications, powerful components, exclusive discounts

      The Complete Node.js Developer Course (2nd Edition) (60,232 students enrolled)

      By Andrew Mead
      • Build, test, and launch Node apps
      • Create Express web servers and APIs
      • Store data with Mongoose and MongoDB
      • Use cutting-edge ES6/ES7 JavaScript
      • Deploy your Node apps to production
      • Create real-time web apps with SocketIO

      Learn more.


      Angular (Angular 2+) & NodeJS - The MEAN Stack Guide (26,806 students enrolled)

      By Maximilian Schwarzmüller
      • Build real Angular + NodeJS applications
      • Understand how Angular works and how it interacts with Backends
      • Connect any Angular Frontend with a NodeJS Backend
      • Use MongoDB with Mongoose to interact with Data on the Backend
      • Use ExpressJS as a NodeJS Framework
      • Provide a great user experience by using Optimistic Updating on the Frontend
      • Improve any Angular (+ NodeJS) application by adding Error Handling

      Learn more.


      Comments are closed, but trackbacks and pingbacks are open.