rn

Highlight.js 10, Node 14, and modern React in 20 minutes

#485 — April 24, 2020

Unsubscribe  :  Read on the Web

JavaScript Weekly

Introducing Crank.js: A New JSX-Driven Framework — A new framework for creating JSX-driven components with functions, promises and generators. If you haven’t got time to read the creator’s lengthy (but well worth reading!) rationale for creating another framework, check out the GitHub repo or jump straight into a CodeSandbox example. I hope to see a lot more about this in the near future.

Brian Kim

The Cost of JavaScript Frameworks — Using data from the HTTP Archive, Tim explores the performance cost of using various popular frameworks as a starting point. Some good analysis here.

Tim Kadlec

You Hacked the Gibson? Yeah, They Built Their Own Login — Don't let Crash Override pwn your app. FusionAuth adds secure login, registration and user management to your app in minutes not months. Download our community edition for free.

FusionAuth sponsor

Node.js 14 Released — v14 now becomes the current ‘release’ line with it becoming a LTS (Long Term Support) release in October. Diagnostic reports are now a stable feature, it now uses V8 8.1, there's an experimental Async Local Storage API, and more.

Michael Dawson and Bethany Griggs

Vidact: A Compiler to Convert React-like Apps to Vanilla JS — Compiles pure React-compatible JavaScript (JSX) to vanilla JavaScript with no virtual DOM.. think similar to Svelte, but without introducing a new syntax. A curious idea.

Mohamad Mohebifar

Highlight.js 10.0: The Web Syntax Highlighter Library — I always laugh when I see a big release of a popular library and saw we last linked it 5 years ago ???? Nonetheless, this is a big release and Highlight.js continues to be a fantastic library for syntax highlighting code.

highlight.js

???? Jobs

Senior Full-stack Developer (Malmö/Sweden) — Every day is different from the next. Join our upbeat Team and work on exciting, major projects using a modern JavaScript stack.

Ortelius AB

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

▶  React: The Basics in 20 Minutes — A well presented, up to date (yep, it covers hooks) tutorial that doesn’t hang around, whether you’re new to React or just want a refresher.

Devistry

Creating Web Apps via TypeScript and webpack — The example app doesn’t use any front-end framework, just vanilla DOM APIs. Some knowledge of TypeScript, webpack, and npm are required, but this is a neat way to bring together a bunch of tools.

Axel Rauschmayer

What Is The toJSON() Function? — If an object has a toJSON function, JSON.stringify() calls toJSON() and serializes the return value from toJSON() instead.

Valeri Karpov

A Much Faster Way to Debug Code Than with Breakpoints or console.log — Move forward and backwards through your code to understand what led to a specific bug, view runtime values, edit-and-continue, and more.

Wallaby.js sponsor

How Does TypeScript Work? A Bird’s Eye View — Dr. Axel goes into depth on the structure of a typical TypeScript project, what gets compiled, and how can an IDE be used to write TypeScript. Aimed at people who haven’t yet picked TypeScript up.

Axel Rauschmayer

10 Lesser Known Angular Features You've Probably Never Used

W3Radar

You Might Not Need switch — Using an object of outcomes instead of switch suits many use cases, though take care over readability.

Valentino Gagliardi

???? Upcoming Online Events

  • Pick JS (May 8) — Aimed at intermediate to expert JS developers rather than beginners.
  • JavaScript Remote Conf 2020 (May 14-15) — Speakers lined up already include Douglas Crockford, Aimee Knight and Christian Heilmann.
  • ESNEXT CONF 2020 (May 18-22) — From the Pika folks (of Snowpack fame). 12 speakers over 5 days so it's a gradual pace.
  • ForwardJS (May 26-29) — A real world event (ForwardJS Ottawa) that has now become a virtual event.
  • CascadiaJS 2020 (September 1-2) — This upcoming online conference is set to take place in September, and the CFP is open now through May 15.

???? Code & Tools

Phelia: A Reactive Slack Application Framework — If you think Slack apps were all about text bots, think again.. you can now create apps complete with in-app UIs. Phelia brings the React approach to the task.

Max Chehab

Marked.js 1.0: A Fast Markdown Parser and Compiler — Got Markdown to render? Marked.js to the rescue. While the project is years old, 1.0 has dropped just this week. Here’s a live demo.

Christopher Jeffrey

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

Alpine.js: A Minimal Framework for Composing JS Behavior in Your Markup — We only gave Alpine a brief link when it first dropped but with new versions coming out thick and fast, we think it’s well worth a look. Billed as “like Tailwind for JavaScript”, Alpine lets you keep the HTML you know and love and just pepper it with JavaScript as and where appropriate.

Alpine.js

enroute: A React Router with a Small Footprint for Modern Browsers

TJ Holowaychuk

Rosetta: A General Purpose Internationalization Library in 292 Bytes — Less than 300 bytes, but does have a few dependencies. Aims to be very simple and is targeted at basic string use cases.

Luke Edwards

NAB 2020 May Be Canceled, But The Full Bitmovin Experience Is Not

Bitmovin Inc. sponsor

Hotkey 1.4: Trigger an Action on an Element When a 'Hotkey' is Pressed — Use Hotkey, set the data-hotkey attribute on your elements, and you get keyboard shortcuts. GitHub built and uses it (look for the data-hotkey attributes on their pages).

GitHub

web-worker: Consistent Web Workers for the Browser and Node — In Node it works as a web-compatible Worker implementation atop worker_threads. In the browser it’s an alias for Worker.

Jason Miller




rn

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




rn

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




rn

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




rn

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




rn

Implementing Accountable Care Organizations: Ten Potential Mistakes and How to Learn From Them

Interview with Stephen M. Shortell, PhD, MPH, MBA, author of Implementing Accountable Care Organizations: Ten Potential Mistakes and How to Learn From Them




rn

Quality of Life, Burnout, Educational Debt, and Medical Knowledge Among Internal Medicine Residents

Interview with Colin P. West, MD, PhD, author of Quality of Life, Burnout, Educational Debt, and Medical Knowledge Among Internal Medicine Residents




rn

Moderate Alcohol Consumption During Adult Life, Drinking Patterns, and Breast Cancer Risk

Interview with Wendy Y. Chen, MD, MPH, author of Moderate Alcohol Consumption During Adult Life, Drinking Patterns, and Breast Cancer Risk




rn

Association Between Physician Billing and Cardiac Stress Testing Patterns Following Coronary Revascularization

Interview with Bimal R. Shah, MD, MB, author of Association Between Physician Billing and Cardiac Stress Testing Patterns Following Coronary Revascularization




rn

Association of Antenatal Corticosteroids With Mortality and Neurodevelopmental Outcomes Among Infants Born at 22 to 25 Weeks' Gestation

Interview with Waldemar A. Carlo, MD, author of Association of Antenatal Corticosteroids With Mortality and Neurodevelopmental Outcomes Among Infants Born at 22 to 25 Weeks' Gestation




rn

Studying Complementary and Alternative Therapies

Interview with Paul A. Offit, MD, author of Studying Complementary and Alternative Therapies




rn

HIV in Persons Born Outside the United States, 2007-2010

Interview with Adria Tassy Prosser, PhD, author of HIV in Persons Born Outside the United States, 2007-2010




rn

Association of Childhood Pertussis With Receipt of 5 Doses of Pertussis Vaccine by Time Since Last Vaccine Dose, California, 2010

Interview with Lara K. Misegades, PhD, MS, author of Association of Childhood Pertussis With Receipt of 5 Doses of Pertussis Vaccine by Time Since Last Vaccine Dose, California, 2010




rn

Effect of a Protected Sleep Period on Hours Slept During Extended Overnight In-hospital Duty Hours Among Medical Interns: A Randomized Trial

Interview with Kevin G. Volpp, MD, PhD, author of Effect of a Protected Sleep Period on Hours Slept During Extended Overnight In-hospital Duty Hours Among Medical Interns: A Randomized Trial




rn

General Medicine vs Subspecialty Career Plans Among Internal Medicine Residents

Interview with Colin P. West, MD, PhD, author of General Medicine vs Subspecialty Career Plans Among Internal Medicine Residents




rn

Association Between Maternal Use of Folic Acid Supplements and Risk of Autism Spectrum Disorders in Children

Interview with Pål Surén, author of Association Between Maternal Use of Folic Acid Supplements and Risk of Autism Spectrum Disorders in Children




rn

Elective Cesarean Delivery on Maternal Request

Interview with Jeffrey Ecker, MD, author of Elective Cesarean Delivery on Maternal Request




rn

Use of and Mortality After Bilateral Mastectomy Compared With Other Surgical Treatments for Breast Cancer in California, 1998-2011

Interview with Allison W. Kurian, MD, MSc, author of Use of and Mortality After Bilateral Mastectomy Compared With Other Surgical Treatments for Breast Cancer in California, 1998-2011




rn

Maternal Diabetes and Autism in Offspring

Interview with Anny H. Xiang, PhD, author of Association of Maternal Diabetes With Autism in Offspring




rn

Oral Steroids for Acute Sciatica Due to Herniated Lumbar Disk

Interview with Harley Goldberg, DO, author of Oral Steroids for Acute Radiculopathy Due to a Herniated Lumbar Disk: A Randomized Clinical Trial




rn

Antidepressant Use Late in Pregnancy and Effects on Newborn

Interview with Krista F. Huybrechts, MS, PhD, author of Antidepressant Use Late in Pregnancy and Risk of Persistent Pulmonary Hypertension of the Newborn




rn

Maternal Malignancy and Noninvasive Prenatal Testing

Interview with Diana W. Bianchi, MD, author of Noninvasive Prenatal Testing and Incidental Detection of Occult Maternal Malignancies








rn

Coronavirus Q&A: Former Utah Governor and HHS Secretary Mike Leavitt

US states are taking the lead in managing the COVID-19 pandemic. What can state governors expect from the federal government and from the US Department of Health and Human Services? Governor Mike Leavitt from Leavitt Partners joins JAMA Editor Howard Bauchner, MD, in this live Q&A. Recorded April 8, 2020.




rn

Biochemical properties of soil in forest restoration : a case study of native vegetation within E. globulus plantations in the south west of Western Australia / Katarzyna Marta Safianowicz

Safianowicz, Katarzyna Marta, author




rn

Fishery-impacted bottlenose dolphins of north-western Australia : bycatch patterns, genetic status and abundance / by Simon James Allen

Allen, Simon James, author




rn

Proceedings of the XIth international controlled and modified atmosphere research conference : Trani, Italy, June 3-7, 2013 / convener: G. Colelli ; [editors: M.L. Amodio, G. Colelli]

International Controlled and Modified Atmosphere Research Conference.. authoring body (11th : 2013 : Trani, Italy)




rn

Harvest strategy policy and operational guidelines for the aquatic resources of Western Australia




rn

Effect of knockdown of genes involved in the RNAi pathway on root-knot nematodes / by Sadia Iqbal

Iqbal, Sadia, author




rn

Characterising putative parasitism genes for root lesion nematodes and their use in RNA interference studies / Jo-Anne Chiew Hwa Tan

Tan, Jo-Anne Chiew Hwa, author




rn

Fish reproductive biology : implications for assessment and management / edited by Tore Jakobsen, Michael J. Fogarty, Bernard A. Megrey, Erlend Moksness




rn

Ornamental fishes and aquatic invertebrates / [edited by] Gregory A. Lewbart




rn

Microbial control of insect and mite pests : from theory to practice / edited by Lawrence A. Lacey (IP Consulting International, Yakima, WA, United States)




rn

The nature and properties of soils / Ray R. Weil (Professor of Soil Science, University of Maryland), Nyle C. Brady (late) (Professor of Soil Science, Emeritus, Cornell University)

Weil, Ray R., author




rn

The description, pathogenicity and epidemiology of Phytophthora boodjera, a new nursery pathogen of Eucalyptus from Western Australia / by Agnes Virginia Simamora

Simamora, Agnes Virginia, author




rn

Essential soil physics : an introduction to soil processes, functions, structure and mechanics / Karl-Heinrich Hartge and Rainer Horn ; edited by Robert Horton, Rainer Horn, Jörg Bachmann, Stephan Peth

Hartge, Karl-Heinrich, author




rn

Mains water neutral gardening : an integrated approach to water conservation in sustainable urban gardens / Joshua Joseph Byrne

Byrne, Josh, author




rn

Quantification and characterisation of carbon in deep kaolinitic regolith of south-western Australia / by Podjanee Sangmanee

Sangmanee, Podjanee, author




rn

Legumes in cropping systems / edited by Donal Murphy-Bokern, Frederick L. Stoddard, and Christine A. Watson




rn

Cereal grains : assessing and managing quality / editors Colin Wrigley (QAAFI, University of Queensland, St. Lucia, QLD, Australia), Ian Batey (Sunset Cereal Services, Meadowbank, NSW, Australia), Diane Miskelly (Westcott Consultants, Goulburn, NSW, Austr




rn

Factors affecting truffle production and quality in Western Australia / by Harry Eslick

Eslick, Harry Thomas, author




rn

Functional diversity of mycorrhiza and sustainable agriculture : management to overcome biotic and abiotic stresses / Michael J. Goss (School of Envirnmental Sciences, University of Guelph, Guelph, Ontario, Canada), Mário Carvalho (Institute of Medit

Goss, M. J., author




rn

"Sharks are important, but so is rice" [electronic resource] : opportunities and challenges for shark fisheries management and livelihoods in eastern Indonesia / Vanessa Flora Jaiteh

Jaiteh, Vanessa Flora, author




rn

Plants, genes & agriculture : sustainability through biotechnology / [edited by] Maarten J. Chrispeels (University of California, San Diego), Paul Gepts (University of California, Davis)




rn

Shifting cultivation and environmental change [electronic resource] : indigenous people, agriculture and forest conservation / edited by Malcolm F. Cairns




rn

Sea bass and sea bream : a practical approach to disease control and health management / Pierpaolo Patarnello, Niccolò Vendramin

Patarnello, Pierpaolo, author




rn

Community seed banks : origins, evolution and prospects / edited by Ronnie Vernooy, Pitambar Shrestha and Bhuwon Sthapit