Radio and PodcastRadio and PodcastLive Radio & Podcasts
71: Macros ? artwork
Technology

71: Macros ?

Javascript to Elm by Jesse Tomchak

Feb 28, 201921:03Technology

bit of history Macros can be used to make tasks less repetitive by representing a complicated sequence of keystrokes, mouse movements, commands, or other types of input. In computer programming, macros are a tool that al...

About This Episode

71: Macros ? is an episode from Javascript to Elm by Jesse Tomchak. bit of history Macros can be used to make tasks less repetitive by representing a complicated sequence of keystrokes, mouse movements, commands, or other types of input. In...

Podcast

This episode belongs to Javascript to Elm.

Listen Online

Use the player on this page to stream the episode online.

Episode Details

Published Feb 28, 2019, 21:03 long, audio available.

Questions About This Episode

What is 71: Macros ? about?

bit of history Macros can be used to make tasks less repetitive by representing a complicated sequence of keystrokes, mouse movements, commands, or other types of input. In computer programming, macros are a tool that allows a developer to re-use code. best explianation i have found so far Fundamentally, macros are a way of writing code that writes other code, which is known as metaprogramming. rust docs macro is going to happen at compile time. where a function is going to happen at run time. code that writes code. πŸ€” This is less readable, understandable, and maintainable then general functions. Two types of macros Declaritive w/ general metaprogramming Matching on patterns and replacing code Prodecural more like functions given input -> producing output (pure) Problem babel macros sets to solve solution They can lead to confusion because when looking at code in a project, you might not know that there's a plugin transforming that code. They have to be globally configured or configured out-of-band (in a .babelrc or webpack config). They can conflict in very confusing ways due to the fact that all babel plugins run simultaneously (on a single walk of Babel's AST). Solution transformations with: zero config importability Explicit is often a better pattern than implicit because it requires others to understand how things are globally configured. This is in this spirit are babel-plugin-macros designed. However, some things do need to be implicit, and those kinds of babel plugins can't be turned into macros. the idea of syntax macro it's well suited for babel-plugin-macros What would it take to enable JS Macros to open stage proposals to actual implementations? TC-39 Proposals Picks Resources SweetJS Follow JavaScript to Elm Twitter: @jstoelm Email: jesse@jstoelm.com Jesse Tomchak Twitter: @jtomchak

Where can I listen to 71: Macros ??

You can listen to 71: Macros ? online on Radio and Podcast. Open the player on this page to stream the available audio.

Which podcast is 71: Macros ? from?

71: Macros ? is an episode from Javascript to Elm by Jesse Tomchak.

How long is this episode?

This episode is 21:03 long.

When was this episode published?

This episode was published on Feb 28, 2019.

Can I save 71: Macros ? for later?

Yes. Use the heart button on the episode page to add it to your favorite episodes list.

Are there related episodes from Javascript to Elm?

Yes. This page shows related episodes from Javascript to Elm when more episodes are available from the podcast feed.

Quick Answers About This Episode

Where can I listen to 71: Macros ??

You can listen to 71: Macros ? on this page when the episode audio is available from the podcast feed.

Which podcast is this episode from?

71: Macros ? is from Javascript to Elm by Jesse Tomchak.

What are the episode details?

Published Feb 28, 2019 and 21:03 long