![Lucas Viiana](/img/default-banner.jpg)
- Видео 11
- Просмотров 39 853
Lucas Viiana
Швеция
Добавлен 19 ноя 2011
Software development is more than learning a programming language. A lot more. It goes beyond sharpening your tools. It is having fun through tinkering and curiosity that drives us forward. Join me on this beautiful learning journey and keep that spark going.
The WORST type of BUG in Python
Correctly using Iterables in Python can save you from the absolute worst type of BUG in Python. The issue is, looping in Python is so simple that the fine nuances may go unnoticed.
The main point of this video is that `list.append` will eventually lead to the Python process running out of memory.
So, in this video we start using a `list` to read content to a file and discuss how it can cause the Python process to get killed by the operating system when we run out of memory. Then we look into generator functions (i.e., functions that `yield` instead of `return`ing) and generator expressions and how they can help us improve our code.
We look at how generator expressions look like list comprehe...
The main point of this video is that `list.append` will eventually lead to the Python process running out of memory.
So, in this video we start using a `list` to read content to a file and discuss how it can cause the Python process to get killed by the operating system when we run out of memory. Then we look into generator functions (i.e., functions that `yield` instead of `return`ing) and generator expressions and how they can help us improve our code.
We look at how generator expressions look like list comprehe...
Просмотров: 534
Видео
Git tutorial for BEGINNERS - working locally
Просмотров 4525 месяцев назад
In this video you will learn how to working locally with Git: how to create branches, how to merge, rebase, resolve merge conflicts, etc. Knowing this makes working with remote repositories and collaborating is a breeze. The vide starts by storing things in a repository using the following commands: - git init - git add - git commit - git log Then we start creating branches and switching betwee...
How to configure GitHub SSH CORRECTLY
Просмотров 1,5 тыс.6 месяцев назад
In this video I show how to configure GitHub (GitLab, BitBucket, etc.) SSH correctly: 1. Create a key-value pair using the ED25519 algorithm, that is done with the command `ssh-keygen -t ed25519`. The defaults are ok. 2. But! Make sure that you add a passphrase! This is important 3. Add your public key to GitHub via settings. 4. Configure your SSH Agent. This can be tricky in itself, so I might...
Python BEGINNER to ADVANCED in 10 levels
Просмотров 22 тыс.6 месяцев назад
How to take your Python programming skills from beginner to advanced in 10 levels. I will share how the pros detect code developed by inexperienced coders and how you fix those issues. Bonus: get the f-string cheat sheet! lucasviana.podia.com/f-strings-cheatsheet For a more in-depth explanation of some concepts in the video, checkout these other videos: - f-string secrets: ruclips.net/video/I4e...
Git INTERNALS part 2 - the beauty of TREES
Просмотров 5898 месяцев назад
Trees and commit objects are the very heart of Git. Trees are the unsung heroes of the entire Git machinery, so we put special emphasis on them. Put on your geek goggles and let's hit the ground running. Watch the previous video about blobs: ruclips.net/video/Eo8Epoggn1U/видео.html
Git INTERNALS part 1: BLOBS
Просмотров 7839 месяцев назад
What on earth are Git BLOBS? Here we answer: - Where are blobs stored? - How are blobs created? - What is the exact content of a blob? And we even touch upon checksums and how they are useful. Not stones are left unturned. Put on your geek goggles and let's hit the ground running. Part 2: ruclips.net/video/reacnJArQXc/видео.html
Python VENV - you should ALWAYS use it
Просмотров 1,8 тыс.Год назад
The Python venv module will save you a lot of trouble when using pip. Virtual environments provide you with a comfy place to pip install packages for each project you work on independently, and that is important. The alternative is to cram all your packages in one of a handful of bad locations, like the user site packages, that shouldn't even exist in the first place. In this video we see how I...
13 Python f-string formatting tips
Просмотров 11 тыс.Год назад
Get the cheat sheet: lucasviana.podia.com/f-strings-cheatsheet In this video we go deep into Python f-strings and the slightly hidden "formatting mini-language", which is an absolute gem that I use all the time. The string formatting mini-language is jam packed with goodies but it is hard to use it effectively just from reading the documentation. In this video I'll lay out some 13 of my best ti...
This is my first video ever
Просмотров 447Год назад
For a long time I have been procrastinating this moment. But late is better than never. There is no real content, but: - There is a script, camera, lights, sound, and action. - There is a thumbnail made on Photoshop. - There is time spent on basic editing. - There are RUclips technical standards to follow (-14 LUFS?!) - There were mistakes. All those steps on the road cause immense friction, an...
Great video! Very instructive! I would apreciate more vídeos solving comum bugs, such as this one, i'm facing: from cryptography.hazmat.bindings._rust import openssl as rust_openssl ImportError: DLL load failed while importing _rust: Não foi possível encontrar o procedimento especificado. The file is right there but the import is not working. I've tryed to 'install - -upgrade' the package already. Did not work. Anyway, some small project videos would be cool too. Best reggards!
I'd love a videos on speeding up your python programs without moving too far from the normal python syntax
That is a great idea! This video is, in fact, very much related. Using generators and the builtin iterators and functions that are implemented in C make Python very fast. I was quite happy to see this little program compute the sum of all lines in a 3MB file pretty much instantly!
@@ViianaCodes yes i genuinely loved this video. I wanted to see a video on how you can speed up ur python programs using things like cython and other libraries that use 'just in time compilation'. I recently worked on a fluid simulator in python using pygame for the visualisation but it runs terribly slow with about a thousand particles. So, i just need a way to improve its speed using a different python implementation or other libraries that make the code faster without substantially changing the already written code.
I understood most of this, but I need more background before I understand it fully.
Ngl this is probably the best video for generators and iterables. I like the slight change in camera, feels more natural.
Aha! The idea was to change the angle but I actually don't have a lot of options at my place, ao I just changed the lens from 24 to 35mm. I'll make a better effort next time
@@ViianaCodes To be honest I really like this camera angle, it feels like I'm speaking with a senior at work. It gives kinda cozy vibes!
Very cool!
a nice little reminder...
This was super helpful. I read the documentation, but theres a lot of things in it that were not clear to me before watching these videos. I often find myself completely unable to learn new python stuff by reading the documentation. It just doesn't make sense without examples. I don't understand why examples aren't more commonly packaged with documentation.
Yeah, some parts of the docs take hours to wrap my head around, especially the syntax definition parts. Keep at it though! Reading the docs is the way :)
Thx dude
Hi how did youa ccess the terminal?
On VS Code type ctrl+shift+p (or cmd+shift+p on mac) and type "terminal" and press enter. There are many many other ways though!
so how to do the part about dataclasses if the dict is nested?
Hi! With pure dataclasses and no extra magic code you can't use unpacking, unfortunately. But take a look at pydantic, which does all that automatically!
@@ViianaCodes Well thank you!
I took a free course from Microsoft on this subject, and it was similar to how you're explaining it now, but I prefer your explanation over the boring details they used to provide. The tedious part of it all is that I have to use the Azure platform to apply the instructions. Could you please tell me how to do this in Visual Studio Code?
Thanks for the comment :) I wonder what you mean by Azure platform? Azure has so many services :)
@@ViianaCodes Hmm, they called it Cloud Shell. I asked GPT, but it gave me other platforms too. I think it's important to learn instead of rushing to ask a lot of questions 😅. Thank you for your time. .
Wonderful video! Really enjoying your channel so far. The past few videos have been very very good--will be keeping up with your new content. I have a question. I love your bash setup. I am a little envious of the colored circles and the simple design and the aesthetic of your command line. Can I ask what you are using? Thanks in advance!
Thanks! This is mostly plain VS Code. The circles beside the commands are there by default (I guess).
Muito bom! A great and high level lecture! Congratulations, filho. Gostei muito.
Great video! Now I'm craving for a fruit salad 😅
dope stuffff keep goingg you will blow up
Very Smooth explanation. Thanks a lot for your help and keep making more content like this one...👌
Your video is too fast😮😮😮😮
This is one of the most underrated channel i've ever seen in my entire life. Really thumbs up man, you're amazing. Concise videos, no over-fancy animations, video editing or stuff. Just explaining to perfection what you're trying to. Simply amazing, you deserve more.
Oh wow! Thanks for the kind words! It's just a young channel, so I hope with time it will grow :)
What does `Host github*` mean near the end of the video?
It is an alias. Instead of typing ssh://github.com, you can simply type github and SSH will be able to understand that it needs to look at the HostName to figure out the full address.
Aha I might have missed the question in the first answer. The asterisk in the end means that those specific options apply to anything that starts with _github_ . In that case it applies to both _github-work_ and _github-private_ . It would also apply to _github.com_ , _githubbanana_ , and so on. Hope it makes sense now?
@@ViianaCodes Thanks! I see. So basically you didn't have to write the same rows in github-personal that are in github* ?
Exactly, because _github*_ matches both _github-personal_ and _github-work_
But if you do repeat the same line in 2 host configurations that match... what happens then? It's defined right in the beginning of the man page: linux.die.net/man/5/ssh_config Cheers!
Great video. Can you make more videos on design pattern, best practice in python coding, or OOP for data science? My main weakness is i also test every variable first so i can make a proper function out of it LOL
I will try!
Educational python by a 7a climber. nice!
Been doing Python for 10 years. I understood 100% of what you said but only have been practicing the virtual env. Holy crap! I need to sit down and implement each trick in a project to commit to memory! I also now realize how some of my favorite libraries are so easy to use!!!
Pydantic? Yeah! Just unpack the json structure and everything happens magically!
Hi, this is a nice video. I have one small suggestion: Even when you're just writing an example, if you add a docstring to the class or function, it'll be clearer what the bit of code is trying to do.
Great tip! Thanks!
Muito bom! Parabéns pelo vídeo!
This was gold. Teaching a language using evolutionary process was genius.
Excellent video, thank you 👍
Thank you for this great video
Great video
Takk for en tydelig og nyttig video. Presentasjonen din er perfekt!
Excellent video, there's a lot to... unpack.
Great video! You had structure, clarity, and timely precision. Amazing job for a first video, I would have thought you've been doing this for years
Thanks to this
The name has been truncated and that's a good thing?
Only for those with OCD :)
Wow, this was really good! I’m learning to code so I can build my own solutions to solve problems that I have that will include GPT assistants. I’m dyslexic and have ADHD that’s inhibit my learning. Your in-depth explanation and how you presented everything was beautiful. Subbed for anything else you create in the future. =]
Wow, what a beautiful comment! I'll post a print of it on my Instagram (@senhor_lucas mostly private stuff) because I really need to share this. Thank you very much! And see you soon in the next video!
Your videos are absolutely amazing. I have watched your videos on Python and Git. And you are a phenomenal teacher. The quality of your teaching and content is brilliant. I don't wanna say upload more frequently so you don't lose focus over quality. But I am gonna say that I am EAGERLY waiting for your videos in general (ESPECIALLY Git). I would LOVE to see you take this Git course to Advance level. Please make more content on Git <3
I'll post a print of your comment on my Instagram (@senhor_lucas mostly private stuff) because I really need to share this. Thank you very much! When I started I ha no idea anyone would like it so much! <3
This is great! I came here from the python noob to pro video. Your videos are really extremely high level man. I wish you'd start from the very beginning. For someone who want's to be a developer from the start. But confused where to begin. It would really help if you can do a series of advices on that one. I am really glad that the algorithm caught your attention.
Thanks! I will see what I can do! The next video I'll post is going to be much more basic level, but it is about Git. Since you want to be a developer, watching that one will be very beneficial. Don't give up, you'll get there :)
@@ViianaCodes Cool. I will be waiting for that one. Thanks again for the motivation. I just started to code after watching your video.
Hah, loved the intro!
I would not have guessed this was your first RUclips video. I am college student trying to learn more about Python and programming in general. I really appreciated how you broke down the documentation to be more understandable. I hope you make more Python videos in the future.
Hi, I loved your video, and while watching your video I realised how much I still don't know... Would you consider doing more high level Python videos about beginner topics? Such as lists or sets or built-in functions but in advanced-level.
Sure, that's in the roadmap :)
Holy shit please do not fucking do #1.
Love it!
please use dark reader, I can't stand the light :) nice tips btw
Oh, hadn't thought about that. In my day-to-day work I actually use dark reader otherwise my eyes fall off when switching from the editor to the browser!
Thanks for the video! Here is my view on this one after 10+ years of building software using Python. I would call this video BEGINNER to BEGINNER part 2. There are huge difference between all off this code look tips and actual working and build systems that delivered on time and have test coverage. You can't call ADVANCED anything, without even trying to create a custom Python extensions or disable garbage collector for extra speed or memory/code profiling instruments. Please be aware that your scope of understanding the topic is not correlated with click-bait short videos to feed viewers.
Absolutely right. This video would never fly as a talk at PyCon, or pretty much anywhere other than RUclips. Tbh it is super hard naming a video in a way that is both truthful and eye-catching. Well, I am just starting out at RUclips so I am testing things out. Hope you find what you're looking for!
Great videos, please keep making them :-)
Qué raro está Nate Gentile
Not even clooose! 😅
What's the difference between a NamedTuple class and a dataclass?
The differences are big! Use cases are quite similar. `NamedTuples` have been around for much longer but when `dataclasses` came around many of the use cases for `NamedTuple` just became a use case for `dataclasses`. Most of the times then `dataclasses` is the way to go.
Very nice! Thank you very much.
Finally, now I understand the use case for namedtuples.
I like this type of video better than the others before it. It's faster paced and compact.
Really appreciate the opinion! I'll keep this style for a while and see how it goes :)