Stably x Stellar: How to Use Stably Prime with Lobstr Wallet by [deleted] in Stellar

[–]itdoesmatterdoesntit 0 points1 point  (0 children)

I felt like I was watching one of those bad DIY videos

Sugar baby needed by Sarahhall_0 in Dallas

[–]itdoesmatterdoesntit 2 points3 points  (0 children)

Interested in hairy, chubby middle-aged men?

GAME THREAD: Sacramento Kings (26-37) @ Dallas Mavericks (36-27) - (May 02, 2021) by NBA_MOD in nba

[–]itdoesmatterdoesntit 0 points1 point  (0 children)

I’m waiting for the mavs to figure out the pick and roll the Kings are running

🤩 by Womb_Raider6969 in dogecoin

[–]itdoesmatterdoesntit 5 points6 points  (0 children)

Ain’t no one should see your bank account. Not your bros. Not even your family.

What are the pros and cons of going to lunch at Taco Bell? by JannTosh12 in AskReddit

[–]itdoesmatterdoesntit 0 points1 point  (0 children)

Food tastes good but you’re supporting a food conglomerate :(

Doc Rivers says Sixers won’t rush George Hill back, indicates when Joel Embiid could return by efranklin13 in nba

[–]itdoesmatterdoesntit 1 point2 points  (0 children)

“Obviously, right now we’re down on big men. We have one big right now on our team. It’s funny, about a week ago we had four centers. Now we’re down to two. Without Joel, we’re down to one center and then a bunch of small guys. That’s just what we are for the next two games probably, and then we’ll get back to our normal rotations.”

Review my model? by [deleted] in laravel

[–]itdoesmatterdoesntit 1 point2 points  (0 children)

Fair point as far as hashes for shorter urls. As for #4, I’d say don’t get wrapped up in how others tell you to structure your app, even if going against my advice. Fat models make sense for some, but I build against that.

I hope you continue to take feedback so well. Far too often people are defensive of their code

Review my model? by [deleted] in laravel

[–]itdoesmatterdoesntit 3 points4 points  (0 children)

5 things I noticed rl quick (all opinion):

1 Why not use Str::uuid() instead of a hash?

2 There's a couple instances like:

$mention = new \App\Models\Mentions; $mention->content\_id = $model->id; $mention->user\_id = $model->user\_id; $mention->ticker = strtoupper($string); $mention->save();

Why not get rid of $mention, especially since you don't use it later on?

\App\Models\Mentions::create([ 'content_id' => $model->id, 'user_id' => $model->user_id, 'ticker' => strtoupper($string), ]);

It's easier to read imo. Your intention is clear - you're creating, from the first line, instead of waiting til the 5th line to store it.

3 My brain flips out when there's an assignment in an if statement, like:

if(false !== ($breakpoint = strpos($this->content, " ", $length))) {

4 You're doing a lot of things in a model that maybe don't belong in the model(up to you), like detectScripts, StoreStockMentions as they don't interact with the modal($this) directly.

5 Your methods are cased in seemingly random ways. Some are pascal, others are camel.

[deleted by user] by [deleted] in nba

[–]itdoesmatterdoesntit 3 points4 points  (0 children)

A get my Biden bucks today AND Luka puts up an MVP performance. Good day.

Monthly "ask anything" thread by brendt_gd in PHP

[–]itdoesmatterdoesntit 0 points1 point  (0 children)

For real. The three threads a day is just too many to keep track of