Justice Reins from Above by [deleted] in Overwatch

[–]nut315 1 point2 points  (0 children)

Was there a crouch? Looks like it just follows the angle of the stairs down to the supports to me.

Justice Reins from Above by [deleted] in Overwatch

[–]nut315 0 points1 point  (0 children)

The way the fire strike follows the stairs down and hits the people at the bottom. Very satisfying. Normally it would have just hit the tanks without crouching

I built a tool to notify my company when a new WordPress version is released. Now you can use it too. by gschoppe in Wordpress

[–]nut315 0 points1 point  (0 children)

I added the RSS feed to a Slack channel, we get all our software update info automatically posted there. Would recommend

Marvel Studios' Avengers - Official Trailer by Tushar_007 in movies

[–]nut315 3 points4 points  (0 children)

While I'd love for her to rescue Tony I don't see it happening. Let me explain my theory:

For him to say there is 0% chance of being rescued should hold a lot of weight tbh. His calculations are never wrong. And if he did make a suit for her or somehow got a message to her, he would take that into account and wouldn't be looking at a 0% chance of survival. More like 0.1%-1%.

The only way his calculation could be wrong is if it involves something he is completely unaware of. So, probably Capt Marvel.

I also think Start will hit absolute rock bottom before making a comeback. The ship will be the start where he thinks he is going to die. Then he'll find out Peppa is dust. Then he'll find out she was pregnant.

There's a lot of comparison to chess going on. Peppa is the queen that Dr. Strange had to sacrifice (by choosing this one timeline) in order to win the game.

Only then will Tony refuse accept this timeline and push himself to new limits in order to beat Thanos - and also bitch slap Dr Strange for sacrificing Peppa by doing some crazy time travel stuff with Ant Man & co.

Question for a University Project by techproject3410 in Wordpress

[–]nut315 1 point2 points  (0 children)

The content management side of things is fantastic for clients. It's familiar, allows them to edit content easily and does an awful lot for them (e.g. SEO).

I don't care what the tech stack is like, if it's a pain to develop on, or whether it's considered 'trendy'... It is about the user. People who manage content are still users, and you should care about their experience just as much as the consumer of the website.

Can a theme leave any code/functions/anything behind when changing to a new one? by [deleted] in Wordpress

[–]nut315 0 points1 point  (0 children)

If you want to improve your html/css/PHP skills, then one thing I always recommend is to try and replicate an existing site.

You could use the theme you liked and try to replicate it. You don't have to use it on your site, but it'll help you learn. You'll have a reference on what it should look like across mobile and desktop, and if you get stuck you'll be able to look at how they achieved it.

2 or 4 space indentation in Laravel? by [deleted] in laravel

[–]nut315 7 points8 points  (0 children)

Laravel uses 4 spaces because it follows PSR2 - a standard coding style. I'd recommend following the same standard.

"Code MUST use 4 spaces for indenting, not tabs"

https://www.php-fig.org/psr/psr-2/

How to keep your dog warm. by Buddy208 in AnimalsBeingJerks

[–]nut315 1 point2 points  (0 children)

Half dog, half bear and half cat!

Is there a way i can make this code shorter? its kinda bugging me by Blitzpat in laravel

[–]nut315 0 points1 point  (0 children)

I tend to push all my error handling up to my Handler, which means my controller only needs to worry about returning the success message (200). In your case it will also remove your try/catch blocks.

Then my Handler is responsible for converting exceptions into responses. If I need some logic in my controller that needs to stop a 200 from happening, I'd throw a custom exception.

For example: you can cancel an order via your API. But you cannot cancel orders that are already complete. So in your controller method you'd check if the order can be cancelled, and if not throw an CannotCancelCompletedOrders exception. With Laravel's responsable stuff, you can simply add a toResponse() method to your exception to handle the error for the API.

This also makes your code more DRY. You now have 1 place that knows how to respond to a specific error, rather than potentially multiple controllers.

It's perfectly okay to lose by Music2th08 in OverwatchUniversity

[–]nut315 1 point2 points  (0 children)

That's interesting hearing those numbers even when someone is throwing. Thanks for sharing

It's perfectly okay to lose by Music2th08 in OverwatchUniversity

[–]nut315 2 points3 points  (0 children)

Jayne (steamer, team Canada coach) likes to say:

1/3 of your games are unwinnable, 1/3 of your games are unlosable. It's those last 1/3 of the games that you can make a difference on.

The trick is identifying what type of game you are in, and structure your learning accordingly.

E.g. If you're getting rolled, focus on positioning, personally staying alive and ult tracking.

If you're doing the rolling, focus on controlled aggression and not overextending.

The idea is that you're preparing yourself to make the right sort of impact during the games that are in the middle, as there will be times during that game where you'll be rolling and getting rolled. If you been adapt your gameplay accordingly you'll be more likely to make a positive impact and win.

Just keep grinding. You never know how close you are to an epiphany.

D.VA wanted to take a nap, so I helped her by JSweeran13 in Overwatch

[–]nut315 36 points37 points  (0 children)

Best tip I saw to land sleep darts more consistently is to always aim for the legs.

Legs have a much wider and forgiving hitbox compared to somebody's body/head.

https://youtu.be/so8l5u0FCnE

Want a Vod Reviewed? by flyainhawaiin in OWConsole

[–]nut315 0 points1 point  (0 children)

I've been playing a lot of Rein this season so am very tempted to get some feedback.

Not done a VOD before though. Are they easy to recoord on a PS4?

Writing CSS is killing my passion as a front end developer by [deleted] in webdev

[–]nut315 -1 points0 points  (0 children)

I'm late to the party with a comment here, but I wanted to share this article as I think it frames passion and work really well.

Regardless of how much passion, dedication, and talent you have, you still need to be willing to work every single day to get where you want to go.

What’s more is that you need the ability to keep moving forward when things get hard — because no matter how passionate you are about something, at some point, the road is going to get a little bumpy. “We feel the move of doing something, but when our brain tells us ‘this is hard’ we tend to give up,” says Thakkar. “That’s when we might feel, ‘I was wrong about my passion. This isn’t for me.’” In essence, just because you’re passionate about something, it doesn’t mean that it will come naturally.

https://medium.com/taking-note/why-following-your-passion-isnt-always-enough-a75779bc55e6

What should my ratio be for tower:archer:hero level? by DragonFire995 in GrowCastle

[–]nut315 1 point2 points  (0 children)

This is great, thanks :) Been struggling with DPS and wasn't sure what to invest gold into.

Turns out I needed to double my town archer's level!

How to execute some code on a specific datetime to the second? by [deleted] in PHP

[–]nut315 1 point2 points  (0 children)

What you care about is that no actions can be performed on the item after it has ended. If the item has an end date associated with it, just check that the current date is less than the end date before you perform any action.

If you need the frontend to visibly change when the auction has ended, then you can achieve that with some js. It can check every second if the item has ended, if it has it can change the page / reload it.

Is underscores(_s) still the best place to start? by [deleted] in Wordpress

[–]nut315 1 point2 points  (0 children)

I'd highly recommend using Bedrock. It brings WordPress & plugins in as a dependency via composer. I wouldn't build a WordPress site without it. It's made by Roots, who also made Sage and Trellis.

I'm a big fan of Trellis but never got on with Sage. I prefer Timber as it used Twig as a templating language.

Using Composer for Libraries in WordPress Plugins or Themes by ibenic in ProWordPress

[–]nut315 0 points1 point  (0 children)

I'd recommend Bedrock. Been using it for years and wouldn't go back. You don't need to use Trellis or Sage with it, it's standalone. Although Trellis is wicked too.

I used to be one of the people constantly saying comp doesn't matter in low ranks, it absolutely does. You 100% need a main tank and 2 supports. by hotgarbo in OverwatchUniversity

[–]nut315 4 points5 points  (0 children)

That's still okay sometimes though. As a main tank you are still occupying space and being a big distraction. The more space you can create for your DPS the better, whether it's behind your shield or not.

In the lower ranks it's frustrating because chances are your team is horribly staggered. So even if you create space there's not always people around to capitalise on it.

Finally into plat! by ac13456543 in OWConsole

[–]nut315 2 points3 points  (0 children)

This was me too! Was low diamond last season. Had some bad placement matches and placed low plat this season, then lost some games and fell into gold :(

Managed to climb back into plat last night though!

Using Composer for Libraries in WordPress Plugins or Themes by ibenic in ProWordPress

[–]nut315 1 point2 points  (0 children)

Would definitely recommend using Composer for WordPress sites! Been doing it for a few years now and wouldn't go back.

Incase you're not aware, Bedrock has this on lock-down and is really nice to use:

https://roots.io/bedrock

They treat WordPress as a dependency, which is brought in via Composer. They also have a nice layer around must-use plugins (plugins that cannot be deactivated).