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!
Invoking Delegate in an interpolated Verbatim String C# π¨π»βπ»
Try this short program, it has lots of topics to learn.
γ°γ°γ°γ°γ°γ°
#CSharp #Deep
@ProgrammingTip
Try this short program, it has lots of topics to learn.
Console.WriteLine($@"Hello {( (Func<string>) ( () =>
{
Console.Write("What's your name ? ");
return Console.ReadLine();
})).Invoke()}");
γ°γ°γ°γ°γ°γ°
#CSharp #Deep
@ProgrammingTip
Do You Know Where Your TempData is β
TempData is a bucket where you can dump data that is only needed for the following request. π¦
That is, anything you put into TempData is discarded after the next request completes. β
This is useful for one-time messages, such as form validation errorsβοΈ
If you need something more persistent, Session is likely what youβre looking for. π₯
By default, TempData is stored in the session.
πΉπΈπΉπΈ
In this article you see how TempData works and how you can use another provider instead of Session to store the data. π
https://t.me/pgimg/20
[ Article ] : http://bit.do/tmpdt
γ°γ°γ°γ°γ°γ°
#AspMvc #TempData #Deep
@ProgrammingTip
TempData is a bucket where you can dump data that is only needed for the following request. π¦
That is, anything you put into TempData is discarded after the next request completes. β
This is useful for one-time messages, such as form validation errorsβοΈ
If you need something more persistent, Session is likely what youβre looking for. π₯
By default, TempData is stored in the session.
πΉπΈπΉπΈ
In this article you see how TempData works and how you can use another provider instead of Session to store the data. π
https://t.me/pgimg/20
[ Article ] : http://bit.do/tmpdt
γ°γ°γ°γ°γ°γ°
#AspMvc #TempData #Deep
@ProgrammingTip
Telegram
Programming Tips Resources
Programming Tips π‘
Photo
You Don't Know JS by Kyle Simpson.pdf
4.2 MB
You Don't Know JS π
Author π : Kyle Simpson
Publisher : O'Reilly β¨
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Book #JavaScript #Deep
@ProgrammingTip
Author π : Kyle Simpson
Publisher : O'Reilly β¨
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Book #JavaScript #Deep
@ProgrammingTip