Programming Tips πŸ’‘
51.5K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Thinking JavaScript πŸ’‘

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
Invoking Delegate in an interpolated Verbatim String C# πŸ‘¨πŸ»β€πŸ’»

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
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