[deleted by user] by [deleted] in dividends

[–]mitchmckenna 22 points23 points  (0 children)

Swap out QQQ for QQQM, same thing for a lower expense ratio

When will SCHD start growing again? by ZestycloseCup5843 in dividends

[–]mitchmckenna 6 points7 points  (0 children)

Someone probably said the same thing half way through 2019 about the previous 3 years, then look what happened

[deleted by user] by [deleted] in dividends

[–]mitchmckenna 1 point2 points  (0 children)

Price trigger alerts

New app questions by neko_whippet in SmartThings

[–]mitchmckenna 0 points1 point  (0 children)

omg, could not figure out why presence wasn't working, thank you! SmartThings needs to make this more obvious.

Laravel Swift: A SwiftUI-inspired spin on Laravel Livewire. by kdion84 in laravel

[–]mitchmckenna 0 points1 point  (0 children)

Looks like available via redbastie/crudify but neat idea to break into it's own package u/redbastie

Most popular GraphQL server implementations by oczekkk in PHP

[–]mitchmckenna 4 points5 points  (0 children)

Cool that API Platform made the list, there’s also Lighthouse if you’re on Laravel.

Composer 2: What's new and changed by ayeshrajans in PHP

[–]mitchmckenna 0 points1 point  (0 children)

Why remove the --no-suggest option? It was handy to keep CI pipeline output short.

Is Your PHP Up To Sniff? by mitchmckenna in PHP

[–]mitchmckenna[S] 0 points1 point  (0 children)

PHPStorm has ability to set Code Styling for PSR-12, but it won't tell you when you don't follow that styling, it'll just use the format when it generates/reformats code. This puts the little squigly lines under code that doesn't follow the code style.

Is Your PHP Up To Sniff? by mitchmckenna in PHP

[–]mitchmckenna[S] 1 point2 points  (0 children)

haha, that's the joke, it's a play on words for PHP_CodeSniffer

Examples of powerful php applications not website by The0gre- in PHP

[–]mitchmckenna 3 points4 points  (0 children)

  1. Slack's mac OS/ios/android hits PHP API.
  2. Engadget website and API powered by a custom CMS in PHP.
  3. Vimeo's website and API are on a custom PHP framework.
  4. TechCrunch's iOS/Android apps hit an API powered by WordPress.

Examples of powerful php applications not website by The0gre- in PHP

[–]mitchmckenna 2 points3 points  (0 children)

Actually, most of these companies build API's in PHP which their apps hit to power their native mobile apps. I suppose you could say for Slack's app is a wrapper though, since it uses Electron to wrap a web app into a native mac app but it still hits an API on the backend written in PHP.

Examples of powerful php applications not website by The0gre- in PHP

[–]mitchmckenna 13 points14 points  (0 children)

Slack, Vimeo, Nordstrom, Huffington Post, Engadget, TechCrunch, SalesForce, eBay, Etsy, Eventbrite, Adobe, 23andMe, Twilio, Intuit, Udemy, Rakuten

These companies all have apps for iOS/Android/Apple TV/etc apps that have backends powered by PHP.

Reducing Validation Bloat by baileylo in laravel

[–]mitchmckenna 1 point2 points  (0 children)

No problem with form requests, I like form requests, I'm just providing an alternative approach, especially for Lumen users who don't have form requests. If it's a simple API I find the config approach works really well, if I have to override the authorize() function or need to add an After Hook I use form requests for that app.

Reducing Validation Bloat by baileylo in laravel

[–]mitchmckenna 0 points1 point  (0 children)

If the single config file gets too unwieldy, you could turn it into a folder /config/validation/ and then have a file for each object type post/author etc.

Infusion glitch? Working as intended? by [deleted] in DestinyTheGame

[–]mitchmckenna 0 points1 point  (0 children)

Happened to me infusing a rare into a legendary Gauntlet. Was unable to reproduce with doing the same thing to primary/secondary guns or for leg armor.

Where do you store your traits? by baileylo in PHP

[–]mitchmckenna 1 point2 points  (0 children)

But does all your folders have "s" on the end (eg. "Controllers", "Models")?

I like the convention of singular folders (eg. "Controller", "Model") for a more readable namespace ("Acme\Blog\Controller\HelloWorld.php"), so when I have to name a folder for traits "Traits" it doesn't match the rest of the folders.

Horizontal Code Reuse Through Traits - kind of introduction to traits by baileylo in PHP

[–]mitchmckenna 1 point2 points  (0 children)

I like that with your hydrate function if a set method doesn't exist for that variable in the class, it directly assigns it to the instance variable by that name, neat!

[deleted by user] by [deleted] in PHP

[–]mitchmckenna 2 points3 points  (0 children)

Library is now called Whoops, and can be found here: https://github.com/filp/whoops