Lucas Viiana
Lucas Viiana
  • Видео 11
  • Просмотров 39 853
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...
Просмотров: 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...

Комментарии

  • @alvarolang
    @alvarolang 4 месяца назад

    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!

  • @iky__
    @iky__ 4 месяца назад

    I'd love a videos on speeding up your python programs without moving too far from the normal python syntax

    • @ViianaCodes
      @ViianaCodes 4 месяца назад

      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!

    • @iky__
      @iky__ 4 месяца назад

      @@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.

  • @tantzer6113
    @tantzer6113 4 месяца назад

    I understood most of this, but I need more background before I understand it fully.

  • @Blazikentube
    @Blazikentube 4 месяца назад

    Ngl this is probably the best video for generators and iterables. I like the slight change in camera, feels more natural.

    • @ViianaCodes
      @ViianaCodes 4 месяца назад

      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

    • @Blazikentube
      @Blazikentube 4 месяца назад

      ​@@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!

  • @kn4ughty
    @kn4ughty 4 месяца назад

    Very cool!

  • @darrenlefcoe
    @darrenlefcoe 4 месяца назад

    a nice little reminder...

  • @rmb706
    @rmb706 4 месяца назад

    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.

    • @ViianaCodes
      @ViianaCodes 4 месяца назад

      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 :)

  • @MsBowner
    @MsBowner 4 месяца назад

    Thx dude

  • @Imy297
    @Imy297 5 месяцев назад

    Hi how did youa ccess the terminal?

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      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!

  • @SadeghMirzaee-fd8lg
    @SadeghMirzaee-fd8lg 5 месяцев назад

    so how to do the part about dataclasses if the dict is nested?

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      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!

    • @SadeghMirzaee-fd8lg
      @SadeghMirzaee-fd8lg 5 месяцев назад

      @@ViianaCodes Well thank you!

  • @ducky_well
    @ducky_well 5 месяцев назад

    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?

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      Thanks for the comment :) I wonder what you mean by Azure platform? Azure has so many services :)

    • @ducky_well
      @ducky_well 5 месяцев назад

      ​@@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. .

  • @drewdxn
    @drewdxn 5 месяцев назад

    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!

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      Thanks! This is mostly plain VS Code. The circles beside the commands are there by default (I guess).

  • @academianobresilva_10
    @academianobresilva_10 5 месяцев назад

    Muito bom! A great and high level lecture! Congratulations, filho. Gostei muito.

  • @user-px9bi1uh5t
    @user-px9bi1uh5t 5 месяцев назад

    Great video! Now I'm craving for a fruit salad 😅

  • @butoyighyslain171
    @butoyighyslain171 5 месяцев назад

    dope stuffff keep goingg you will blow up

  • @codeBUG1534
    @codeBUG1534 5 месяцев назад

    Very Smooth explanation. Thanks a lot for your help and keep making more content like this one...👌

  • @yasink18
    @yasink18 5 месяцев назад

    Your video is too fast😮😮😮😮

  • @alexxitoprivacy5189
    @alexxitoprivacy5189 6 месяцев назад

    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.

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      Oh wow! Thanks for the kind words! It's just a young channel, so I hope with time it will grow :)

  • @alexmirkin
    @alexmirkin 6 месяцев назад

    What does `Host github*` mean near the end of the video?

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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.

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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?

    • @alexmirkin
      @alexmirkin 5 месяцев назад

      @@ViianaCodes Thanks! I see. So basically you didn't have to write the same rows in github-personal that are in github* ?

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      Exactly, because _github*_ matches both _github-personal_ and _github-work_

    • @ViianaCodes
      @ViianaCodes 5 месяцев назад

      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!

  • @kekkaigenkei
    @kekkaigenkei 6 месяцев назад

    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

  • @alpine_chr
    @alpine_chr 6 месяцев назад

    Educational python by a 7a climber. nice!

  • @jonintc
    @jonintc 6 месяцев назад

    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!!!

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      Pydantic? Yeah! Just unpack the json structure and everything happens magically!

  • @DennisGentry
    @DennisGentry 6 месяцев назад

    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.

  • @alvarolang
    @alvarolang 6 месяцев назад

    Muito bom! Parabéns pelo vídeo!

  • @darrenloke5486
    @darrenloke5486 6 месяцев назад

    This was gold. Teaching a language using evolutionary process was genius.

  • @MuhammedBasil
    @MuhammedBasil 6 месяцев назад

    Excellent video, thank you 👍

  • @mkwise5996
    @mkwise5996 6 месяцев назад

    Thank you for this great video

  • @mkwise5996
    @mkwise5996 6 месяцев назад

    Great video

  • @mrc1500
    @mrc1500 6 месяцев назад

    Takk for en tydelig og nyttig video. Presentasjonen din er perfekt!

  • @initialsbb
    @initialsbb 6 месяцев назад

    Excellent video, there's a lot to... unpack.

  • @GPrime808
    @GPrime808 6 месяцев назад

    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

  • @HalfAlive03
    @HalfAlive03 6 месяцев назад

    Thanks to this

  • @Graeme_Lastname
    @Graeme_Lastname 6 месяцев назад

    The name has been truncated and that's a good thing?

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      Only for those with OCD :)

  • @ColinTimmins
    @ColinTimmins 6 месяцев назад

    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. =]

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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!

  • @Aceptron
    @Aceptron 6 месяцев назад

    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

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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

  • @dheeraj3945
    @dheeraj3945 6 месяцев назад

    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.

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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 :)

    • @dheeraj3945
      @dheeraj3945 6 месяцев назад

      @@ViianaCodes Cool. I will be waiting for that one. Thanks again for the motivation. I just started to code after watching your video.

  • @dougmercer
    @dougmercer 6 месяцев назад

    Hah, loved the intro!

  • @JWalker2004
    @JWalker2004 6 месяцев назад

    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.

  • @cihanseckin2544
    @cihanseckin2544 6 месяцев назад

    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.

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      Sure, that's in the roadmap :)

  • @lukekurlandski7653
    @lukekurlandski7653 6 месяцев назад

    Holy shit please do not fucking do #1.

  • @LMGaming0
    @LMGaming0 6 месяцев назад

    Love it!

  • @keenoogodlike
    @keenoogodlike 6 месяцев назад

    please use dark reader, I can't stand the light :) nice tips btw

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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!

  • @ordinarygg
    @ordinarygg 6 месяцев назад

    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.

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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!

  • @leeparker6200
    @leeparker6200 6 месяцев назад

    Great videos, please keep making them :-)

  • @julendominadas4040
    @julendominadas4040 6 месяцев назад

    Qué raro está Nate Gentile

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      Not even clooose! 😅

  • @loukassideris
    @loukassideris 6 месяцев назад

    What's the difference between a NamedTuple class and a dataclass?

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      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.

  • @EloyLima1971
    @EloyLima1971 6 месяцев назад

    Very nice! Thank you very much.

  • @angeloj.willems4362
    @angeloj.willems4362 6 месяцев назад

    Finally, now I understand the use case for namedtuples.

  • @thedudegotfourviews
    @thedudegotfourviews 6 месяцев назад

    I like this type of video better than the others before it. It's faster paced and compact.

    • @ViianaCodes
      @ViianaCodes 6 месяцев назад

      Really appreciate the opinion! I'll keep this style for a while and see how it goes :)