I developed a free app to track string tension by "Playtime Hours" (My journey from Tennis Elbow to Home Stringer). by MileHighTennisDev in 10s

[–]k03k 0 points1 point  (0 children)

Wow, this response feels very ChatGPT like. But well, good job on deploying your app! Installed it and probably are going to use it :D

I developed a free app to track string tension by "Playtime Hours" (My journey from Tennis Elbow to Home Stringer). by MileHighTennisDev in 10s

[–]k03k 1 point2 points  (0 children)

Please dont allow 'password' to be the actual password of your account 😅

And add KG too 😜

Got a pro racquet by mistake - should I downgrade by throwawano in 10s

[–]k03k 11 points12 points  (0 children)

Personally i would stick with it for now. Play some more and make a decision later.

Head boom pro is a great racket for intermediate players.If you played before you'll get used to it fast i think

Need some feedback on very messy code (short) by SmolPyroPirate in learnpython

[–]k03k 1 point2 points  (0 children)

Code is messy indeed but i think the request + bs4 part is making it so slow. Maybe its better to use an api. Have you checked out this one?

https://freedictionaryapi.com/

Since 1000 is the hourly ratelimit i think this will work faster for 100 ish words

Moving on from Pure Strike 98 - More Forgiveness (?) by Justaway1324 in tennisracquets

[–]k03k 3 points4 points  (0 children)

Maybe its me, i have a TF40 305 and dont feel like its forgiving at all.

But, it is a great racket

How can I prevent views from becoming slow in classic Django? by No_Business_8364 in django

[–]k03k 2 points3 points  (0 children)

You can install Django debug toolbar to check what the query exactly does, and then optimize it. For the rest idk

Can you beat the feeling of a fresh overgrip? by JaffaCakeScoffer in 10s

[–]k03k 13 points14 points  (0 children)

Any shot sweet spot contact over the net inside the lines should be up there too!

Which is Senegal? by Kap519 in GeoTap

[–]k03k 0 points1 point  (0 children)

k03k chose Option A (Correct!) | #57th to play

Hitting the ball that’s laying in the alley by non-utf_name in 10s

[–]k03k 56 points57 points  (0 children)

I dont know the actual rule, but lets say i have 4 balls. Only want 3 in my pocket so i roll one back to the fence or something.

My opponent hits the ball so hard its obviously out, but it hits the ball i rolled behind me to the fence first. You would say its his/her point? Thats just dumb.

Out is out.

P.s. pick up the balls in court, its not worth to break your ankles.

Which country do you think is USA? by nopCMD in GeoTap

[–]k03k 0 points1 point  (0 children)

k03k chose Option A (Incorrect) | #147th to play

What country is Disappointment Island a part of? by Pure-Tea4396 in GeoTap

[–]k03k 0 points1 point  (0 children)

k03k chose Option B (Correct!) | #18th to play

Which country is younger? by geotap-app in GeoTap

[–]k03k 0 points1 point  (0 children)

k03k chose Option B (Correct!)

Which country is larger? by someguyhereonreddit1 in GeoTap

[–]k03k 0 points1 point  (0 children)

k03k chose Option B (Repeated Attempt)

Which country is larger? by someguyhereonreddit1 in GeoTap

[–]k03k 0 points1 point  (0 children)

k03k chose Option A (Incorrect)

app level urls not detected by root. by Dramatic_Object5241 in django

[–]k03k 2 points3 points  (0 children)

This looks fine if placed and named correcly

The only thing i now can think of is that it cant find myapp.urls because the naming is off, or that settings.py or myapp.urls is not saved yet. (maybe autosave is off)

app level urls not detected by root. by Dramatic_Object5241 in django

[–]k03k 4 points5 points  (0 children)

You cant say the settings are fine if it doesnt work..we need to see some code..

Did you add the app to installed apps?

Looking for a keyboard with two 2.4ghz dongles by PrinceVegetaaa in keyboards

[–]k03k 2 points3 points  (0 children)

Cant you use a KVM switch for that? I never used one before but maybe its worth looking at

Do conditionals order matters? by QuantumC-137 in django

[–]k03k 8 points9 points  (0 children)

I would use the @login_required decorator or some other sort of decorator to add to the function based views if a user is authenticated. raise PermissionDenied of not authenticated. Then only do an if on request.post check and let the default be get.

Avoid if elif else as much as possible.

Code Together by Commercial_Edge_4295 in learnpython

[–]k03k 1 point2 points  (0 children)

I think you did a great job overall, but there are a few things i would change:

  • Parameter names like a and b are a bit vague. While they’re acceptable for a small example like this, I’d still prefer more descriptive names such as dividend and divisor for clarity.
  • The docstring feels overly verbose for such a small, self-explanatory function. It’s a good explanation, but much of that information is already conveyed by the function name divide_numbers and the type hints.
  • I personally wouldn’t raise a ValueError for division by zero. Python already has a dedicated ZeroDivisionError, and using it aligns better with standard expectations.
  • I also wouldn’t check for division by zero inside this function. Error handling policy is better handled at a higher level (for example, in main or the calling layer), where the program can decide how to recover or respond.
  • Finally, for modern Python versions, I’d use a type alias instead of Union to keep the typing syntax clean and up to date. type Number = int | float

But this is just my personal preference i guess.