this post was submitted on 21 Dec 2024
77 points (94.3% liked)
Fun Loops ▶️
633 readers
227 users here now
Posting interesting/cool/funny videos from Loops here
Thanks to @[email protected] for the icon and banner!
Discussion of and questions about Loops should go over in [email protected]
If the loop you're posting isn't original content uploaded by the creator, prefix the title with ♻️
or [R]
(if you don't feel like typing an emoji) for "reposted". For example, ♻️ Cute dog
or [R] Cute dog
.
Note that some loopers upload their loops to multiple platforms including Loops, so you might see insta/tiktok logos on videos that aren't marked as reposts.
If you know the source for a loop marked ♻️
/[R]
, please comment with it!
Rules:
- Don't be a dick
- Don't make me add more rules
founded 3 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't get this. Who cares if they forgot or just didn't know the better solution? They were able to solve the problem under pressure, even if not in the most optimal way. They even remembered to handle the negative case, which is straight up a good sign (no pun intended). And while it's slow, it would honestly still be fine to use in production anywhere you'd use typescript, as long as it's not in a hot spot.
In my mind this tells me approximately as much about the programmer as if they wrote it using modulo.
It's really just not a good solution. It's more complex, it's way slower, it shows they're not familiar with stuff they really should be familiar with.
Anyone who struggles to write a function to determine evenness of a number, and has to throw in some crazy solution to be able to make it across the finish line, is going to really struggle with real production code. They're going to produce stuff that's going to make everyone's job a lot more difficult.
You can come up with unusual solutions and it can be fine. You can't come up with cockamamie solutions, that's why you're doing the test.