JavaScript Metaprogramming - Dave Fancher - NDC London 2022

  Рет қаралды 4,542

NDC Conferences

NDC Conferences

Күн бұрын

Metadata, data about data, is everywhere. We seem to intrinsically understand that using data to further describe the data within our systems brings numerous benefits to taming complexity. It follows then that metaprogramming, programming that interacts with the program itself by inspecting or even manipulating its own code can bring similar benefits to our software.
ES6 greatly expands upon JavaScript's existing metaprogramming capabilities with the Symbol, Reflect, and Proxy types. Through some practical examples we'll discuss the role each of these types play within JavaScript metaprogramming and see how they not only affect your code but even drive several modern language features.
Check out more of our featured speakers and talks at
www.ndcconfere...
ndclondon.com/

Пікірлер: 6
@hamzakhiar3636
@hamzakhiar3636 5 күн бұрын
I didn't understand the symbols example where can I find the code
@AmirPlusH
@AmirPlusH 2 жыл бұрын
Source code from Dave’s github: github.com/davefancher/js-metaprogramming-old
@mafazabrar4349
@mafazabrar4349 Жыл бұрын
This talk is amazing! Leaned a lot about JS and its internals.
@dearlordylord
@dearlordylord 2 жыл бұрын
There’s nothing wrong with “delete” semantics of returning true when target is already deleted. It’s a valid point of view on this operation with idempotence in mind. It could have been implemented another way around, yes, but it would’ve meant the same kind of inconveniences but for another set of use cases. 9:57
@matheuss7348
@matheuss7348 11 ай бұрын
The is a problem with the delete returning true when the operation wasn't done is that, if it is already deleted and still returning true to me, it is lying to me. It is saying that, in some usecase which i'm deleting an property means that i'm expecting that property to exists. If not, then, there is something wrong before the delete and it may leads to future bugs. It should throw an error, not returning true to me.
@dearlordylord
@dearlordylord 11 ай бұрын
@@matheuss7348 I don’t remember the context of this comment anymore. But always: it depends
Worst flight ever
00:55
Adam W
Рет қаралды 29 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,8 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 19 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
The Best Programmer I Know • Daniel Terhorst-North • GOTO 2024
48:33
GOTO Conferences
Рет қаралды 57 М.
Fractal architecture - Mark Seemann - NDC London 2022
54:31
NDC Conferences
Рет қаралды 4,5 М.
Where’s C# headed? - Mads Torgersen - NDC Copenhagen 2022
1:01:28
NDC Conferences
Рет қаралды 29 М.
JavaScript Proxies
22:54
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
Errichto Stream, POI 22/1
3:55:08
Errichto Algorithms
Рет қаралды 157 М.
Meta Programming is King
23:49
Raw Coding
Рет қаралды 4,7 М.
Worst flight ever
00:55
Adam W
Рет қаралды 29 МЛН