Make Your Python Code More Professional

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 50

  • @salarghaffarian4914
    @salarghaffarian4914 Год назад +3

    In a day that everybody starts their channel with some beginner content, this is awesome to this some people put together and share some professional content. Thanks for recording and sharing this video. It was very informative.

  • @krispyren
    @krispyren 3 года назад +4

    Thanks so much for the information. I am a new developer and its great to learn the right way from the start, especially if you're going to work in a team

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

    Thank you man, after solving many code wars katas with boilerplate for loops I now know what I can improve on to write better code.

  • @NishithSavla
    @NishithSavla 3 года назад +4

    You shouldn't mix the docstrings formats like numpy format and restructuredText format.
    :param: is the restructuredText whereas,
    Parameters
    ------------------
    is the numpy format

  • @skyr2348
    @skyr2348 2 года назад

    FFS.... I write code in python in many, many different ways and applications, but i never knew, that you can do something like a 'type-comment'. It's what I need and what I love. With respect to the C++ origin and harmony. Thank You, my Sir

    • @daniel.watching
      @daniel.watching Год назад

      There are dictionary comprehensions too. eg. new_d = { key : value ** 2 for key, value in old_d.items() if value %2 == 0 }
      There are also set and generator comprehensions.

  • @Radical9535
    @Radical9535 Год назад

    cool! i learned you can print anything that you have defined from watching this video! my skills are increasing little by little!

  • @jonathan3488
    @jonathan3488 3 года назад +3

    filter returns a filter object, that you can iterate on later. However, when converting it to a list, it is a bit slower than list comprehension.
    So to my best understanding, if you want to just iterate on the filter object, don't convert it to list, since the filter operation alone takes much less memory and time.

    • @sasidharnaidu4507
      @sasidharnaidu4507 Год назад

      I was about to comment on the same. List compressions are better than filter/map unless you use the latter in a loop. If you are directly converting to lists, compression should be the tool.

  • @awsomeslayer1
    @awsomeslayer1 3 года назад

    Make a separate playlist of these tips. This is very useful for beginners like me.

  • @SAlexandert8
    @SAlexandert8 3 года назад +1

    Can you give us an example where a loop and appending to a list would be acceptable? I do A LOT of this, should I be trying to convert most or all of it to a list comprehension? Maybe some multi-line list comprehension examples would help. Thanks! love your channel!

    • @pietheijn-vo1gt
      @pietheijn-vo1gt Год назад +1

      I do it when I have a large number of actions to perform on each item. But then again you can put all those actions in a function and then use the function in the list comprehension (or even in map())

  • @bassenji5565
    @bassenji5565 3 года назад +1

    Thanks a lot for the great tips. For list compensation and filters, is it always better as it can be very long in line and full of conditions. I read that you should not go beyond 80 characters per line... or can we split thr list comprenhesion on two lines?

  • @AlghostUnit
    @AlghostUnit Месяц назад

    I code in terminal haha but that's still some cool tips to know if I code something that is going to be shared, thanks

  • @prince2347x
    @prince2347x 3 года назад +1

    I never saw that suggestion "Convert loop into list comprehension".. Uhmm maybe it's not available in community version ..

    • @NeuralNine
      @NeuralNine  3 года назад

      Or maybe it is a plugin I am not sure :D

    • @prince2347x
      @prince2347x 3 года назад

      @@NeuralNine Tabnine?👨‍💻

    • @NeuralNine
      @NeuralNine  3 года назад +1

      @@prince2347x no I think it's another one ^^ tabnine is for auto completion

  • @abhinavchoudhary6849
    @abhinavchoudhary6849 3 года назад +1

    I really love this channel

  • @akshatsharma1344
    @akshatsharma1344 Год назад

    Which python version do you use

  • @suche_cz
    @suche_cz 2 года назад

    thank you for video
    btw. why Union has this wierd syntax eg: Union[Int, Float] it's so non pythonic, I would expect something Union(Int, Float)

  • @nurdauletturar9596
    @nurdauletturar9596 3 года назад +1

    huh, ":param" was something new for me

    • @NeuralNine
      @NeuralNine  3 года назад

      glad you learned something ^^

  • @anushkachaurasiya7034
    @anushkachaurasiya7034 2 года назад +1

    program run hi nhi kr rhe dusra logic bataiye

  • @mr.dog233op9
    @mr.dog233op9 11 месяцев назад

    whats ur intro music

  • @mohammedsaad3801
    @mohammedsaad3801 3 года назад

    Day2:Love that intro

  • @abdoulhamidcoulibaly2385
    @abdoulhamidcoulibaly2385 11 месяцев назад +1

    Awesome

  • @himanshuranjansingh6134
    @himanshuranjansingh6134 3 года назад

    Hats off man🔥

  • @Kig_Ama
    @Kig_Ama 2 года назад

    What pycharm theme r u using here?

    • @shon254
      @shon254 Год назад

      I think it is Dracula

    • @Kig_Ama
      @Kig_Ama Год назад

      @@shon254 yeah coudl be, ty!

  • @Gruuvin1
    @Gruuvin1 Год назад +1

    Nacho Varga

  • @4ll144
    @4ll144 3 года назад +1

    guys, whenever creatring a new project with python please run this command " import this ". could be helpful too

    • @NeuralNine
      @NeuralNine  3 года назад +1

      yes mentioned it in the end ^^

    • @4ll144
      @4ll144 3 года назад

      @@NeuralNine ya, just to remember on the comments lol

  • @cookieIg-n1b
    @cookieIg-n1b Месяц назад

    i dont like to import unnecessary libraries 5:07

  • @LukieHZX
    @LukieHZX 3 года назад +1

    1

  • @ananthramvijayaraj4554
    @ananthramvijayaraj4554 3 года назад +15

    Your content is amazing but if you made your videos less robotic and with more energy and humor. What i mean is maybe smile here and there.

    • @MegaChilisauce
      @MegaChilisauce 3 года назад +18

      i prefer the videos as they are, with your proposed changes the videos would get less dense in information and therefore unnecessarily longer

    • @ananthramvijayaraj4554
      @ananthramvijayaraj4554 3 года назад +3

      @@MegaChilisauce maybe a minute or two longer, not more than that. A video just a minute longer and with humor, energy and laughs here and there, seems like a good deal.

    • @techatival
      @techatival 3 года назад +12

      ​@@ananthramvijayaraj4554 Not everyone is a Humor Herold. I personally don't like to watch videos where the presenter tries to be too energetic and funny. Many times it's too fake.

    • @ananthramvijayaraj4554
      @ananthramvijayaraj4554 3 года назад +1

      @@techatival Have you watched sentdex? He's amazing at teaching and also adds humor into his videos. Anyways opinions can vary.

    • @KingErasmos
      @KingErasmos 10 месяцев назад +1

      They’re exactly how they need to be. There’s enough developers developers developers style videos on RUclips.