d

Jest 26, JS one liners, and comparing Ember to React

#487 — May 8, 2020

Unsubscribe  :  Read on the Web

JavaScript Weekly

Jest 26 Released: The Popular Testing Framework — Jest is a popular testing framework that works with pretty much everything. This release focuses on getting the dependency count and install size down (this causes some breaking changes, unsurprisingly), adds a new fake timer implementation, drops Node 8 support, and initial, experimental ESM support to play with.

Christoph Nakazawa

1LOC: A Collection of One-Line JS Snippets — A neat little collection of vanilla JavaScript one-liners divided into various categories (arrays, date/time, checking objects, DOM work, etc.) You can submit your own for inclusion too.

Nguyen Huu Phuoc

Hardcore Functional Programming in JavaScript — Brian Lonsdorf teaches you functional programming concepts in JavaScript such as pure functions, currying, composition, functors, monads and more.

Frontend Masters sponsor

Debug Anything: The Basics — A six part series (all ready to read now) on debugging your JavaScript and TypeScript code with the debugger built into Visual Studio Code.

Charles Szilagyi

Comparing Ember Octane and React — This is about as detailed a comparison as you could hope for and a demonstration of just how much Ember contributes to the JavaScript ecosystem. Octane really kicks things up a notch for Ember, too.

Chris Garrett

Deno 1.0 is Due Next Week: Here's What You Need to Know — In 2018 Node's creator Ryan Dahl told us 10 Things I Regret About Node.js and revealed a prototype of Deno, a new V8-based runtime, and here's what you need to know about it. Short of time? This two-minute video sums up the biggest wins quickly.

David Else

Our newest newsletter..

Carrying on from the Deno item above, yes, we've started Deno Weekly, a new newsletter dedicated to the newest runtime in the JavaScript/TypeScript world. Issue 2 goes out just after 1.0 is released next week.

Even if you don't stick with Deno long term, feel free to subscribe then unsubscribe at any time — we won't take offence ????

Subscribe to Deno Weekly here or enjoy issue 1 here.

???? Jobs

JavaScript Developer at X-Team (Remote) — Join X-Team and work on projects for companies like Riot Games, FOX, Coinbase, and more. Work from anywhere.

X-Team

Find a Job Through Vettery — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started.

Vettery

???? Tutorials

How To Build a Vue Survey App Using Firebase — A step-by-step guide to building a functional survey app using Vue.js and Firebase for both authentication and as a database.

David Atanda

A Brief Look at ES2020's Promise.any — When you need to know when at least 1 promise got resolved among an iterable of Promise objects, Promise.any() is the solution.

Marios Fakiolas

ES2020: Everything You Need to Know — An ES2020 roundup!

Martin McKeaveney

Building a Crossword Puzzle Generator — As a NY Times crossword addict, I love a good crossword, but if you’d rather figure out how to make your computer solve them, be my guest ???? This post guides you on how to approach the problem.

Mitchum

Git Best Practices for SOC 2 Compliance Quick Wins — Get quick wins for your SOC 2 compliance audit, and raise developer productivity at the same time.

Datree.io sponsor

Getting Started with Sapper and SvelteSapper is a Svelte-powered framework.

Chris Boakes

A ES2015+ Cheatsheet — A one-page guide to ES2015+ features based around brief example snippets.

Devhints.io

How to Fix ESLint Errors Upon Save in VS Code — A quick-fire tip.

David Walsh

How to Build a Blog with Next 9.3, Netlify, and Markdown — Learn how to build a Next.js-powered Markdown blog and deploy it to the Netlify platform.

Cassidy Williams

A Canvas Engine Comparison: PixiJS vs Two.js vs Paper.js — A benchmark of three popular 2D rendering engines/drawing APIs. Note: This will tax your system.

SlayLines

???? BTW, if you like videos, we need to shout out Florin Pop's YouTube channel as he's just passed 20k subscribers by posting neat JavaScript videos and live streams nearly every day for the past six months! ???? Lots of great stuff on there for JavaScript developers of all skill levels.

???? Code & Tools

Selecto.js: Make Elements Selectable Within an Area — Let’s say you have a number of elements that represent choices, data, whatever, and you want users to be able to select a subset of them by clicking/pointing and dragging. That’s what this does. Live examples here.

Daybrush (Younkue Choi)

Visual Studio Code April 2020 Released — Probably the most widely used editor in the JavaScript space now and April brings some neat new features like being able to work on GitHub issues within the editor.

Microsoft

Stream Chat API & JavaScript SDK for Custom Chat Apps — Build real-time chat in less time. Rapidly ship in-app messaging with our highly reliable chat infrastructure.

Stream sponsor

Majestic 1.7: A Zero Config GUI for Jest — A tool to help make your JavaScript testing life a little easier. Run npx majestic in the folder of any project that uses Jest to give it a quick try.

Raathi Kugarajan

Pico: Take Browser Screenshots Client-Side with JavaScript — Different from capturing a webpage using Puppeteer or a similar tool in that the screenshot taking happens entirely client side.

Gripeless

React Flow: A Library for Rendering Interactive Graphs — If you have a need to lay out graphs in a visual way and be able to smoothly pan and zoom around such graphs, this is an interesting new library. Live demo here.

Moritz Klack

MongoDB Is Easy. Now Make It Powerful. Free Download for 30 Days.

Studio 3T sponsor

NeutralinoJS: Build Cross-Platform Apps Using JS, HTML and CSS — Sounds just like Electron, right? Not quite. NeutralinoJS use less memory and are smaller as they don’t ship a full browser inside. 1.4.0 just dropped.

Neutralinojs

Slugify 1.0: Simply Turns Strings into URL/Filename-Friendly 'Slugs' — e.g. ‘I ♥ Dogs’ becomes ‘i-love-dogs’

Sindre Sorhus

RxJS Primitives: A Set of Libraries That Provide Operators for RxJS

Tane Piper

⚡️ Quick releases:




d

Medical inbound tourism poised to get a push: FAITH chairman Nakul Anand

Medical inbound tourism, already on the rise, will get a boost with addition of Tier-II and -III hospitals




d

Budget 2020: NRI tax to only impact India earnings, govt clarifies

The Union Budget had proposed on Saturday that NRIs have to pay up taxes on global earnings, if they're not paying in any other jurisdiction or country, generating much debate




d

From Nilesh Shah to Jyotivardhan Jaipuria, here're experts' views on Budget

'The disappointment is on the lack of bold, out of the box measures to tackle the current economic slowdown'




d

Decoding Budget 2020: Nirmala Sitharaman's fiscal maths gone awry

Slowdown in economic growth has taken a clear toll on revenue growth




d

Govt has put out a progressive Budget aimed at boosting infra: Sujeet Kumar

It has restored confidence of businesses as well as provided on-ground support that MSMEs need and farmers deserve, Co-founder of Udaan said




d

A big positive in this Budget is tax exemptions: PGIM India Mutual Fund CEO

Abolishing DDT will attract investments, said Ajit Menon, CEO of PGIM India Mutual Fund




d

FM Nirmala Sitharaman's Budget goal: Lower rates, simple structure

The FM disagreed with experts who termed the new tax regime complex and unavailing saying it would benefit some taxpayers, if not all




d

Budget 2020: Selling pressure on stock market may continue, say experts

On Saturday, the benchmark indices closed near their day's lows, indicating further selling pressure on the following trading day




d

Nirmala Sitharaman's Budget proposals to stimulate economic growth

The tax proposals are aimed at stimulating growth, simplifying tax structure, bringing ease of compliance and reducing litigation




d

Budget stimulus unlikely to revive India's growth from slowdown: Experts

Economists and industry leaders said the budget proposals would provide some support to growth over the longer term but were insufficient to give it an immediate boost




d

Not all NRIs need to pay tax, here's what FM clarified post budget speech

Finance minister clarified that only Indian income of NRIs is proposed to be taxed under the new provision




d

Budget: No tax relief for home buyers stuck in stalled projects, says FPCE

Real estate developers' apex bodies CREDAI and Naredco have also expressed disappointment over the Budget as their demand of one-time restructuring of builders' loan was not met




d

Podcast: T N Ninan and A K Bhattacharya dissect Budget 2020

Has Finance Minister Nirmala Sitharaman delivered a fiscally prudent and growth-oriented Budget 2020? Business Standard Chairman T N Ninan and Editorial Director A K Bhattacharya discuss




d

New tax structure will leave more cash in the hands of people: Revenue Secy

He said the Budget gives an option to individuals to migrate to a new regime by foregoing their existing exemptions and deductions for a lower tax rate




d

It's a pragmatic Budget, will put India on right track: Amitabh Kant

He further said if the government will be able to achieve disinvestment target of 2020-21 then the Budget will be very successful




d

Govt very transparent in setting new fiscal deficit target: FM Sitharaman

She further said that many people have been speculating that the fiscal deficit would cross 4%




d

Budget's much-needed leg-up for small units: CRISIL SME Tracker

An evaluation of 13,000 MSMEs using the CRISIL Quantix database shows that working capital comprises over half of their need for debt




d

Power industry hails proposal for smart prepaid metering across the country

Power ministry has been planning it for two years, but with limited success




d

Govt not included AGR dues payment in Budget 2020-21: DEA Secretary

15 entities owe the government about Rs 1.47 trillion in past dues -- Rs 92,642 crore in unpaid licence fee and another Rs 55,054 crore in outstanding spectrum usage charges




d

Budget 2020 has not accounted for telcos' AGR dues: DEA secretary

But receipts from firms stand at a whopping Rs 1.33 trillion for FY21




d

RBI MPC starts meeting to decide new rates amid slowdown, rising inflation

The retail inflation that for several months remained in the comfort zone of the central bank has started inching up and crossed the 7 per cent mark during December 2019




d

Budget 2020: Rs 2,500 cr not enough for tourism promotion, says industry

Tourism bodies say Indians spending Rs 9,000 cr abroad abroad due to poor domestic infra, which cannot be improved with this allocation




d

LIC disinvestment: 100,000 employees stage walk-out across country

There are 13 unions in LIC, and employees and officers affiliated to 11 unions were on protest




d

Wanted to keep Budget Speech shorter but ended up breaking own record: FM

In July presenting her maiden Budget, Sitharaman had spoken for 2 hours 17 minutes




d

Budget proposes to shut thermal power plants of 166,000 mw, says group

National powermen body to stage protests against 'anti-people' proposals




d

Economy fundamentals strong; markets show faith in Budget 2020: Sitharaman

FM says country's macroeconomic parameters are sound




d

ITC is first to hike cigarette prices post budget; makes them 10-20% dearer

Price increase brought on by spike in National Calamity Contingency Duty announced in Budget




d

Yogi govt to table Budget 2020-21 on February 18; session starts Thursday

The size of the UP Annual Budget 2020-21 is expected to breach the historic mark of Rs 5 trillion




d

Open to tweaking Budget to address concerns of the industry, says FM

Finance ministry to come out with detailed rules on Vivad Se Vishwas Bill in a couple of days




d

Objective of kick-starting growth not addressed effectively in Budget: Garg

"All these expenditures are unlikely to be imparting any fresh growth stimulus to the Indian economy," he argued




d

Budget disappointing; but fiscal, taxation measures welcome: EAC member

India's GDP growth is expected to slip to a decadal low of 5 per cent this fiscal, pressured by domestic factors like drop in consumption, as well as global issues




d

Odisha tables revenue surplus budget with total outgo pegged at Rs 1.5 trn

Budget estimates fiscal deficit to be at 3.4%, within permissible limit of FRBM target




d

Understanding Depression and Distress Among Medical Students

Interview with Laura Weiss Roberts, MD, MA, author of Understanding Depression and Distress Among Medical Students




d

What If Physicians Actually Had to Control Medical Costs?

Interview with Robert H. Brook, MD, ScD, author of What If Physicians Actually Had to Control Medical Costs?




d

Substituted Interests and Best Judgments: An Integrated Model of Surrogate Decision Making

Interview with Daniel P. Sulmasy, MD, PhD, author of Substituted Interests and Best Judgments: An Integrated Model of Surrogate Decision Making




d

Discussing Radiation Risks Associated With CT Scans With Patients

Interview with Mark Otto Baerlocher, MD, author of Discussing Radiation Risks Associated With CT Scans With Patients




d

he United States' Engagement in Global Tobacco Control

Interview with Lawrence O. Gostin, JD, author of The United States' Engagement in Global Tobacco Control




d

Re"evolutionary" Regenerative Medicine

Interview with Helen M. Blau, PhD, author of Re"evolutionary" Regenerative Medicine




d

A Vision for Patient-Centered Health Information Systems

Interview with Alex H. Krist, MD, MPH, author of A Vision for Patient-Centered Health Information Systems




d

Damage Prevention and Control for Financial Incapacity

Interview with Charles Sabatino, JD, author of Damage Prevention and Control for Financial Incapacity




d

Biosafety Concerns Involving Genetically Modified Mosquitoes to Combat Malaria and Dengue in Developing Countries

Interview with Lawrence O. Gostin, JD, author of Biosafety Concerns Involving Genetically Modified Mosquitoes to Combat Malaria and Dengue in Developing Countries




d

Curtailing Diversion and Abuse of Opioid Analgesics Without Jeopardizing Pain Treatment

Interview with Nora D. Volkow, MD, author of Curtailing Diversion and Abuse of Opioid Analgesics Without Jeopardizing Pain Treatment




d

From Efficacy to Effectiveness in the Face of Uncertainty: Indication Creep and Prevention Creep

Interview with Benjamin Djulbegovic, MD, PhD, author of From Efficacy to Effectiveness in the Face of Uncertainty: Indication Creep and Prevention Creep




d

Improving Postdischarge Outcomes in Patients Hospitalized for Acute Heart Failure Syndromes

Interview with Mihai Gheorghiade, MD, author of Improving Postdischarge Outcomes in Patients Hospitalized for Acute Heart Failure Syndromes




d

Application of Electronic Health Records to the Joint Commission's 2011 National Patient Safety Goals

Interview with Ryan Radecki, MD, author of Application of Electronic Health Records to the Joint Commission's 2011 National Patient Safety Goals




d

Interventions for War-Related Posttraumatic Stress Disorder: Meeting Veterans Where They Are

Interview with Charles Hoge, MD, author of Interventions for War-Related Posttraumatic Stress Disorder: Meeting Veterans Where They Are




d

Implementation of Medicare Part D and Nondrug Medical Spending for Elderly Adults With Limited Prior Drug Coverage

Interview with J. Michael McWilliams, MD, Phd, author of Implementation of Medicare Part D and Nondrug Medical Spending for Elderly Adults With Limited Prior Drug Coverage




d

Adjunctive Risperidone Treatment for Antidepressant-Resistant Symptoms of Chronic Military Service-Related PTSD

Interview with John H. Krystal, MD, author of Adjunctive Risperidone Treatment for Antidepressant-Resistant Symptoms of Chronic Military Service-Related PTSD




d

Sleep-Disordered Breathing, Hypoxia, and Risk of Mild Cognitive Impairment and Dementia in Older Women

Interview with Katie L. Stone, PhD, author of Sleep-Disordered Breathing, Hypoxia, and Risk of Mild Cognitive Impairment and Dementia in Older Women