Make Your Python Code More Professional

  Рет қаралды 59,649

NeuralNine

NeuralNine

Күн бұрын

Today we will cover three ways in which you can make your Python code more professional.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Timestamps:
(0:00) Intro
(0:16) 1 - Type Hinting
(6:20) 2 - Docstrings
(13:15) 3 - Declarative Programming
(18:08) Outro

Пікірлер: 48
@salarghaffarian4914
@salarghaffarian4914 11 ай бұрын
In a day that everybody starts their channel with some beginner content, this is awesome to this some people put together and share some professional content. Thanks for recording and sharing this video. It was very informative.
@mihajlofrancic9021
@mihajlofrancic9021 2 ай бұрын
Thank you man, after solving many code wars katas with boilerplate for loops I now know what I can improve on to write better code.
@krispyren
@krispyren 2 жыл бұрын
Thanks so much for the information. I am a new developer and its great to learn the right way from the start, especially if you're going to work in a team
@Radical9535
@Radical9535 11 ай бұрын
cool! i learned you can print anything that you have defined from watching this video! my skills are increasing little by little!
@awsomeslayer1
@awsomeslayer1 2 жыл бұрын
Make a separate playlist of these tips. This is very useful for beginners like me.
@abhinavchoudhary6849
@abhinavchoudhary6849 2 жыл бұрын
I really love this channel
@bassenji5565
@bassenji5565 2 жыл бұрын
Thanks a lot for the great tips. For list compensation and filters, is it always better as it can be very long in line and full of conditions. I read that you should not go beyond 80 characters per line... or can we split thr list comprenhesion on two lines?
@himanshuranjansingh6134
@himanshuranjansingh6134 2 жыл бұрын
Hats off man🔥
@skyr2348
@skyr2348 Жыл бұрын
FFS.... I write code in python in many, many different ways and applications, but i never knew, that you can do something like a 'type-comment'. It's what I need and what I love. With respect to the C++ origin and harmony. Thank You, my Sir
@daniel.lupton
@daniel.lupton Жыл бұрын
There are dictionary comprehensions too. eg. new_d = { key : value ** 2 for key, value in old_d.items() if value %2 == 0 } There are also set and generator comprehensions.
@abdoulhamidcoulibaly2385
@abdoulhamidcoulibaly2385 7 ай бұрын
Awesome
@mohammedsaad3801
@mohammedsaad3801 2 жыл бұрын
Day2:Love that intro
@SAlexandert8
@SAlexandert8 2 жыл бұрын
Can you give us an example where a loop and appending to a list would be acceptable? I do A LOT of this, should I be trying to convert most or all of it to a list comprehension? Maybe some multi-line list comprehension examples would help. Thanks! love your channel!
@pietheijn-vo1gt
@pietheijn-vo1gt Жыл бұрын
I do it when I have a large number of actions to perform on each item. But then again you can put all those actions in a function and then use the function in the list comprehension (or even in map())
@NishithSavla
@NishithSavla 2 жыл бұрын
You shouldn't mix the docstrings formats like numpy format and restructuredText format. :param: is the restructuredText whereas, Parameters ------------------ is the numpy format
@akshatsharma1344
@akshatsharma1344 Жыл бұрын
Which python version do you use
@suche_cz
@suche_cz 2 жыл бұрын
thank you for video btw. why Union has this wierd syntax eg: Union[Int, Float] it's so non pythonic, I would expect something Union(Int, Float)
@mr.dog233op9
@mr.dog233op9 7 ай бұрын
whats ur intro music
@jonathan3488
@jonathan3488 2 жыл бұрын
filter returns a filter object, that you can iterate on later. However, when converting it to a list, it is a bit slower than list comprehension. So to my best understanding, if you want to just iterate on the filter object, don't convert it to list, since the filter operation alone takes much less memory and time.
@sasidharnaidu4507
@sasidharnaidu4507 8 ай бұрын
I was about to comment on the same. List compressions are better than filter/map unless you use the latter in a loop. If you are directly converting to lists, compression should be the tool.
@nurdauletturar9596
@nurdauletturar9596 2 жыл бұрын
huh, ":param" was something new for me
@NeuralNine
@NeuralNine 2 жыл бұрын
glad you learned something ^^
@Kig_Ama
@Kig_Ama 2 жыл бұрын
What pycharm theme r u using here?
@shon254
@shon254 11 ай бұрын
I think it is Dracula
@Kig_Ama
@Kig_Ama 11 ай бұрын
@@shon254 yeah coudl be, ty!
@prince2347x
@prince2347x 2 жыл бұрын
I never saw that suggestion "Convert loop into list comprehension".. Uhmm maybe it's not available in community version ..
@NeuralNine
@NeuralNine 2 жыл бұрын
Or maybe it is a plugin I am not sure :D
@prince2347x
@prince2347x 2 жыл бұрын
@@NeuralNine Tabnine?👨‍💻
@NeuralNine
@NeuralNine 2 жыл бұрын
@@prince2347x no I think it's another one ^^ tabnine is for auto completion
@anushkachaurasiya7034
@anushkachaurasiya7034 Жыл бұрын
program run hi nhi kr rhe dusra logic bataiye
@Gruuvin1
@Gruuvin1 8 ай бұрын
Nacho Varga
@4ll144
@4ll144 2 жыл бұрын
guys, whenever creatring a new project with python please run this command " import this ". could be helpful too
@NeuralNine
@NeuralNine 2 жыл бұрын
yes mentioned it in the end ^^
@4ll144
@4ll144 2 жыл бұрын
@@NeuralNine ya, just to remember on the comments lol
@LukieHZX
@LukieHZX 2 жыл бұрын
1
@NeuralNine
@NeuralNine 2 жыл бұрын
:)
@LukieHZX
@LukieHZX 2 жыл бұрын
:)
@ananthramvijayaraj4554
@ananthramvijayaraj4554 2 жыл бұрын
Your content is amazing but if you made your videos less robotic and with more energy and humor. What i mean is maybe smile here and there.
@MegaChilisauce
@MegaChilisauce 2 жыл бұрын
i prefer the videos as they are, with your proposed changes the videos would get less dense in information and therefore unnecessarily longer
@ananthramvijayaraj4554
@ananthramvijayaraj4554 2 жыл бұрын
@@MegaChilisauce maybe a minute or two longer, not more than that. A video just a minute longer and with humor, energy and laughs here and there, seems like a good deal.
@techatival
@techatival 2 жыл бұрын
​@@ananthramvijayaraj4554 Not everyone is a Humor Herold. I personally don't like to watch videos where the presenter tries to be too energetic and funny. Many times it's too fake.
@ananthramvijayaraj4554
@ananthramvijayaraj4554 2 жыл бұрын
@@techatival Have you watched sentdex? He's amazing at teaching and also adds humor into his videos. Anyways opinions can vary.
@KingErasmos
@KingErasmos 6 ай бұрын
They’re exactly how they need to be. There’s enough developers developers developers style videos on KZfaq.
Python Coding Conventions You Really Should Follow
34:32
NeuralNine
Рет қаралды 19 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 393 М.
Which one of them is cooler?😎 @potapova_blog
00:45
Filaretiki
Рет қаралды 10 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 20 МЛН
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 34 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 7 МЛН
5 Tips To Organize Python Code
12:16
Tech With Tim
Рет қаралды 217 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,4 МЛН
5 Tips To Write Better Python Functions
15:59
Indently
Рет қаралды 93 М.
7 Python Code Smells: Olfactory Offenses To Avoid At All Costs
22:10
How To Structure Your Programming Projects
13:11
Hallden
Рет қаралды 254 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Write Python Code Properly!
25:46
Tech With Tim
Рет қаралды 142 М.
5 Really Cool Python Functions
19:58
Indently
Рет қаралды 52 М.
Cohesion and Coupling: Write BETTER PYTHON CODE Part 1
26:14
ArjanCodes
Рет қаралды 213 М.
7 Tips To Structure Your Python Data Science Projects
14:49
ArjanCodes
Рет қаралды 111 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 660 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 3,6 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 30 МЛН