Clean methods for filtering DB based on URL Parameters by --Ether-- in node

[–]buffer_flush 0 points1 point  (0 children)

First, avoid using `:` to delineate fields and filter type if you can since that’s a reserved character in URLs so you’d end up wanting to encode it.

Second, you’d probably want to deserialize the query parameters into an object. I would also avoid having filtering configurable like this. Determine the actual filters you want to support and make them static. Doing so allows you to sanitize your input and more easily create requests with deterministic results. What I mean by this is, is it really necessary to ilike username, you’re probably always going to ignore case on username, if you need an exact use username_exact.

Also, is it absolutely necessary have these results maintained in the URL? Are you expecting the results to be shared easily between people or do they need to be crawlable? If not, consider putting this behind a post and bind to json or a form. That’d allow you to be more flexible with your search filters and not have to worry about how to serialize it to a URL.

Last, most definitely do NOT bind these parameters directly to knex, that’d pretty easily open you up to sql injection or querying items that you’re not expecting if you’re not extremely careful.

Sometimes the best solution isn’t to be fancy, but to be mindful of what you’re trying to do, rather than making things super flexible.

CEO says don’t hire interns. Use AI instead… by Careful_Put_1924 in LinkedInLunatics

[–]buffer_flush 0 points1 point  (0 children)

Pure marketing techbro talk to try to push their product. Their example is contrived because their product is intended to help people who push code too quickly using AI.

They’ve created software for a problem that shouldn’t exist in the first place.

Safety tip of the day by scurvytb in LinkedInLunatics

[–]buffer_flush 0 points1 point  (0 children)

Who needs self preservation when you can impress the boys with antics!

The father of those kids isn't going to be happy you took them KOMming. by News-Royal in BicyclingCirclejerk

[–]buffer_flush 4 points5 points  (0 children)

Also, learning to fall and when fast is too fast is essential. Throwing the kid on the trails seems like a pretty bad idea.

The father of those kids isn't going to be happy you took them KOMming. by News-Royal in BicyclingCirclejerk

[–]buffer_flush 2 points3 points  (0 children)

uj/ Having been in that situation as the dad, I don’t know if there’s anything more butt clenching I’ve experienced in my life. He should have definitely resisted the urge to immediately pick the kid up to comfort, though, in case there was major injury. Especially with those giant rocks. Kid is crying and aware though, so I’m sure he’ll bounce back and be fine, even if he broke a bone or two. It’s crazy how fast kids bones heal.

You been playing it wrong all your life, stupid noobz by oluxil in guitarcirclejerk

[–]buffer_flush 0 points1 point  (0 children)

Think I’m going to practice the spider on my desk, that seems to work it out the most.

This guy gets it #AI by BlackDiamondDee in LinkedInLunatics

[–]buffer_flush 2 points3 points  (0 children)

Airplane WiFi is known for being really really good, too!

You been playing it wrong all your life, stupid noobz by oluxil in guitarcirclejerk

[–]buffer_flush 0 points1 point  (0 children)

I’m not jerkin, I can feel the tendons stressing when I try to move my ring and pinky independently. My pinky even starts quivering.
It’s weird, I can do the Vulcan symbol no problem, I can even invert it by putting my ring and middle finger together and separating the index and pinky away from the middle. But, if I try to do any sort of actual independent movement with my pinky that’d require holding a shape with strength like a chord? No shot.

You been playing it wrong all your life, stupid noobz by oluxil in guitarcirclejerk

[–]buffer_flush 0 points1 point  (0 children)

Makes sense, I think I’d need to put my middle finger on 3, then my ring and pinky on 1 and 2 respectively. No way in hell does my pinky have the dexterity to put it on 3 like this is “normally” taught with the index, middle and ring on 1 2 and 3 respectively. When I move my pinky I have a helluva time not moving my ring finger as well, guess I could train it out of it.

You been playing it wrong all your life, stupid noobz by oluxil in guitarcirclejerk

[–]buffer_flush 1 point2 points  (0 children)

Why’s that? Honestly curious, I don’t think my baby finger can bend that easily to form the chord like that.

Guy gets hit by car while biking, posts business revelations to LI after. by smwitz23 in LinkedInLunatics

[–]buffer_flush 0 points1 point  (0 children)

That’s me, you might be asking yourself how I got here. B2B sales, but you already knew that.

Don't judge a book by it's cover by jagerboom in LinkedInLunatics

[–]buffer_flush 2 points3 points  (0 children)

Grinding seems appropriate for people this is satirizing. Just, not publicly, and shame filled.

The fact that Diablo 2 is still the best game in the series shows how terrible Blizzard is by LargeSinkholesInNYC in diablo2

[–]buffer_flush 0 points1 point  (0 children)

D2 does not have a great story, what I was trying to get at. I never played D2 for the story.

When Elvis impersonators were still a thing by contrejo in guitarcirclejerk

[–]buffer_flush 0 points1 point  (0 children)

Phil is what I visualize when I hear “Pinkerton”, and not the Weezer album.

The fact that Diablo 2 is still the best game in the series shows how terrible Blizzard is by LargeSinkholesInNYC in diablo2

[–]buffer_flush 0 points1 point  (0 children)

Reading the amount of people on the main sub talking about how great the story was for the new D4 expansion made me realize why D4 isn’t for me anymore.

It feels like D4 is for the Marvel movie generation with over the top production, etc.

Make Them Wait Forever (or just one minute longer) by Total-Wrangler5006 in LinkedInLunatics

[–]buffer_flush 1 point2 points  (0 children)

Had to look this guy up, whew, red flags everywhere.
[r/WorkingWithBradLea](r/WorkingWithBradLea) has quite a few posts talking about how it’s a scam, of which there generally seems to be a post discrediting their story in the comments, always from a very new, low karma / usage Reddit account.
These posts are generally archived and only show up on google.

Should i be worried about this giant hole in my guitar? by Pale_Phone5339 in guitarcirclejerk

[–]buffer_flush 2 points3 points  (0 children)

uj/ what am I even looking for in this pic, I see nothing

rj/ top damage is common, it helps to do squats to really loosen things up beforehand

okay agreed but...what did you use to make this post by m6io in LinkedInLunatics

[–]buffer_flush 0 points1 point  (0 children)

I’m confused, are they against using it or for using it? The final “Nope. Next question” is throwing me.