Thinking JavaScript 💡
The question posed to me was this :
Why does this first line "work" (compiles/runs) but the second line gives an error ⁉️
Not that I expect you'll ever intentionally write (or read, hopefully!) code like this, but being able to think more like JavaScript does always help you write better code. ✅
In this topic, we're gonna answer this question.
[ Website ] : https://davidwalsh.name/thinking-javascript
〰〰〰〰〰〰
#JavaScript #Compiler #Deep
@ProgrammingTip
The question posed to me was this :
Why does this first line "work" (compiles/runs) but the second line gives an error ⁉️
[[]][0]++;
[]++;
Not that I expect you'll ever intentionally write (or read, hopefully!) code like this, but being able to think more like JavaScript does always help you write better code. ✅
In this topic, we're gonna answer this question.
[ Website ] : https://davidwalsh.name/thinking-javascript
〰〰〰〰〰〰
#JavaScript #Compiler #Deep
@ProgrammingTip
David Walsh Blog
Thinking JavaScript
Exploring JS syntax/grammar to understand a confusing snippet, improving our thinking to be more like JavaScript!
Lowering in C#: What's really going on in your code? 👾
If you're attending NDC you probably think you know what a foreach loop does - it iterates over a collection, right? ✅
BUT do you know how? Do you know what the C# compiler does when you write a foreach loop? What about a lambda expression? Or the re-entrant magic that is a yield return statement❓
In this session we'll dive into Roslyn, the C# compiler, and learn about lowering and how it helps the compiler do its job, and what it does to your code. In the process you'll gain the skills to identify some of the common performance pitfalls of .NET, as well as just get a deeper understanding of what the code you write really does. 💎
[ YouTube ] : https://youtu.be/gc1AxbNybvw
〰️〰️〰️〰️〰️〰️
#CSharp #LowLevel #Compiler #Roslyn
@ProgrammingTip
If you're attending NDC you probably think you know what a foreach loop does - it iterates over a collection, right? ✅
BUT do you know how? Do you know what the C# compiler does when you write a foreach loop? What about a lambda expression? Or the re-entrant magic that is a yield return statement❓
In this session we'll dive into Roslyn, the C# compiler, and learn about lowering and how it helps the compiler do its job, and what it does to your code. In the process you'll gain the skills to identify some of the common performance pitfalls of .NET, as well as just get a deeper understanding of what the code you write really does. 💎
[ YouTube ] : https://youtu.be/gc1AxbNybvw
〰️〰️〰️〰️〰️〰️
#CSharp #LowLevel #Compiler #Roslyn
@ProgrammingTip
Telegram
Programming Tips Resources