Nice Videos! Just one little thing, when u tested if "import test as t" resulted in "__name__ = t" u still wrote "test.hello()" when it should have been "t.hello()"
This is especially important if you want to use tools like sphinx or I believe also type checker etc. on the code, otherwise they would execute all kinds of code when importing for analysis. To take it a step further it is actually good practice to call only one function like main() to not create any global variables etc.
I don't think linters and type checkers execute anything when they do their checks, but I don't know that for 100% sure. But yeah that main thing brings it more into line with the others languages I was talking about that use main functions as entry points.
Wow i was having the same question this week! Thanks for the info! Now, a little off topic but, what fonts did you use on this video? Also your terminal is so cool, how did you do it?
Glad you liked it! Amazing coincidence, but next week I have videos going live answering both those questions! In the meantime, it's Fira Code Nerd Font, and the terminal stuff is Starship.
This is just not a realistic argument. I have never in my 5 years of using python messed up this bad. I only have functions, classes and constants in modules that is not my main entry point. Realistically, you would only need this if you were to write tests in those modules, or an command line interface. Using if __name__ == "__main__" is overrated
My god this is hard to follow. I recommend writing a script of what you want to say and not just talking off the cuff. Your thoughts are not organized enough to do that. Sorry. Just had to be honest. I had to abort a 7 min video because I couldn’t stand the disorganization any longer.
yeah. please make 2 statement from beginning on code and comments the difference. for more easy understand maybe always use feyman methods to teach. just my open criticism
@@Carberra thank you for listening, and I appreciated ur time to explain but yeah I just want to say that some people may slow to grasp and not have completed understanding about concepts and fundamentals like me. because I still on learning path. Thanks for sharing the information I finally understand after repeat ur video. once again Thankyou I love the community.
Glad it made sense the second time over! Yeah I spose I'm more used to doing less beginner-friendly topics, where flitting around a little isn't too much of a problem. People tend to like the more casual nature, but I was thinking in editing it was a little borderline. I'll make a note to do a little more planning on things lmao. Thanks for being constructive (:
Nice Videos!
Just one little thing, when u tested if "import test as t" resulted in "__name__ = t" u still wrote "test.hello()" when it should have been "t.hello()"
Oh right, maybe it would've worked then. Glad you liked the video though!
do someone remember what python and discord.py were used in music bot playlist?
What theme / color scheme do u use ?
Weirdly enough I've got a video about this going up next week! In the meantime, it's the Ayu theme pack, and Ayu Mirage Bordered specifically.
1st
Funny how I was curious about the same topic but got to understand it now. To the point and easy as always 🙌
Glad the video helped (:
This is especially important if you want to use tools like sphinx or I believe also type checker etc. on the code, otherwise they would execute all kinds of code when importing for analysis.
To take it a step further it is actually good practice to call only one function like main() to not create any global variables etc.
I don't think linters and type checkers execute anything when they do their checks, but I don't know that for 100% sure. But yeah that main thing brings it more into line with the others languages I was talking about that use main functions as entry points.
Great video
Glad you liked it!
Wow i was having the same question this week! Thanks for the info!
Now, a little off topic but, what fonts did you use on this video?
Also your terminal is so cool, how did you do it?
Glad you liked it! Amazing coincidence, but next week I have videos going live answering both those questions! In the meantime, it's Fira Code Nerd Font, and the terminal stuff is Starship.
@@Carberra Thank you so much for the reply! I'll be looking forward to the video!
This is just not a realistic argument. I have never in my 5 years of using python messed up this bad. I only have functions, classes and constants in modules that is not my main entry point. Realistically, you would only need this if you were to write tests in those modules, or an command line interface. Using if __name__ == "__main__" is overrated
I didn't know this though I do python for 3 years BRO
I'd been using Python for ages before I found out as well honestly.
@@Carberra lol
My god this is hard to follow. I recommend writing a script of what you want to say and not just talking off the cuff. Your thoughts are not organized enough to do that.
Sorry. Just had to be honest.
I had to abort a 7 min video because I couldn’t stand the disorganization any longer.
Dislike
yeah. please make 2 statement from beginning on code and comments the difference. for more easy understand maybe always use feyman methods to teach. just my open criticism
I appreciate the honesty -- all feedback is brought on board.
@@Carberra thank you for listening, and I appreciated ur time to explain but yeah I just want to say that some people may slow to grasp and not have completed understanding about concepts and fundamentals like me. because I still on learning path. Thanks for sharing the information I finally understand after repeat ur video. once again Thankyou I love the community.
Glad it made sense the second time over! Yeah I spose I'm more used to doing less beginner-friendly topics, where flitting around a little isn't too much of a problem. People tend to like the more casual nature, but I was thinking in editing it was a little borderline. I'll make a note to do a little more planning on things lmao. Thanks for being constructive (: