Things I Didn't Know About C# Part 2: The Goto Statement

preview_player
Показать описание
Please note that I don't endorse the use of the Goto statement :D This series is all about the funny/weird and lesser known parts of the language :) Enjoy!

Check out my courses over here:

And follow me on Twitter over here:
Рекомендации по теме
Комментарии
Автор

I can promise you if you continue these types of videos this channel will blow up

DxGrumpzz
Автор

Great video where you have properly explained the concept of goto statement. I have been able to understand through reading the Microsoft Document. Then I practised it myself. The best way to learn would be practicing the code yourself through some thorough examples. And, I had to implement this idea in many different scenarios booting up a console application. But then your video helped me to understand it better.

kopilkaiser
Автор

I sometimes use goto to break from multiple loops at once

kotanys
Автор

I used to use goto a lot in my pre-Academy days working in VBA. A subroutine would start with 'On Error goto bar' and at the end of the subroutine would be a label for error handling. Basic will be basic I guess. Keep up the great work!

Torsan
Автор

The David Bowie "Low" framed cover behind you is awesome but the tutorial is even more awesome!

noone
Автор

In the end, all languages end up with some “jmp” instructions somewhere.

yruqqey
Автор

Huh 🤔
I’ve was told a long time ago to avoid Goto statements like the plaque because of spaghetti code. But I think in switch statements, as long as you don’t go insane, it might make sense and/or increase readability 😊

seppukun
Автор

I wish you did more of these videos 😔...

vandev_
Автор

Been programming for more than 10 years...and i have seen lot of crazy stuff but never like in your example :D

armanx
Автор

Awesome video, I don't use much goto but some weirdness in business requirement might pop up and this can be useful to solve it.

Yinyan
Автор

you're good keep it up i'm learning programming at college and it's good to get extra tips online

alitech
Автор

I had never used goto before nor have I ever had the need to because it was made out to be a nightmare especially for someone who has to read your code, it messes up the flow resulting in "spaghetti code". Recently I've had to deal with a problematic loop(s), I had nested loops and inner would break the loop before the outer had finished, it was important for the outer to finish first and the only way to sort out my problem was to use goto, so I guess it depends on how you use it.

lesmok
Автор

damn.. finally iIfound the right video.

christopherdelacruz
Автор

Maybe useful when using catch statements?

gtrrealreels
Автор

Imagine if you're debugging something like in the last example, that someone other has written (mb legacy) xD

loam
Автор

Wow!!! Thanks a lot, you're awesome dude. I'm stutying for my test and this video is excelent, fast and simple. Sorry for my bad english.

SamirJzVFX
join shbcf.ru