Python Coding Conventions You Really Should Follow

  Рет қаралды 19,610

NeuralNine

NeuralNine

Күн бұрын

In this video we learn about important Python conventions and guidelines to follow, defined in PEP8.
Oxylabs: oxylabs.io/pages/neuralnine?u...
Promo Code: NN25
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 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
(2:33) PEP8 Styling Guidelines
(5:03) Aesthetics & Layout
(14:39) Import Guidelines
(19:16) Commenting Guidelines
(23:22) Docstrings Conventions
(25:07) Naming Conventions
(31:54) General Recommendations
(33:52) Outro

Пікірлер: 24
@BrannenTaylor
@BrannenTaylor 2 жыл бұрын
Thanks for making the text larger - I like to watch with an iPad. Much easier to read and follow along.
@yamildaboul6981
@yamildaboul6981 2 жыл бұрын
Wow! Wusste nicht dass deine Muttersprache die deutsche war! Alles gute von einem argentinischen Fan! Danke für deine Zeit und Kenntnis 💪
@nightline9868
@nightline9868 2 жыл бұрын
great video! Thanks man.
@rachittanwar4685
@rachittanwar4685 2 жыл бұрын
Like always, learnt something new from you. 😊
@Daniel-gr8dm
@Daniel-gr8dm 2 жыл бұрын
Very useful video, thanks you
@JonathanAnima
@JonathanAnima 2 жыл бұрын
Thanks man !!!
@corneliuslechner9263
@corneliuslechner9263 2 жыл бұрын
Great video!
@ttrev007
@ttrev007 4 ай бұрын
while i agree in professional code not stating the obvious is a no brainer, but i do think that beginner coders should go crazy with the inline comments. As a beginner coder i effectively cannot read code, looking back on code i have written i often have forgotten what i was doing, so having a translation to English of what the code is doing can be very helpful in learning how to read code. I know i will have to clean up my code if i ever publish it for others to use but i think it is super helpful to put in comments all over the place. It helps me learn. I worry not mentioning this might discourage noobs from doing something really helpful to the learning process. also remember to consider your reader. If you are writing code for programmers thats one thing but if you are expecting some with limited coding skills to read it you might want to put more documentation in then you might otherwise.
@Mdroudian
@Mdroudian 2 жыл бұрын
What's your view on the black formatting/style guide?
@q.w.e.r.t.y
@q.w.e.r.t.y 2 жыл бұрын
thanks!
@dave_by_day7632
@dave_by_day7632 Жыл бұрын
27:32 That's pascal case, not camel case
@NishithSavla
@NishithSavla 2 жыл бұрын
The not part is the opposite of what you said, the not should be after the is keyword as that improved readability. Also if not is put before x, it may confuse people to think of it like (not x) is None and that's misleading
2 жыл бұрын
You are right. The words "is not" together make a special operator. There the word "not" only makes a part of the "is not" operator. For the usual meaning of the keyword "not" you need to use parenthesis: "a is (not b)". For equality comparison we have "==" and "!=" operators for identity comparison we have "is" and "is not". Another multi-word operator is the membership operator "not in".
@NishithSavla
@NishithSavla 2 жыл бұрын
There shouldn't be whitespace in keyword arguments in function signature as per pep8
@OleAmling
@OleAmling Жыл бұрын
Aren't these methods? 8:32
@thepaulcraft957
@thepaulcraft957 2 жыл бұрын
3:48 we in germany know how to make religions out of dump rules💪💪👊
@Dalroc
@Dalroc Ай бұрын
33:20 Uhhm you're literally saying the exact opposite of what PEP 8 does. Citing from PEP 8: Use is not operator rather than not ... is. While both expressions are functionally identical, the former is more readable and preferred: # Correct: if foo is not None: # Wrong: if not foo is None:
@lennuard_6998
@lennuard_6998 2 жыл бұрын
second
@joshuagage13
@joshuagage13 2 жыл бұрын
Third
@aarushkumar168
@aarushkumar168 2 жыл бұрын
First!!
@cristobaljvp
@cristobaljvp 2 жыл бұрын
shortcut: just use black
@dwaipayandas8692
@dwaipayandas8692 Жыл бұрын
Thanks for the great content @NeuralNine🤟
@rrahll
@rrahll 2 жыл бұрын
thanks!
Write Python Code Properly!
25:46
Tech With Tim
Рет қаралды 142 М.
Make Your Python Code More Professional
19:43
NeuralNine
Рет қаралды 59 М.
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 22 МЛН
Balloon Stepping Challenge: Barry Policeman Vs  Herobrine and His Friends
00:28
Why did the angel disappear?#Short #Officer Rabbit #angel
00:38
兔子警官
Рет қаралды 5 МЛН
Data Classes in Python Are The New Standard
20:34
NeuralNine
Рет қаралды 66 М.
3 Tips To Write Clean Code (from an ex-Google software engineer)
17:12
Clément Mihailescu
Рет қаралды 190 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 366 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 293 М.
Python Sockets Simply Explained
39:33
NeuralNine
Рет қаралды 154 М.
8 Python Coding Tips - From The Google Python Style Guide
17:12
ArjanCodes
Рет қаралды 154 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 39 М.
Modern Python logging
21:32
mCoding
Рет қаралды 154 М.
Python Case Types and Naming Conventions
12:55
NeuralNine
Рет қаралды 8 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,6 МЛН
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 279 М.
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 6 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 360 М.