THIS Is My CLEAN Setup For Coding In Python (2023)

  Рет қаралды 23,796

Indently

Indently

Күн бұрын

Пікірлер: 52
@kruvik
@kruvik Жыл бұрын
One plugin I use is Rainbow Brackets, which colors not only brackets but also variable names a unique color so you can see the same variable easier in different places etc.
@Indently
@Indently Жыл бұрын
Oh I didn't know it worked with variables as well, I thought it was just brackets, so I was always likr "wtf do I need that for in Python"
@kruvik
@kruvik Жыл бұрын
@@Indently Yeah, well I thought it was a neat feature for just brackets already but I now use it mostly just for the variables.
@De_Mysteriis
@De_Mysteriis Жыл бұрын
Nice to see the love for PyCharm.. Was the IDE i was introduced to in my tutorials. Many opt for VS Code it seems but find it is quite hard to get set up being that it supports many other languages. Dedicated Python software just works for a noob like me 😂
@ggorg0
@ggorg0 Жыл бұрын
First, I started my Python journey by using PyCharm. I was already familiar with IntelliJ, because of Rider (the C# IDE). I started noticing a big resource usage impact (mostly the CPU, RAM and just the huge amount of processes that PyCharm started in the background). Then, I switched to VSCode and have been using it ever since for a few years for many languages (mostly Python and JS). Recently, I felt the need to switch to an even lighter editor, that is fast, not written in JavaScript/Electron, and, most importantly, one that wasn't built by Microsoft, has no telemetry and is fully open source. So I installed Emacs along with Spacemacs. It's not really as good as VSCode, but I like it way more... Also, I used Vim keybindings since the start, so the switch to Emacs was even easier!
@beniciomoldenado2315
@beniciomoldenado2315 11 ай бұрын
Thanks for a very helpful video. I am an old retired IT guy who started out on computers and languages you may not have heard of. Now I am trying to fill my time by studying Python and I am just getting started, and your video helped a lot. Thanks again.
@Indently
@Indently 11 ай бұрын
Glad it was helpful!
@skandarsouissi7282
@skandarsouissi7282 10 ай бұрын
There is a plugin called keymap normalizer, it should normalize the shortcut mappings from english layout (default for plugins) to whatever layout you have
@Shagadin
@Shagadin Жыл бұрын
Been using VSCode for a while but at this moment I am giving Pycharm a chance. It is harder to setup than VSCode but has many quality-of-life improvements that Code lacks or have to be installed separately. I believe Pycharm is a great tool meant for big professional projects.
@jhnnes64
@jhnnes64 11 ай бұрын
How is it harder to setup?
@K0D0R0
@K0D0R0 5 ай бұрын
Also wondering the same. How is it harder?
@Shagadin
@Shagadin 5 ай бұрын
@@K0D0R0 Setting up the python environment takes many more steps than in Code, where you install the Python extension and you are up and running. It's not that Pycharm is super complex to setup but it takes watching a tutorial or reading the docs versus two clicks in Code.
@JeremyLangdon1
@JeremyLangdon1 Жыл бұрын
I use WSL + VS Code + Dev Containers which works amazingly well on my windows machine (have to use windows for other aspects of my work). But docker dev containers to containerize and standardize the developer experience has been a game changer for our team. No more “we’ll it works on my machine”. You can go from a repo to having a fully configured developer environment (including enforcing formatting on save, etc) in seconds and it just works.
@johnhenderson1610
@johnhenderson1610 Жыл бұрын
You forgot to cover replacement text (or whatever it’s called) like typing ‘main’ gets replace with the whole ‘if’ statement. I’m going to give this ide a try!
@Indently
@Indently Жыл бұрын
That's not my setup though, that's built in to PyCharm
@vorpal22
@vorpal22 Жыл бұрын
Note: Java does not have the === operator. You're probably thinking of JavaScript, or Scala if you're using the Cats library.
@Indently
@Indently Жыл бұрын
I think I added a caption in the video for that, but I was definitely trying to say JavaScript, you're right!
@archibald3544
@archibald3544 Жыл бұрын
Are you a freelancer?What app do you use for it?
@KoljaMineralka
@KoljaMineralka Жыл бұрын
It doesn't have WSL support..only the paid version
@vorpal22
@vorpal22 Жыл бұрын
PyCharm definitely for the win. I pay a yearly license for the entire suite because CLion is the only C++ IDE I not only find tolerable but actually pleasant to use, and I want to support the makers of Kotlin since it has replaced Python and C++ as my favourite language. The new UI is fantastic... very streamlined. I've chosen it across all the JetBrains IDEs that I use. (And YES to another Mac user. I could never program in a Windows environment. I need my creamy, delicious Mac OS X Unix.) We have a member on the team that insists on using MVC and I hate it: after I approve his PRs and they're merged and I pull them, they are FULL of warnings that Python flags in accordance with PEP 8. It drives me bananas and I swear that about 15% of my time is spend just cleaning up his PRs after they're merged. *headsmacks* the other day, he had a function that was supposed to return one of three types. It was something like: def return_it(a: Optional[str], b: Optional[BytesIO], c: Optional[Boolean]): .... If a was not None, he returned one type. If b was not none, he returned another, Finally, if c was not none and was True, he would return the third. If none of those were the case, he would raise an exception. I told him that we needed a data type with four values, one for each data type, and a failure, and not three parameters with 2 x 2 x 3 = 12 values. def return_it(t: str | BytesIO | bool): .... You should really do a video on the match function that was introduced. It is incredibly handy and has cleaned up our code on type matching dramatically. Also, have you done a video on return typehints and mypy? We didn't realize we were using NoReturn wrong for the longest time when we should have been using None.
@Indently
@Indently Жыл бұрын
NoReturn (which has now become "Never" in Python 3.11) is just there to hint that the function should never return anything. As taken from the Python docs: def stop() -> NoReturn: raise RuntimeError('no way') I still haven't used it, but I will try to use it in future videos 😅 I made a video on type hints and the Self typehint recently. But I haven't really made a video explicitly concentrating on the return types.
@vorpal22
@vorpal22 Жыл бұрын
@@Indently That makes so much more sense to call it Never (didn't know that, although we are using Py3.11) since NoReturn is pretty misleading. I didn't know about the Self typehint. Thanks for teaching me something new!
@MrAngeloniStephen
@MrAngeloniStephen 5 ай бұрын
I never imagined you were Italian. :-)
@sorvex9
@sorvex9 Жыл бұрын
Just use vim bro.
@AWriterWandering
@AWriterWandering Жыл бұрын
PyCharm is definitely the superior python development platform. VSCode is a jack-of-all trades. It’s better for mixed code environments.
@rishiraj2548
@rishiraj2548 Жыл бұрын
Thanks
@Og74223
@Og74223 Жыл бұрын
Do you use mac or Microsoft ? And why Mac is often considered better for coding ?
@Indently
@Indently Жыл бұрын
I use Mac, because I'm less technical and didn't want to spend time looking into a good computer. But it works ok! I don't know who considers it better for coding, it's easier to use for us Apple people 😅
@satysin630
@satysin630 Жыл бұрын
What, if anything, do you use for managing your python installs? I need to learn Python so I had a search to see what is the best thing to do and it is crazy how many options there are with pyenv, conda, virtualenv, etc. I don't even know where to start so I just ignored it all and installed it with the official Python pkg install for Mac on the Python website. What do you do?
@K0D0R0
@K0D0R0 5 ай бұрын
Have the version(s) you need installed on your system. I personally like it simple, so I use official installers. But I heard anaconda is also good, as it includes many packages for data analytics. For every python project you create, whether in VScode or Pycharm, create a virtual environment in the same folder. I personally use python’s built-in venv. In those editors, when you create a virtual environment, you’ll have an option to select the python interpreter to use (version). P.S. I’m pretty sure pyenv is deprecated since around 3.5.
@AddictedToCode387
@AddictedToCode387 Жыл бұрын
Can you become developer at 38 ? I love it
@LuvxJacqu4li8e
@LuvxJacqu4li8e Жыл бұрын
No go ligature
@KeiraraVT
@KeiraraVT Жыл бұрын
for a second i thought u were gonna show a general setup for monitoring connections to api's like a discord bot
@SkyFly19853
@SkyFly19853 Жыл бұрын
But what about Sublime ?
@Indently
@Indently Жыл бұрын
I know absolutely 0 about sublime
@matthewreams4345
@matthewreams4345 Жыл бұрын
What if you mistake that for an equal sign? "You will get an error immediately" 😂😂
@dantemendez3743
@dantemendez3743 Жыл бұрын
That's just completely untrue in many cases. This is a completely valid line of code, but will not change the value of a to 10. a == 10
@Indently
@Indently Жыл бұрын
It's only valid if "a" is defined though, otherwise it will throw an error.
@Indently
@Indently Жыл бұрын
And even if "a" is defined, you still get syntax highlighting that "this statement has no effect"
@dantemendez3743
@dantemendez3743 Жыл бұрын
@@Indently This minimal example will give no syntax highlighting and no errors. Despite that, c and d have different values (10 vs False) a = 10 b = 4 c = b = a d = b == a
@Indently
@Indently Жыл бұрын
I use type hinting, so I will get syntax highlighting
@memo_force
@memo_force Жыл бұрын
TY
@MyCodingDiary
@MyCodingDiary Жыл бұрын
Your explanations are so concise and easy to follow😀. Thank you for making this video!
@deepaksoni77460
@deepaksoni77460 Жыл бұрын
Love your content ❤
@Indently
@Indently Жыл бұрын
Thank you :)
@MrAndromedean
@MrAndromedean 10 ай бұрын
good stuff. thanks
@ricgondo
@ricgondo Жыл бұрын
Just Thanks!!!!!
@AWriterWandering
@AWriterWandering Жыл бұрын
the double equals sign is more of a problem for C/C++ programmers. Because C won’t throw an error.
@Indently
@Indently Жыл бұрын
Please share an example, I'm curious!
@AWriterWandering
@AWriterWandering Жыл бұрын
@@Indently if(x=2) {} and if (x==2) {} are both technically valid syntax in C. This has led some developers to adopt “Yoda Conditions”, whereby the constant is put before the variable (2 == x) to ensure that the compiler throws an error if they forget an equal sign.
@Indently
@Indently Жыл бұрын
That's pretty interesting! I will keep that in mind if I ever code in C or C++ again 😎
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 76 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,8 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 15 МЛН
I tried 10 code editors
10:28
Fireship
Рет қаралды 3 МЛН
I Tried Every AI Coding Assistant
24:50
Conner Ardman
Рет қаралды 802 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 996 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 187 М.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 704 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 67 М.
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 225 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 404 М.
How To Write Better Functions In Python
14:17
Indently
Рет қаралды 25 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31