No video

PHP Return, Declare & Tickable Statements - Full PHP 8 Tutorial

  Рет қаралды 44,455

Program With Gio

Program With Gio

Күн бұрын

Пікірлер: 119
@ShinigamiAnger
@ShinigamiAnger 3 жыл бұрын
Best 'goto statement' lesson ever xD
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
😂😂
@jjbailey01
@jjbailey01 2 жыл бұрын
My thoughts exactly. I almost had nightmarish flashback to trying to learn basic so many years ago.
@MePeterNicholls
@MePeterNicholls 2 жыл бұрын
Well once in assembler, and machine code, it‘a ALL goto isn’t it 🙈 I mean JUMP 🫢
@saidamir6538
@saidamir6538 2 жыл бұрын
+
@GeneraluStelaru
@GeneraluStelaru Жыл бұрын
@@MePeterNicholls I had my fill of goto in Human Resource Machine.
@mrtruth84
@mrtruth84 Жыл бұрын
I'm so proud of myself for being a master about goto statement 😌
@ProgramWithGio
@ProgramWithGio Жыл бұрын
😎😎
@ntdash2153
@ntdash2153 2 жыл бұрын
I really love the `goto` section part ... 😌
@CtrlGame
@CtrlGame Ай бұрын
best part about them is that everyone avoid them and I am happy about it
@mavetyan
@mavetyan 11 ай бұрын
The best 'GoTo' statement explanation I've ever seen. 😁
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
Heh, thank you 🙌
@nicolashuet4675
@nicolashuet4675 3 жыл бұрын
I was worried when I heard you were going to talk about goto, then I laughed :D
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
😏
@user-zu4tj5pn8b
@user-zu4tj5pn8b 4 ай бұрын
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!
@ProgramWithGio
@ProgramWithGio 4 ай бұрын
Heh, thanks
@karolzamojcin1886
@karolzamojcin1886 Жыл бұрын
Part on go to statements really did it for me 😂
@ProgramWithGio
@ProgramWithGio Жыл бұрын
😂😂
@seydoudia7828
@seydoudia7828 11 ай бұрын
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.
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
Glad you enjoyed it, thank you
@emekatimothyiloba699
@emekatimothyiloba699 Жыл бұрын
This course is gold
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you
@user-mo3cw6go7c
@user-mo3cw6go7c Жыл бұрын
Unbelievable! Every video I learn something new!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
That's awesome 🙌
@user-zh2oz9fe4m
@user-zh2oz9fe4m Жыл бұрын
You live and learn. Thanks for sharing your knowledge!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You're welcome
@ahamedsha9688
@ahamedsha9688 9 ай бұрын
goto statement really got me going
@ProgramWithGio
@ProgramWithGio 8 ай бұрын
🤭🤭
@elizabethsullivan1894
@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
@ProgramWithGio Жыл бұрын
I'm so glad, you are welcome 🙌
@parinataneja7099
@parinataneja7099 2 жыл бұрын
OUTSTANDING Course!! Thank you so much :)
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 🙌
@whisperscribe
@whisperscribe Жыл бұрын
Amazing lesson as aways, the goto was so funny lol
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you 😁
@clivecorner
@clivecorner 8 ай бұрын
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.
@ProgramWithGio
@ProgramWithGio 8 ай бұрын
I appreciate that, thank you. I don't have any specific notes, everything is in the videos.
@captainamiga6813
@captainamiga6813 6 ай бұрын
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?
@ProgramWithGio
@ProgramWithGio 6 ай бұрын
Thank you. You have to put declare statement in each file
@tiagomota4734
@tiagomota4734 10 ай бұрын
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?
@ProgramWithGio
@ProgramWithGio 10 ай бұрын
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__
@ilya_123__ 11 ай бұрын
thank you for lesson!
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
You're welcome
@yarik83men51
@yarik83men51 3 жыл бұрын
Powerful
@gazianis7572
@gazianis7572 2 жыл бұрын
Hi : GIO you can make "php zend certified exam preparation" tutorial series..
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thanks for the suggestion. I might actually do this
@ballpen9157
@ballpen9157 Жыл бұрын
great vid. thank you.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thanks
@devdude7607
@devdude7607 Жыл бұрын
Rofl! No one on this earth can teach you 'goto' statement like this. NO ONE!!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
😎😁
@timiade8108
@timiade8108 3 жыл бұрын
Thanks
@adamsaleh4621
@adamsaleh4621 2 жыл бұрын
Hello Gio. My question is, if I declare (strict_types=1) , and use == in an expression, will the strict type override the lose comparison ?
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Hello. No it won't override. You can still use loose comparison.
@adamsaleh4621
@adamsaleh4621 2 жыл бұрын
@@ProgramWithGio OK thanks🙏
@FranciscoJunior29
@FranciscoJunior29 2 жыл бұрын
Good job.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you
@chriscjjones8182
@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
@ProgramWithGio Жыл бұрын
Yes, for sure
@chriscjjones8182
@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
@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
@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
@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
@tedybg
@tedybg 2 жыл бұрын
GoTo is missing :)
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
On purpose :)
@blowlowkeyup8329
@blowlowkeyup8329 6 ай бұрын
I write the strict types declaration obviously FIRST although I have error saying it should be first
@ProgramWithGio
@ProgramWithGio 6 ай бұрын
It should be first yes
@fleckenfurz77
@fleckenfurz77 Жыл бұрын
Back then on the C64 in Basic, GOTO was indispensable! ..nowadays it's only useful for a joke. ^^
@ProgramWithGio
@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
@fleckenfurz77 Жыл бұрын
@@ProgramWithGio Totally agree! Just wanted to say: Great joke/humour! ;) ..and thx for your excellent tutorials!!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
@@fleckenfurz77 thank you 🙏
@moofymoo
@moofymoo 2 ай бұрын
let's count how many ticks it takes to process a simple request! yes, I'm looking at you, Laravel.
@ProgramWithGio
@ProgramWithGio Ай бұрын
For 95% of the apps you don't need to worry about that heh
@benderbg
@benderbg 2 ай бұрын
We could learn PHP in 5 sec if every lesson was as important as the GOTO lesson.
@ProgramWithGio
@ProgramWithGio Ай бұрын
:D
@jondo-vh8tx
@jondo-vh8tx 10 ай бұрын
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
@ProgramWithGio
@ProgramWithGio 10 ай бұрын
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-vh8tx
@jondo-vh8tx 10 ай бұрын
@@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....
@ProgramWithGio
@ProgramWithGio 10 ай бұрын
@@jondo-vh8tx ticks also not used that much, I wouldn't worry about it, you won't need it in projects. Thank you 🙏
@jondo-vh8tx
@jondo-vh8tx 10 ай бұрын
@@ProgramWithGio awesom. thanks a lot.
@S__Khan__
@S__Khan__ Жыл бұрын
Where can we add ""declare(strict_types=1)"" in codeIgnitor 4 framework, so this is globally enabled ?
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You need to add that per file on the top of the file after
@S__Khan__
@S__Khan__ Жыл бұрын
@@ProgramWithGio Ok. Thanks Gio
@DimaSimonishvili
@DimaSimonishvili 3 жыл бұрын
Hey, thanks for your videos. But I think you cut goto explanation? 6:38 then 6:40
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
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.
@DimaSimonishvili
@DimaSimonishvili 3 жыл бұрын
@@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.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@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.
@DimaSimonishvili
@DimaSimonishvili 3 жыл бұрын
@@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.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@DimaSimonishvili yea that makes sense, I'm sure there are some specific cases where goto can come in handy 👍
@journeytocoding816
@journeytocoding816 2 жыл бұрын
Sir pls upload the Goto statement tutorial. for u i guess it would take 15 min max but for me it might takes months
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
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 😀
@journeytocoding816
@journeytocoding816 2 жыл бұрын
@@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.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
No worries, sorry for misunderstanding. Yea you don't need goto :)
@snakemanluffy7645
@snakemanluffy7645 3 жыл бұрын
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.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
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.
@snakemanluffy7645
@snakemanluffy7645 3 жыл бұрын
@@ProgramWithGio Ah thanks :D
@isbaccas
@isbaccas 7 ай бұрын
Who needs goto anyway, not like we are using some assembly anywhere
@ProgramWithGio
@ProgramWithGio 7 ай бұрын
Right?
@zeroxm9999
@zeroxm9999 2 ай бұрын
I had to check if something was wrong with the video on the goto part 🤣
@ProgramWithGio
@ProgramWithGio Ай бұрын
🤣🤣
@kumada84
@kumada84 Жыл бұрын
5:45 🤣🤣🤣🤣🤣🤣🤣
@ProgramWithGio
@ProgramWithGio Жыл бұрын
🤣🤣
@pineapplesoda
@pineapplesoda 2 жыл бұрын
I guess Gio agrees with "goto considered harmful" 😂
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
😂😂
@FGj-xj7rd
@FGj-xj7rd 2 жыл бұрын
Lmao. 'Goto' avoided, just like Register Globals 😂
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
😂😂
@Netpilation
@Netpilation 4 ай бұрын
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.
@ProgramWithGio
@ProgramWithGio 3 ай бұрын
💙💙
@lotuslando1994
@lotuslando1994 Жыл бұрын
Tell us how you really feel about goto, Gio! 😂
@ProgramWithGio
@ProgramWithGio Жыл бұрын
😁😁
@dev_troy8903
@dev_troy8903 7 ай бұрын
is the "goto" statement a meme ?? 😅😅😅
@ProgramWithGio
@ProgramWithGio 7 ай бұрын
Kind of :D
@dev_troy8903
@dev_troy8903 7 ай бұрын
I didn't get it, can you explain 😅 @@ProgramWithGio
@ProgramWithGio
@ProgramWithGio 6 ай бұрын
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
@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
@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 🙌
How To Include Files In PHP - Include and Require - Full PHP 8 Tutorial
8:12
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,7 МЛН
مسبح السرير #قصير
00:19
سكتشات وحركات
Рет қаралды 3,1 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 31 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 105 МЛН
PHP Switch Statement - Switch vs if/else statement - Full PHP 8 Tutorial
8:10
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 553 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 266 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 398 М.
PHP Type Declarations: make your PHP code easier to read, and simpler to use
10:54
Is PHP the Secret King of Code?
6:42
Stefan Mischook
Рет қаралды 55 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
How To Work With Arrays In PHP - Full PHP 8 Tutorial
15:09
Program With Gio
Рет қаралды 51 М.
Return Statement in Java #27
14:38
Alex Lee
Рет қаралды 275 М.
مسبح السرير #قصير
00:19
سكتشات وحركات
Рет қаралды 3,1 МЛН