My thoughts exactly. I almost had nightmarish flashback to trying to learn basic so many years ago.
@MePeterNicholls2 жыл бұрын
Well once in assembler, and machine code, it‘a ALL goto isn’t it 🙈 I mean JUMP 🫢
@saidamir65382 жыл бұрын
+
@GeneraluStelaru Жыл бұрын
@@MePeterNicholls I had my fill of goto in Human Resource Machine.
@mrtruth84 Жыл бұрын
I'm so proud of myself for being a master about goto statement 😌
@ProgramWithGio Жыл бұрын
😎😎
@ntdash21532 жыл бұрын
I really love the `goto` section part ... 😌
@CtrlGameАй бұрын
best part about them is that everyone avoid them and I am happy about it
@mavetyan11 ай бұрын
The best 'GoTo' statement explanation I've ever seen. 😁
@ProgramWithGio11 ай бұрын
Heh, thank you 🙌
@nicolashuet46753 жыл бұрын
I was worried when I heard you were going to talk about goto, then I laughed :D
@ProgramWithGio3 жыл бұрын
😏
@user-zu4tj5pn8b4 ай бұрын
I had to go and read about goto and then come back to watch the end of this episode to get the joke. Nice one!
@ProgramWithGio4 ай бұрын
Heh, thanks
@karolzamojcin1886 Жыл бұрын
Part on go to statements really did it for me 😂
@ProgramWithGio Жыл бұрын
😂😂
@seydoudia782811 ай бұрын
At the beginning of video i started asking myself weither a language that has GOTO was worth my time... until I watch the actual part about GOTO... Epic! amazing tutorial, many thanks.
@ProgramWithGio11 ай бұрын
Glad you enjoyed it, thank you
@emekatimothyiloba699 Жыл бұрын
This course is gold
@ProgramWithGio Жыл бұрын
Thank you
@user-mo3cw6go7c Жыл бұрын
Unbelievable! Every video I learn something new!
@ProgramWithGio Жыл бұрын
That's awesome 🙌
@user-zh2oz9fe4m Жыл бұрын
You live and learn. Thanks for sharing your knowledge!
@ProgramWithGio Жыл бұрын
You're welcome
@ahamedsha96889 ай бұрын
goto statement really got me going
@ProgramWithGio8 ай бұрын
🤭🤭
@elizabethsullivan1894 Жыл бұрын
Thank you for these incredible videos! I find it helpful that you go so directly through each subject. It helps me not get bored and I can back up and listen to a section again if I didn't understand the first time.
@ProgramWithGio Жыл бұрын
I'm so glad, you are welcome 🙌
@parinataneja70992 жыл бұрын
OUTSTANDING Course!! Thank you so much :)
@ProgramWithGio2 жыл бұрын
Thank you 🙌
@whisperscribe Жыл бұрын
Amazing lesson as aways, the goto was so funny lol
@ProgramWithGio Жыл бұрын
Thank you 😁
@clivecorner8 ай бұрын
Love the concise but thorough style of your teaching. Also great that the videos are short and it is simple to refer back to a specific subject. I may be asking for too much but do you have any concise notes for your PHP tutorial series. Many thanks anyway for your excellent videos.
@ProgramWithGio8 ай бұрын
I appreciate that, thank you. I don't have any specific notes, everything is in the videos.
@captainamiga68136 ай бұрын
Dear Gio, your course is fantastic and although you are very quick you cover the topics in great depth. Great job and thank you so much! For this episode I have a question: is it possible to define the strict types declaration in one file for the entire app or do I have to put it in each and every file?
@ProgramWithGio6 ай бұрын
Thank you. You have to put declare statement in each file
@tiagomota473410 ай бұрын
Very nice well explained buddy, im quite in the beginning of this and i wonder how would you aproach this i mean the learning, at my lvl is hard to even implement a loop correctly ...what exercises would your recommand to actually be able to learn the stuff and progress?
@ProgramWithGio10 ай бұрын
Thank you. I would say try to get through the section content & do the exercise at the end. You can practice each topic by simply following along the video & coding it yourself, then maybe doing some other examples with what you just learned.
@ilya_123__11 ай бұрын
thank you for lesson!
@ProgramWithGio11 ай бұрын
You're welcome
@yarik83men513 жыл бұрын
Powerful
@gazianis75722 жыл бұрын
Hi : GIO you can make "php zend certified exam preparation" tutorial series..
@ProgramWithGio2 жыл бұрын
Thanks for the suggestion. I might actually do this
@ballpen9157 Жыл бұрын
great vid. thank you.
@ProgramWithGio Жыл бұрын
Thanks
@devdude7607 Жыл бұрын
Rofl! No one on this earth can teach you 'goto' statement like this. NO ONE!!
@ProgramWithGio Жыл бұрын
😎😁
@timiade81083 жыл бұрын
Thanks
@adamsaleh46212 жыл бұрын
Hello Gio. My question is, if I declare (strict_types=1) , and use == in an expression, will the strict type override the lose comparison ?
@ProgramWithGio2 жыл бұрын
Hello. No it won't override. You can still use loose comparison.
@adamsaleh46212 жыл бұрын
@@ProgramWithGio OK thanks🙏
@FranciscoJunior292 жыл бұрын
Good job.
@ProgramWithGio2 жыл бұрын
Thank you
@chriscjjones8182 Жыл бұрын
There are certain uses for the goto statement, but yea I agree, almost none and if code is writen well then shouldn't be required
@ProgramWithGio Жыл бұрын
Yes, for sure
@chriscjjones8182 Жыл бұрын
@@ProgramWithGio I'm so glad I randomly found your channel. I've been working with PHP for over 20 years now but got hit with amnesia a few years back and two of the things that were gone was my programming knowledge and the ability to think like a programmer. Long way to go to relearn everything, especially cause there were over 30 different languages I learnt over my life, both professional and personal, but you're style of teaching is amazing, and even helped me work out a math problem I've been trying to solve on and off for about 15 years, but I'm also "ADHD side questing" along side your videos which is helping me relearn to think like I need to as well
@ProgramWithGio Жыл бұрын
@@chriscjjones8182 wow, that's unfortunate. I'm happy to hear that my videos are useful & helpful. Good luck buddy & hope everything turns out 👍 🤞 🙏
@chriscjjones8182 Жыл бұрын
@@ProgramWithGio thank you, I'm sure it will. I'll be back in no time. Are you still adding more or is the PHP 8 course finished for now? Also finding your videos useful cause I skipped learning half of additions to 7 and coming back now we're on 8 lol
@ProgramWithGio Жыл бұрын
@@chriscjjones8182 we are almost done, about 2 or 3 more videos left. There is a whole section 3 ahead for you & then project section
@tedybg2 жыл бұрын
GoTo is missing :)
@ProgramWithGio2 жыл бұрын
On purpose :)
@blowlowkeyup83296 ай бұрын
I write the strict types declaration obviously FIRST although I have error saying it should be first
@ProgramWithGio6 ай бұрын
It should be first yes
@fleckenfurz77 Жыл бұрын
Back then on the C64 in Basic, GOTO was indispensable! ..nowadays it's only useful for a joke. ^^
@ProgramWithGio Жыл бұрын
I don't hate on GOTO, it has its purpose & exists for a reason :). For PHP though it's not needed in my opinion.
@fleckenfurz77 Жыл бұрын
@@ProgramWithGio Totally agree! Just wanted to say: Great joke/humour! ;) ..and thx for your excellent tutorials!!
@ProgramWithGio Жыл бұрын
@@fleckenfurz77 thank you 🙏
@moofymoo2 ай бұрын
let's count how many ticks it takes to process a simple request! yes, I'm looking at you, Laravel.
@ProgramWithGioАй бұрын
For 95% of the apps you don't need to worry about that heh
@benderbg2 ай бұрын
We could learn PHP in 5 sec if every lesson was as important as the GOTO lesson.
@ProgramWithGioАй бұрын
:D
@jondo-vh8tx10 ай бұрын
may i ask, what is the actual reason someone would use the declare? i tried to change the strict type to 0 and fair enough i could sum string and integers. but why and when should i need that? i checked the php documenation but their explanation was poor
@ProgramWithGio10 ай бұрын
Not sure I understand the question, setting strict types to 0 means you are disabling strict types. If you set it to 1 you will enable it. It comes in handy when you are passing variables in functions & methods, try passing string instead of an integer to a function that expects an integer argument. With strict types enabled this will throw an error.
@jondo-vh8tx10 ай бұрын
@@ProgramWithGio thanks for the reply...ye basically the stric that i explained experementing with setting it to 0 and 1 is straighforward and i got the idea....what i dont understood was the other two and their use cases...delcare ticks and encoding...i think if im not misstaking you mentioned that encoding is barely been used what remains to understand is ticks and i tried hard but i couldnt understand the use case for ticks. thank u for an amazing content btw....
@ProgramWithGio10 ай бұрын
@@jondo-vh8tx ticks also not used that much, I wouldn't worry about it, you won't need it in projects. Thank you 🙏
@jondo-vh8tx10 ай бұрын
@@ProgramWithGio awesom. thanks a lot.
@S__Khan__ Жыл бұрын
Where can we add ""declare(strict_types=1)"" in codeIgnitor 4 framework, so this is globally enabled ?
@ProgramWithGio Жыл бұрын
You need to add that per file on the top of the file after
@S__Khan__ Жыл бұрын
@@ProgramWithGio Ok. Thanks Gio
@DimaSimonishvili3 жыл бұрын
Hey, thanks for your videos. But I think you cut goto explanation? 6:38 then 6:40
@ProgramWithGio3 жыл бұрын
You're welcome. That was intended :) check the description of the video. Basically you don't need goto, there is really no use-case, just makes code harder to read & debug.
@DimaSimonishvili3 жыл бұрын
@@ProgramWithGio Aah OK got it. goto has it's use cases, I'm not actively using it but sometimes it helps to skip part of the code in the method/function.
@ProgramWithGio3 жыл бұрын
@@DimaSimonishvili Maybe, it just makes code hard to read & debug. I've been coding in PHP for over 10 years, have only used goto once, and regretted it :D. What can be done with goto can also be done with other control structures like conditionals or early returns etc.
@DimaSimonishvili3 жыл бұрын
@@ProgramWithGio Yes you're right. But my use case was very specific, so goto helped in that case. Also, IDEs like PHPStorm give the ability to navigate between goto statements easily, not sure if VS code can do. In general, I think early returns are better until you have to.
@ProgramWithGio3 жыл бұрын
@@DimaSimonishvili yea that makes sense, I'm sure there are some specific cases where goto can come in handy 👍
@journeytocoding8162 жыл бұрын
Sir pls upload the Goto statement tutorial. for u i guess it would take 15 min max but for me it might takes months
@ProgramWithGio2 жыл бұрын
You don't need to learn the GoTo statement, that's why I didn't cover it. Also making videos takes much longer than 15 mins 😀
@journeytocoding8162 жыл бұрын
@@ProgramWithGio Ohh I was confused. I learn a bit 10 years back now coming back. No, I didn't mean to underestimate your hardwork sir. I was just requesting if u have skipped the GOTO. Sorry for my dump request.
@ProgramWithGio2 жыл бұрын
No worries, sorry for misunderstanding. Yea you don't need goto :)
@snakemanluffy76453 жыл бұрын
I read somewhere that tick is deprecated from PHP 5.3! Is it true or not? I heard it will be removed entirely in the future. I might be wrong.
@ProgramWithGio3 жыл бұрын
It was deprecated at some point I think but they changed their mind as far as I know. Documentation doesn't state anything about it being deprecated currently. Though there are only few usecases for it. I only covered it in case you come across it in some codebase. They will probably deprecate it again at some point.
@snakemanluffy76453 жыл бұрын
@@ProgramWithGio Ah thanks :D
@isbaccas7 ай бұрын
Who needs goto anyway, not like we are using some assembly anywhere
@ProgramWithGio7 ай бұрын
Right?
@zeroxm99992 ай бұрын
I had to check if something was wrong with the video on the goto part 🤣
@ProgramWithGioАй бұрын
🤣🤣
@kumada84 Жыл бұрын
5:45 🤣🤣🤣🤣🤣🤣🤣
@ProgramWithGio Жыл бұрын
🤣🤣
@pineapplesoda2 жыл бұрын
I guess Gio agrees with "goto considered harmful" 😂
@ProgramWithGio2 жыл бұрын
😂😂
@FGj-xj7rd2 жыл бұрын
Lmao. 'Goto' avoided, just like Register Globals 😂
@ProgramWithGio2 жыл бұрын
😂😂
@Netpilation4 ай бұрын
The goto statement in PHP: What is goto? goto is a PHP statement that allows you to jump to a specific point in your code. It's a way to control the flow of your program by transferring execution to a labeled statement. Syntax: goto label; Example: PHP goto my_label; // ... my_label: echo "Hello, world!"; How it works: The goto statement is followed by a label name. The execution of the program jumps to the labeled statement. The labeled statement must be in the same file and within the same scope (function or script). Important notes: goto can only jump to a label within the same file and scope. goto cannot jump into a loop or a switch block from outside. Using goto can make your code harder to read and understand, so use it sparingly and only when necessary. Best practices: Avoid using goto as much as possible. Use control structures like if, else, switch, and loops instead. If you must use goto, use it for simple jumps and make sure the label is clearly visible and well-named. Remember, goto is not entirely forbidden, but it's generally considered a last resort or a tool for specific, rare cases.
@ProgramWithGio3 ай бұрын
💙💙
@lotuslando1994 Жыл бұрын
Tell us how you really feel about goto, Gio! 😂
@ProgramWithGio Жыл бұрын
😁😁
@dev_troy89037 ай бұрын
is the "goto" statement a meme ?? 😅😅😅
@ProgramWithGio7 ай бұрын
Kind of :D
@dev_troy89037 ай бұрын
I didn't get it, can you explain 😅 @@ProgramWithGio
@ProgramWithGio6 ай бұрын
This image pretty much sums it up: www.reddit.com/r/ProgrammerHumor/comments/39lqlg/xkcd_goto/?onetap_auto=true&one_tap=true There are better & more controlled/structured ways of achieving same thing that you would achieve with goto statements, so because of that we tend to not use or recommend goto in PHP world
@b.c.2177 Жыл бұрын
Good course, thank you! The problem is in your talking style. You speak very fast, almost non stop, without intonation and breaks and after 3-4 lessons the brain does not resist. I am falling in sleep! Your speech is more for machines then for humans. It is like a text page, without spaces, paragraphs, etc., or like a page of compressed code :) It is probably good for a person, like you, who knows well all this stuff, but for a person who wants to learn, it is very hard to listen. Or the purpose of this course is just advertise your knowledge?
@ProgramWithGio Жыл бұрын
I've made editing mistakes in earlier videos where I cut out all empty spaces which make it seem like I don't breathe. In general I speak fast but removing the spaces made it worst. It gets better in later videos. Note that you can slow it down on KZfaq, just click on ⚙️ icon and set the playback speed. P.S. I'm not advertising anything, if you don't like it you are free to move on my friend, cheers 🙌