RRU 091: React Best Practices
React Round Up10 Joulu 2019

RRU 091: React Best Practices

In this week’s episode of React Round Up the panel works their way through a blog post outlining best practices for React. The first is “keeping components small and function-specific”. The panel discusses the pros of using this best practice and how it relates to the single responsibility principle. This best practice also helps with the next, “reusability is important”. The panel considers this second best practice and points out some of its flaws. It recommends avoiding the creation of new components. The panel explains that by avoiding creating new components it saves time but can also cause problems as you adapt components to fit more projects. The next best practice is “consolidate duplicate code”, the panel shares their philosophies on dry code and when to consolidate. The fourth best practice is comment only when necessary, Charles explains how he uses comments to help him keep track of things inside his code and the panel warns against using too many comments as it may clog up your code making it hard to read. The fifth best practice is, “name the component after the function”. The panel explains how it is an art finding a name that is not too generic but is not overly specific; mastering the art of naming is something that will benefit everyone. Naming relates to the sixth best practice as well. “Use capitals when naming components”. The panel explains the need for convention and advises developers not to go off-book as this will slow down others. The last six best practices are all self-explanatory says the panel. “Separate stateful aspects from rendering” is nothing new. “Code should execute as expected and be testable”, the panel explains how this allows for trust between developers. “All files relating to a single component should be in the same folder”, this makes everything easy to find when necessary. “Use tools like Bit”, while the panel doesn’t use Bit, they share tool recommendations. They also comment on the progress being made it tooling and the future of automated tools. “Use snippet libraries”, the panel discusses favorite libraries and building their own libraries. The final best practice is “Follow linting rules”. Panelists
  • Charles Wood
  • Christopher Reyes
  • Thomas Aylott
Sponsors Links Picks Charles Wood: Christopher Reyes: Thomas Aylott:

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Become a supporter of this podcast: https://www.spreaker.com/podcast/react-round-up--6102072/support.

Jaksot(310)

RRU 030: "React State Museum" with Gant Laborde

RRU 030: "React State Museum" with Gant Laborde

Panel: Charles Max WoodLucas ReisJustin Bennett (guest host) Special Guests: Gant Laborde In this episode, the panel talks with Gant who has been programming for twenty years. In the past, he has ...

25 Syys 20181h 5min

RRU 029: Christopher Buecheler: "Getting Ready To Teach? Lessons learned from building an 84-tutorial software course"

RRU 029: Christopher Buecheler: "Getting Ready To Teach? Lessons learned from building an 84-tutorial software course"

Panel: - https://twitter.com/cmaxw?ref_src=twsrc%255Egoogle%257Ctwcamp%255Eserp%257Ctwgr%255Eauthor- Lucas Reis (NY)- Nader Dabit Special Guests: http://cwbuecheler.com In this episode, the panel ...

18 Syys 201845min

RRU 028: “Microstates.js – Composable State Primitive” with Taras Mankovski & Charles Lowell

RRU 028: “Microstates.js – Composable State Primitive” with Taras Mankovski & Charles Lowell

Panel: Charles (Chuck) Max WoodLucas Reis Special Guests: Charles Lowell & Taras Mankovski In this episode, the panel talks with two special guests Charles and Taras. Charles Lowell is a principle...

11 Syys 201846min

RRU 027: "Why I Prefer Functional Components" with Josh St. Jacque

RRU 027: "Why I Prefer Functional Components" with Josh St. Jacque

Panel: Charles Max WoodNader Dabit Special Guests: Josh Saint Jacque  In this episode, the panel talks with Josh St. Jacque who is married with two kids and with one on the way. He is a profession...

4 Syys 201843min

RRU 026: Building React Applications in a Monorepo with Luis Vieira

RRU 026: Building React Applications in a Monorepo with Luis Vieira

Panel: Charles Max WoodNader DabitLucas Reis Special Guests: Luis Vieira In this episode, the React Round Up panelists talk to Luis Vieira about his “Building large scale react applications in a mo...

28 Elo 201844min

RRU 025: 2 Years of React Native at Artsy with Orta Therox

RRU 025: 2 Years of React Native at Artsy with Orta Therox

Panel: Nader DabitSia KaramalegosLucas Reis Special Guests: Orta Therox In this episode, the React Round Up panelists talk to Orta Therox about his 2 years of experience with React Native at Artsy...

21 Elo 20181h 4min

RRU 024: Webamp with Jordan Eldredge

RRU 024: Webamp with Jordan Eldredge

Panel: Sia KaramalegosLucas Reis Special Guests: Jordan Eldredge In this episode, the React Round Up panelists talk to Jordan Eldredge about his project Webamp. Jordan’s first introduction to prog...

14 Elo 201850min

RRU 023: High-Performance GraphQL on Postgres with Hasura Tanmai Gopal

RRU 023: High-Performance GraphQL on Postgres with Hasura Tanmai Gopal

Panel: Nader DabitSia Karamalegos Special Guests: Tanmai Gopal In this episode, the React Round Up panelists talk to Tanmai Gopal. Tanmai is the founder at Hasura, where they have been building a ...

7 Elo 201842min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
mimmit-sijoittaa
rss-rahapodi
psykopodiaa-podcast
herrasmieshakkerit
rss-rahamania
ostan-asuntoja-podcast
leadcast
rss-lahtijat
rss-seuraava-potilas
rss-merja-mahkan-rahat
rss-40-ajatusta-aanesta
rahapuhetta
rss-porssipuhetta
rss-vaikuttavan-opettajan-vierella
rss-bisnesta-bebeja
rss-paatos-podcast-suomen-kovimmat-paatoksentekijat-2
rss-bisneksen-pehmea-puoli
rss-levosta-kasin-yrittajyys
rss-ma