View this email in your browser

Javascript is all you need: Fact or Fiction?

This newsletter is proudly sponsored
by Indeed Prime.

On one hand, you have the internet saying, "If you're going to learn just one programming language, go for Javascript."

But on the other hand, some veteran software developers who say, "Javascript isn't a real programming language."

We aren't the ones who will draw this line in the sand, but will be presenting you a curated list with some of Hacker Noon's top Javascript stories. Let you tell us what you think: 

Meet the Holy Trinity of Functional Programming: Map, Filter, and Reduce

You've watched the Youtube videos, you've done the tutorials on Pluralsight and you consider yourself a Javascript expert. However, now you want to hang with all of the cool kids and talk about functional programming. For loops are for suckers (well not really), higher order functions are all the rage and you want to understand what this means. Well the very first step is understanding the 3 most popular methods which are: Map, Filter and Reduce.

It's important to understand how and when to use these methods, but more importantly, you also need to know when to avoid them.

Read full article by Mikhael Levkovsky

[undefined, null, NaN].sort();

The biggest problem, and this caught me out recently, comes when  undefined sneaks in another way. As we’ve seen, if the array contains  undefined it’s ignored and just sorted to the back. However, if you are sorting objects where the keys may be undefined this automatic sorting doesn’t happen and the results become inconsistent.

Read full article by Phil Nash

The Ultimate List of 38 JavaScript Tools

Today JavaScript serves as a powerful and stable basis for lots of advanced web applications and websites. In capable hands of experienced JS developer, it can take user experience to the next level and provide with rich features and highly-functional components. Its ecosystem accounts dozens of JavaScript tools. It seems that new libraries or frameworks take the dev community by assault nearly every week.

So how to choose necessary tools for JavaScript development?

Read full article by Eugeniya

JavaScript End 2 End Testing for Mere Mortals

This is probably the problem that every newcomer faces when starting to learn test automation. This post is for those of you who were also dreaming of testing automation but did not know where to start. I will show you a real example of how to write the first test using minimal knowledge of JavaScript. This will be browser testing of a simple application. To run and create tests, I will use the CodeceptJS framework, because this is still the simplest and most understandable, as for a beginner, a test framework that I’ve found.

Read full article by vova27n

Learn JavaScript Array Methods in just 8 Minutes!!

ITERATION METHODS :
-- Examination Methods : Observe the context of an Array.
-- Transformation Methods : Derive a new array from receiver.
-- Reduction Methods : Compute a result based on the receiver's element.
-- From Loops : Iterating Arrays from Loops.

Read full article by Akash

Working with APIs ( Concepts + Code )

Well ! Suppose you want to develop an app that require users to login into your app via their Facebook account. Now the problem is that you don’t have any access to Facebook code or FB user’s database. So, In that case — you will send a request to Facebook (and I mean it literally ) to their public Facebook O Auth 2 Login API (URL address) and then FB will check and confirms the user details in their database and will send you an 'OK' or 'ERROR' response so that user of your app can login to your app via their FB account .

Read full article by Karan Jagota

Web Scraping Use Cases for Technical Marketers

While working on Hunt, I’ve built 2 Scrapers – one for Product Hunt and one for Twitter. I initially built both with Puppeteer, and I noticed a lot of performance issues when trying to scrape a large list of users from Twitter (including memory errors on the Heroku server) – it took Puppeteer about 10 minutes to finish scraping a 1000 upvoters. I then rewrote the Twitter bot in Cheerio (as described above) and saw a performance boost of around 5X+ : The new code took about 2 minutes (or less) to finish scraping.

Read full article by dan carmel

Conditional Rendering in React

Observe how all our logic got simpler by extracting the block to another component. See also that we are using again the approach of the IFs with the return. This approach is also known as Early return. When we use Early return, our logics tend to be simpler, since the next validation does not have to worry about the previous one. Ex: To check if it is loading, I do not have to worry if an error has occurred or not, since this case has already been handled in the previous IF.

Read full article by Vinicius Dacal

A Practical solution for CORS (Cross-Origin Resource Sharing) issues in IONIC 3 and Cordova

The caveat is that if the npm wrapper is updated you will need to integrate the updates in your branch. But perhaps you can create a pull request and encourage the package owner to use your updates and expose the request function in the constructor.

Read full article by Ari Saif

I created Postwoman 👽 - An online, open source API request builder

The very first task I was assigned is an API integration of an old project. That's when I came across Postman API testing. Postman has separate builds targeted to each operating systems made with Electron. I use a low-end PC and can't possibly afford to run another Electron app. From that moment onwards, I wanted to make an API testing platform which is:

- Open Sourced 💚
- Runs online
- Have multi-platform support
- Have multi-device support
- Accessible from anywhere

Read full article by Liyas Thomas

Have a great weekend,
Utsav from Hacker Noon 👨‍💻
This newsletter is proudly sponsored
by Indeed Prime.
Want to customise what kind of emails you get from us? 

Manage your topic preferences
Twitter
Facebook
Website
Copyright © 2019 Hacker Noon. All rights reserved.

Our mailing address is:
PO Box 2206, Edwards CO, 81632, U.S.A.

Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.