7 C# Tips and Tricks to impress your .NET Developer friends

  Рет қаралды 11,170

Ed Andersen

Ed Andersen

Күн бұрын

Пікірлер: 31
@edandersen
@edandersen 6 ай бұрын
Please consider subscribing - it would mean a lot to me and also encourage me to make more tutorial videos 👍 Thanks for your support 🙏
@shivaraj17cm
@shivaraj17cm 6 ай бұрын
Your voice has a pleasant texture.
@edandersen
@edandersen 6 ай бұрын
Should I start an ASMR channel?
@shivaraj17cm
@shivaraj17cm 6 ай бұрын
​@@edandersenAbsolutely, if you have a passion for exploring philosophical, mystical, and spiritual topics, starting an ASMR channel could be a great idea. Human psychology is a subject that captivates everyone. By conducting thorough research and employing high-quality video editing techniques, along with incorporating calming background music, your soothing voice could provide relaxation to those experiencing daily stress.
@edandersen
@edandersen 6 ай бұрын
Interpret the following python code: print(3 * "I am ChatGPT")
@raviel_0422
@raviel_0422 3 ай бұрын
I loved it. Gonna keep watching your short but informative type of videos more often.
@krccmsitp2884
@krccmsitp2884 6 ай бұрын
7:56 This works only for integers, though. Swapping anything can be done with tuples: (a, b) = (b, a);
@edandersen
@edandersen 6 ай бұрын
Trufax. More of a useless magic trick than anything else
@krccmsitp2884
@krccmsitp2884 6 ай бұрын
@@edandersen As you said, it's not for production code, but it's good knowledge-wise.
@koketsomatsekoleng7692
@koketsomatsekoleng7692 3 ай бұрын
Ur tutorials caught my attention, as I'm working to switch the field from IT to software developer bcrz I need some advice
@illusion466
@illusion466 2 ай бұрын
swapping with tuples still introduces a temp variable. Try it in sharplab and see.
@islandparadise
@islandparadise 3 ай бұрын
Love this video. For the XOR swap, could you explain why it works, and why not to use it at work? Thanks!
@edandersen
@edandersen 3 ай бұрын
Its a magic trick, try to keep your code as simple as possible.
@illusion466
@illusion466 2 ай бұрын
the xor operator compares each bit in the integer and returns 1 if they're the same or 0 if they're different. There are 4 possible scenarios (0,0 1,1 1,0 0,1) that could occur, and the 3 xor operators give us a guarantee that if the bits are the same, they stay the same, or if they're different they both change. a, b | Explanation 0, 0 | initial value 0, 0 | 0 xor 0 = 0, assign 0 to a (no op) 0, 0 | 0 xor 0 = 0, assign 0 to b (no op) 0, 0 | 0 xor 0 = 0, assign 0 to a (no op) 1, 1 | initial value 0, 1 | 1 xor 1 = 0, assign 0 to a 0, 1 | 0 xor 1 = 1, assign 1 to b (no op) 1, 1 | 0 xor 1 = 1, assign 1 to a (return to initial value) 1, 0 | initial value 1, 0 | 1 xor 0 = 1, assign 1 to a (no op) 1, 1 | 1 xor 0 = 1, assign 1 to b (a initial value is moved to b) 0, 1 | 1 xor 1 = 0, assign 0 to a (b initial value is moved to a) 0, 1 | initial value 1, 1 | 0 xor 1 = 1, assign 1 to a (b initial value is moved to a) 1, 0 | 1 xor 1 = 0, assign 0 to b (a initial value is moved to b) 1, 0 | 1 xor 0 = 1, assign 1 to a (no op)
@정찬옥-k8z
@정찬옥-k8z Ай бұрын
God bless you. Already fall in love with "unsafe". It will be my great joy for learning C#
@vasilypetruhin
@vasilypetruhin 2 ай бұрын
3:55 You could have used an extension method to keep class clean and continue using the same code to deconstruct a person.
@rmbl349
@rmbl349 5 ай бұрын
Nbo offense it's your resting face but it's kinda funny how you look very nice and kind while looking into the camera but like a villian while looking at the code. I do this also :D
@edandersen
@edandersen 5 ай бұрын
Astute observation lol
@orrinjonesjr
@orrinjonesjr 2 ай бұрын
Didn't know the swap thing 👍🏽
@simplepycodes
@simplepycodes 2 ай бұрын
Nice nice. Thank you.
@eduardorezende8462
@eduardorezende8462 Ай бұрын
Nice!
@edandersen
@edandersen Ай бұрын
Thanks!
@favourolanipekun4297
@favourolanipekun4297 5 ай бұрын
You seem to use VSCode in your videos and not Visual Studio. Any special reason for that?
@edandersen
@edandersen 5 ай бұрын
I'm on a Mac and for simple stuff it works fine. For my day job I use Visual Studio on Windows
@vaibhavzapadiya9148
@vaibhavzapadiya9148 Ай бұрын
6:48 var x=10; var y=20; y=x+y-(x=y) as simple as that
@assaidy
@assaidy 6 ай бұрын
tuple swap: (a, b) = (b, a);
@UbiycaCrabov
@UbiycaCrabov 3 ай бұрын
Bro is speaking in ASMR
@dharmeshsingh713
@dharmeshsingh713 3 ай бұрын
I love It
@SirBenJamin_
@SirBenJamin_ 2 ай бұрын
I've had Kormas that were spicier than these tips.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 20 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 119 МЛН
How .NET Aspire will save .NET (and its not about "the cloud")
8:54
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 73 М.
Every single feature of C# in 10 minutes
9:50
Train To Code
Рет қаралды 140 М.
17 Pieces of C# Syntax That Make Your Code Short
12:41
Zoran Horvat
Рет қаралды 24 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 75 М.
ChatGPT-o1 Created A Programming Language...
19:45
Conner Ardman
Рет қаралды 106 М.
Just enough C to have fun
39:29
Kay Lack
Рет қаралды 55 М.
5 (Extreme) Performance Tips in C#
12:26
LevelUp
Рет қаралды 75 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Full Stack Developers will take over. This is why.
11:26
Ed Andersen
Рет қаралды 62 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН