When you Over Optimize a Python Function

When you Over Optimize a Python Function

Rob Mulla

1 год назад

947,315 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Joseph Jones
Joseph Jones - 01.06.2023 23:52

Pop emoji. This guy is a troll 🧌 lol

Ответить
Rohan Aggarwal
Rohan Aggarwal - 14.10.2023 23:18

what ide is that, cuz it looks sick (is it vscode jupyter?)

Ответить
#33
#33 - 14.10.2023 01:51

Now I’m questioning everything you ever told me in the data science videos!

Ответить
Xox Yoy
Xox Yoy - 13.10.2023 18:45

I tho he gonna use a hashmap but he rickrolled me instead 💀

Ответить
V Sai Hruthik Reddy
V Sai Hruthik Reddy - 12.10.2023 09:33

He prepared too much trying not to laugh while making the video....

Ответить
Xeschire - The mad Argonian Khan
Xeschire - The mad Argonian Khan - 10.10.2023 05:09

This is clearly a troll! 😂

Ответить
Mr. Grevy
Mr. Grevy - 08.10.2023 08:20

This is one of the most helpful python shorts I've seen. Thank you sir.

Ответить
Umar Durrani
Umar Durrani - 04.10.2023 19:14

I don’t get return “f”

Ответить
Flawless
Flawless - 03.10.2023 09:04

Boom

Ответить
Lash LaRue
Lash LaRue - 30.09.2023 20:28

Hey Rob, this was funny and all but now you have a N00B like me wondering about what the actual best practice is... Maybe link to a serious version about how not to garble up the code?

I mean, you guys with CS degrees who just do pro production code all day can laugh about this, but I'm a lone dude at a small business frantically trying to find time to build caveman code on the side while handling fulfillment and customer service and accounting... 😓

Ответить
2020 is the best
2020 is the best - 29.09.2023 18:29

Create look up table, switch score by 50 and then divide the changed score by 10, then use the output from the operations as your index. 0 means F, 1 means D, 2 means E, 3 means F... Pretty simple solution.

Ответить
sHapp3z0r
sHapp3z0r - 29.09.2023 18:25

I know it's a joke, but it's not funny, sorry.

Ответить
J N
J N - 25.09.2023 15:39

This video offends me on a deep level. We can troll almost everything in life but when it comes to programming, putting shit like this out there is abominable.

Ответить
Brian Cox
Brian Cox - 19.09.2023 14:04

Now LLM's can work with video this kind of content will eventually make it into the training data, so the next GPT is going to troll you

Ответить
Withnail and Die
Withnail and Die - 17.09.2023 18:38

I'm new to coding so I thought maybe I was going crazy. But holy shit that first bit of code is so bad lmao. Quadruple nested if/else statement. Funny stuff.

Ответить
Rijo
Rijo - 17.09.2023 08:48

imagine building a ml model which print out 721 poop emoji

Ответить
arham sayyed
arham sayyed - 12.09.2023 18:25

I used this at work, my manager said I'm promoted
.
.
.
.
.



.
.
.
.
.


.



.
.
.


.
.
.
.
To customer

Ответить
Hardik Joshi
Hardik Joshi - 12.09.2023 01:58

Published on arXiv

Ответить
Thought Crime
Thought Crime - 11.09.2023 03:25

You should have added that time.sleep function as a decorator and ad that decoration to each if statement.
Just to make it easier to read.
Where there is a never nester, there is also a never decorator...
Idk If I was right, I'm just your average never decorator

Ответить
James
James - 10.09.2023 19:19

Use match.

Ответить
Lenji
Lenji - 10.09.2023 10:23

if you use gif, the code will run with quntum optimuzer.

Ответить
hehe
hehe - 09.09.2023 02:07

you forgot about adding extremely long variable names to make it more verbose so you use all of the memory so you get sent to VRAM

Ответить
Noads Please
Noads Please - 02.09.2023 15:57

Talk about (ir)regular expression(s)

Ответить
Paul Kenjerski
Paul Kenjerski - 01.09.2023 14:59

Why wouldn’t we just use elif instead of separate if statements?

Ответить
Joaquín Figueira
Joaquín Figueira - 01.09.2023 09:39

Lol 😂 what is thiss

Ответить
The Gentleman
The Gentleman - 30.08.2023 09:10

How do you code this compiler ?

Ответить
Wondering Turtle
Wondering Turtle - 25.08.2023 20:57

Does python not have a switch?

Ответить
KayKay
KayKay - 21.08.2023 21:17

Rob Mulla has been and is still such a help throughout my Data Science journey that for a sec or two I considered even this advice legit.

Ответить
christian audebert
christian audebert - 11.08.2023 01:59

a nightmare*. "prevent this function run too fast", where do he come.?

Ответить
Faisal Alherran
Faisal Alherran - 10.08.2023 02:07

Thanks a lot.

What IDE are you using in the video?

Ответить
Jesse
Jesse - 09.08.2023 04:13

Like all corporate software, the more engineers touched it. "I don't know why it works, just follow these steps"

Ответить
Yash Mankar
Yash Mankar - 08.08.2023 15:01

Did you ever get error while coding

Ответить
Yury Khokhryakov
Yury Khokhryakov - 01.08.2023 14:10

lol

Ответить
S R
S R - 31.07.2023 15:40

Thanks! Uing this to optimize the performance of this web server I'm running on a headless VM!

Ответить
Rutvik Rana
Rutvik Rana - 28.07.2023 14:07

Most pythonic way. 😎

calculate_grades = lambda x: ['D', 'C', 'B', 'A', 'A', 'F'] [v if ((v:=int(x/10)-6)>=0) else 5]

Ответить
Rutvik Rana
Rutvik Rana - 28.07.2023 13:41

Nope use 💩 * 69 … it will be most optimum 😇

Ответить
Evan R. Lowe Tech,Gaming, and Cooking
Evan R. Lowe Tech,Gaming, and Cooking - 24.07.2023 22:59

Cool.

Ответить
Moreshwar Meshram
Moreshwar Meshram - 24.07.2023 07:20

You can also use threads

Ответить
Incognito
Incognito - 24.07.2023 01:19

Yep...just unsubscribed....I don't like my life to be clickbaited and donating 30 secs of my life to this dude's channel. Have a nice life

Ответить
Ravindra Karande
Ravindra Karande - 23.07.2023 11:45

Note if we change the order of these statements in python then the code fails to work 😔

Ответить
Pranu Pranav
Pranu Pranav - 20.07.2023 16:19

😂

Ответить
ascii 70 85
ascii 70 85 - 15.07.2023 08:03

Thanks! This fixes a lot of the problems I’ve been having, mostly my python scripts were just inning way too fast, but all good now 😀👍👍

Ответить
PD's channel
PD's channel - 12.07.2023 08:02

Can we use any emoji other than the poop emoji?

Ответить
Aizen Soskue
Aizen Soskue - 12.07.2023 03:21

or just use rust bruh

Ответить
Austin 123
Austin 123 - 11.07.2023 00:21

Using sleep??

Ответить
Naughtylent
Naughtylent - 09.07.2023 17:58

I asked why and what before the poop emojis, does it mean i get it?

Ответить
Tech Life Journal
Tech Life Journal - 09.07.2023 15:12

Don't mix troll in education content newbies may assume it true and f**k up and may lose job or get trolled by others.

Ответить
Michael Mueller
Michael Mueller - 09.07.2023 11:27

I did put it straight into production code. Thx for the advice, bro.

Ответить
Zer0
Zer0 - 08.07.2023 07:35

Python "running too fast" has never been a problem in the history of the language.

Ответить
Fahad Rehmani
Fahad Rehmani - 07.07.2023 01:03

Ha ha ha

Ответить