Beyond Database
Beyond Database
  • Видео 6
  • Просмотров 82 337
Should You ALWAYS Use List Comprehension In Python?
In this video we explore the efficiency of list comprehensions, the classic for loops, and map function. Whether you're a seasoned developer or just starting your Python adventure, we've got tips, tricks, and real-world examples to boost your coding game!
Discover the trade-offs, performance considerations, and choose the approach that suits your coding style.
🔗 #python #codingtips #programming
Просмотров: 2 580

Видео

How Do I Use Python To Scrape Jobs From Reddit
Просмотров 3013 года назад
In this video I scrape Job submissions from r/forhire, r/jobbit and r/jobopenings subreddits. I use PRAW library. You can find the projects code here: github.com/alicmp/job-hunter You are more than welcome to modify the bot and find your prefered jobs. If you have any questions feel free to contact us at hi@webkar.xyz
Build Real Time Notification With Django Channels In 5 Minutes
Просмотров 52 тыс.3 года назад
In this video we are creating a simple notification system with Django to demonstrate how django channels works. Setup Django & Postgres with Docker Tutorial: ruclips.net/video/sthCUcw5Zog/видео.html
Django & Postgres with Docker Best Practices
Просмотров 17 тыс.3 года назад
In this video we are configuring django & postgres with docker in both development and production environment. I also give you some best practices in docker. Here is the github repo of this project: github.com/alicmp/djnago-postgres-docker-starter Here You can read more about some of the topics which i talked about in the video: docs.docker.com/engine/install/ubuntu/ docs.docker.com/compose/ins...
Fast Search API with Django & Elasticsearch
Просмотров 9 тыс.3 года назад
In this video first we configure django and elasticsearch with docker, After that we are using elasticsearch to create a fast search api.
Create Search API with Django Using Reduce Method
Просмотров 8523 года назад
In this video first we implement a simple search API by modifying get_queryset method, after that we use reduce method to make our API a more powerful.

Комментарии

  • @TheBluetelligence
    @TheBluetelligence 20 дней назад

    Great video.

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

    HEY GUYS WELCOME TO MY VIDEO IM GOING TO START OFF BY USING CODE IVE ALREADY MADE GOODLUCK

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

    Hi. Thanks for the great video. Can you suggest where to look for effective tutorial on how to setup Django to run on Could SQL? Or make a video yourself about this?

  • @WantedGamer-jg8vm
    @WantedGamer-jg8vm 6 месяцев назад

    داداش ایرانی سلام😂

  • @hamiddvel
    @hamiddvel 9 месяцев назад

    داداش کامیونیتی فارسی هم اونقدری بد نیست که داری اینگلیسی ریکورد میکنی

  • @hadimemari6544
    @hadimemari6544 11 месяцев назад

    well well, that was helpful.

  • @Mefistofy
    @Mefistofy 11 месяцев назад

    If performance is important, I'd go with numpy.

  • @rida_brahim
    @rida_brahim 11 месяцев назад

    I'm new to programming and using generators with database in case the data comes one day to be large. my question is isn't it always good to go with does the performance matter as big YES like why we even need to consider another approach?

  • @nevokrien95
    @nevokrien95 11 месяцев назад

    if u are working with large data its a thread/process pool excuter with a map if its not parlalizble then save it to memory/push to db inside a for loop if its something like an np array or pytorch tensor try and use the package build in operations the rest is allways comprehention except if u r working with non python people

  • @That__Guy
    @That__Guy 11 месяцев назад

    I honestly don't think there's ever a scenario where the cumulative effect of the savings through list comprehensions outweighs the costs of code that is harder to maintain. Dev time is usually more expensive than CPU time and code that is harder to read can significantly increase dev time. You would have to have quite a lot of these loops in your code or really really large arrays to go through to make this effect be noticeable. But that in itself is a code smell and shows that you probably need to use different tools to solve your problem like just using numpy.square(array), which is probably 20 times faster than all of the alternatives.

  • @smallbluemachine
    @smallbluemachine 11 месяцев назад

    The "Is performance important" diamond should be further up the tree, where the other branch is C++, but now I'm just being rude.

    • @BeyondDatabase
      @BeyondDatabase 11 месяцев назад

      Haha, fair point! Absolutely, it's all about context. While list comprehension in Python can offer great readability and convenience, performance considerations may lead some to explore languages like C++. It's a trade-off between ease of development and raw speed. Although if you go with python you wouldn't want your code freezing unexpectedly!

    • @nevokrien95
      @nevokrien95 11 месяцев назад

      ya if u need preformance in raw python stuff went horibly wrong. we have c# java go for a reason...

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

      There is Libraries in C++ to create module for python too if you need more speed for a particular task it can be quiet useful

  • @saharhatami5970
    @saharhatami5970 11 месяцев назад

    Welcome back 🎉

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

    Thanks bro!

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

    Simplified Real-time Chat App Django Channels + Websockets and User Authentication ruclips.net/video/SWivHeitpk0/видео.html

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

    Thank you

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

    can you provide repo?

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

    @Beyond Datbase. I don't understand that you still put the database in a docker container in the production compose file. Because you say it by yourself that it is not wise to put a database in a docker container in production. So we can omit the database container in production?

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

    Why would you advice against creating nginx in production. The excuse you gave is a very poor one.

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

    how i can use permission_classes in doucumentViewSet, when i send jwt token in request, view return 500 error

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

    Thanks so much for your explanations. However, I would like to see you make video on how to connect the containerised django app with a locally running instance of postgres database.

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

    I don't understand any of the concepts used but nice video

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

    محتوای خیلی خوبی بود ولی لحن انگلیسی خوبی نداشتین. اینو میگم که بهتر و بهتر بشین و موفقیت تونو ببینم. ساب کردم

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

    which vscode color theme you are using ?

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

    You simply have to not provided the html code or starting project link 😂

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

    please do a video where u code about -Time on site -Pages per visit. -Bounce rate -Returning visitors for admin analytics reports i am new to django and this things are advance

  • @amirh.zeidabadi846
    @amirh.zeidabadi846 2 года назад

    ro englisit car kon aberomono bordi. in jomle ke gofti "we don't use docker in production" az koja ovordi???🤭

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

    tnx

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

    Thanks man

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

    Good job!

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

    great content , thank you

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

    docker is obligate ?

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

    im having Connection error wher running python manage.py search_index --rebuild command. Have some one any solutions? Thank you in advance)

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

    it would be nice if you left the git repository

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

    Really good. Thanks

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

    Fantastic! Very helpful. What I don't understand and how to distribute it, for example, on Linode, DigitalOcean or similar?

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

    After following the whole tutorial :( you said Docker is not recommended..

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

      That's not what he said. He said that Docker added a layer of complexity and in production it might be better to use RDS for Postgresql. He seems to be implying that Django and Gunicorn should run in Docker but Nginx and Postgresql should not.

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

      @@ernestezis9526 He was actually talking about nginx, which I think is a bad advice from his part.

    • @postermelone6761
      @postermelone6761 9 месяцев назад

      He usee gunicorn, how does static files get solved without nginx then, is he amatuer? Or am i?

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

    With your setup i could configure nginx on the host machine so that i could even have multiple apps running on dockercontainers right?

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

    This was really cool tutorial, it was super fast and just talked about important things, not wasting time on coding. Thank you very much

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

    Thanks for the video, you cleared a lot of my confusion.

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

    I realy like what you're doing. it help me to be more performant on django.

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

    You saved my life!!!!

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

    I was doing docker wrong! :D Thanks a lot for showing best practices!

  • @official.letsfeellove
    @official.letsfeellove 3 года назад

    hello sir please make a video django vue auth with email verification and reset password.

  • @official.letsfeellove
    @official.letsfeellove 3 года назад

    hello sir , can you please make a full tutorial video djago vue full authentication system with email verification and password reset. thank you

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

    There is actually a wrong video link in the description, the correct one should be: ruclips.net/video/4wdNx2j1j-w/видео.html

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

    Great video man! Straight to the point using the KISS principle.

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

    Thanks. But how could I implemet DocumentViewSet with frontend input. I can't realize... because don't see where is out indicating id or name as q or something else as GET.get('q'). COuld you help?

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

    Hey can you provide us the github repo with the code so we can run it locally and learn from it? Thank you so much!

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

    That is so helpful and time saving. Thanks