Use THIS Technique For CLEANER Python Code (Ft. Pylint)

preview_player
Показать описание
Sometimes we accidentally don't follow a convention, and sometimes we make some code mistakes that our code editors won't catch. That's where a linter can be of huge assistance!

▶ Become job-ready with Python:

▶ Follow me on Instagram:
Рекомендации по теме
Комментарии
Автор

My banana sucided because there were too many errors

howl
Автор

We had a team doing some code that came together during August/September 1994; a junior coder would 5 or 6 times a day use the phrase "... that's interesting", it rarely was, after Halloween we kept the skeleton (management asked why, we said a tool), our team leader had got fed up with the guy calling him over and 30 seconds into the process realising his mistake. The fact he sought extra help saved his job. The became a permanent fixture in the office (unless clients were in... well new clients). Over the weeks he got a tie, shirt etc, meeting the company standards; even getting (first boardshorts) shorts in the summer; then as, an edict sent to the company, but he was the the only person in thee "To" field, "boardshorts were not appropriate business attire", yes many did wear them but UK no airconditioning.

He got called "Grandpa" - Munsters - so you had to explain every step to him. Even a client talked to Grandpa once, as he had a trading process he was finding difficult to express so he rehearsed his description with him.

TLDNR: Skeleton from Halloween was given Most Valuable Team Member (and probably Employee)

acherongoon
Автор

this would be brilliant for when someone is starting out, you could learn 10x faster as it will explain the errors as you go...im gonna use this!

GamingAbroad
Автор

thanks, I recently discovered your channel and, as a non-developer, I found your videos really helpful!
I was wondering whether you could do some contents on how to setup pycharm from scratch (main features, common settings, main shortcuts, how to check hints/errors, how to use the debugger, .... I think that may be very interesting!

luckyluca
Автор

I’d rather not develop an attachment to banana. It makes eating it later a bit awkward.

AWriterWandering
Автор

Awesome as always - thanks for another short and informative video. I use a toy car to explain my problems.
Pycharm is amazing, I am always in pain when I have to use VS Code.

pepanek
Автор

2:44 trailing whitespaces are like spies 😡. You can't see them, but they hurt your code regardless 😂.
Thanks for the video 🍉👍!

dcknature
Автор

I am glad to youTube algorithm for suggesting your channel. Keep up good work.

ajdziaj
Автор

Good stuff! Definitely will help to build cleaner code

WhyNotProgram
Автор

Personally I like very much SonarLint which may be set as a plugin and that gives much better integration with IDE than just usual lib

grzegorzryznar
Автор

Even a banana is no longer just a banana, it's a smart banana

sharabhshukla
Автор

Niceshortcut for switching a case of string in PyCharm: ctrl + shift + u ;)

grzegorzryznar
Автор

Do I get the privilege of being the first to neg my wife by saying I explain it to her while she tunes me out? First!! 😆

deemon
Автор

Very good video. Thanks! Unfortunately, I watched it too late. I had already purchased a rubber duck :/

dcollett
Автор

I explain the code to my Managers or CTO's (same like rubber duck).

freeopensource
Автор

There's actually a PyCharm pylint plugin

jakuwoks
Автор

I understand this is an example, but you didn't write better code.. you just patched what pylint told you to fix! It would have been better to write real docstring and explain why they are useful/why pylint have the missing docstring rule, and so on...

AndreaGhensi