@jclermont@phpc.social
@jclermont@phpc.social avatar

jclermont

@jclermont@phpc.social

Organizer of Milwaukee PHP. Co-host of No Compromises #podcast. Helping #PHP and #Laravel developers level up their skills.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jclermont, to php
@jclermont@phpc.social avatar

As always, I'm pretty non-committal, but @aaronsaray has a definite opinion on the topic of final classes in #PHP. And, as always, we keep the podcast to 15 minutes or less. https://show.nocompromises.io/episodes/when-should-you-use-final-classes-or-private-properties

video/mp4

jclermont, to Laravel
@jclermont@phpc.social avatar

Today's tip is more of a thought experiment: What if every Composer package had a fee? Would it change how many packages you pull into your projects? #laravel #php https://masteringlaravel.io/daily/2023-09-08-what-if-every-composer-package-had-a-fee

jclermont, to php
@jclermont@phpc.social avatar

Here's why we like to cache routes and views in CI, just like we do in production. It brings benefits other than performance. #php #laravel https://masteringlaravel.io/daily/2023-12-27-the-benefits-of-caching-in-ci

jclermont, to Laravel
@jclermont@phpc.social avatar

Don’t explicitly install dependencies if you don’t need to. https://masteringlaravel.io/daily/2023-09-04-dont-explicitly-install-dependencies

jclermont, to Laravel
@jclermont@phpc.social avatar

I love Eloquent! It's such a productivity boost and the code reads so nice. But every once in a while, I'll find a situation where the "non-Eloquent" way performs better. Today's tip shares one of these examples. https://masteringlaravel.io/daily/2023-08-14-sometimes-eloquent-can-make-a-query-slower

jclermont, to php
@jclermont@phpc.social avatar

Laravel recently added a password validation rule to more easily enforce a maximum length. Why would you ever want to limit the length of a password? Here's an explanation how it actually improves security. https://masteringlaravel.io/daily/2024-02-05-why-does-laravel-offer-a-max-password-length-validation-rule

jclermont, to random
@jclermont@phpc.social avatar

@grmpyprogrammer I just noticed you’ll be at Tek this year. Nice!

jclermont, to Laravel
@jclermont@phpc.social avatar

What if you need a value that's both random and unique? One approach is to weigh the odds and hope for the best, or... you could check out today's tip. https://masteringlaravel.io/daily/2023-08-18-generate-random-and-unique-values

jclermont, to php
@jclermont@phpc.social avatar

Why we don't use return types on controller actions, but we do like return types in general! #php #laravel https://masteringlaravel.io/daily/2023-12-13-why-we-dont-use-return-types-on-controller-actions

jclermont, to php
@jclermont@phpc.social avatar

Here's a fun gotcha I discovered the hard way: Routes can resolve differently depending on whether you've cached them or not. #php #laravel https://masteringlaravel.io/daily/2023-12-28-routes-resolve-differently-when-cached

jclermont, to php
@jclermont@phpc.social avatar

Ever import a big sql dump and feel impatient wondering how much time was left? Here's an easy way to monitor progress. #php #laravel https://masteringlaravel.io/daily/2024-03-18-monitoring-progress-of-a-big-database-import

jclermont, to php
@jclermont@phpc.social avatar

It's best practice to always use the config helper in our application code, except for one place: Don't use the config helper in config files.

Here's an explanation as to why. #php #laravel https://masteringlaravel.io/daily/2024-05-27-dont-use-the-config-helper-in-a-config-file

jclermont,
@jclermont@phpc.social avatar

@sarah Perhaps, but in practice the global function calling the app container has never caused any problems for me. And you definitely could inject the config repository where needed, it's just not conventional Laravel. I prefer sticking with conventions.

jclermont, to Laravel
@jclermont@phpc.social avatar

Traditional caching comes with its own set of complexities. Here's a simple way to eliminate multiple queries in a request with a basic PHP language feature instead. #laravel #php
https://masteringlaravel.io/daily/2023-10-18-a-simple-way-to-avoid-multiple-lookups-within-a-request

jclermont, to php
@jclermont@phpc.social avatar

How do you discover interesting new packages for your Laravel apps? #php #laravel https://masteringlaravel.io/daily/2024-05-20-how-do-you-discover-interesting-new-packages

jclermont,
@jclermont@phpc.social avatar

@grmpyprogrammer this is some 4-d chess right here 😂

jclermont, to php
@jclermont@phpc.social avatar

Here are some considerations if you need to clean up a big table, without taking production down or even making it slow. #php #laravel https://masteringlaravel.io/daily/2024-01-24-considerations-when-cleaning-up-a-big-table

jclermont, to Laravel
@jclermont@phpc.social avatar

Only need a small portion of the AWS SDK, and wish you could make it a lot smaller? It's easy to do with one small Composer config. https://masteringlaravel.io/daily/2023-10-03-make-aws-sdk-much-smaller

jclermont, to php
@jclermont@phpc.social avatar

I love how Laravel always has your back. Here's a super simple way to use factories with more than one relationship. #php #laravel https://masteringlaravel.io/daily/2024-01-01-using-factories-with-more-than-one-relationship

jclermont, to php
@jclermont@phpc.social avatar

I really enjoy consistency and patterns in my code. Here is my approach to organizing test methods within a Laravel feature test. #php #laravel https://masteringlaravel.io/daily/2024-02-21-consistent-test-organization

jclermont, to php
@jclermont@phpc.social avatar

Here's a quick write-up of why I avoid logic inside my tests #php #laravel https://masteringlaravel.io/daily/2024-05-14-avoid-logic-inside-your-test

jclermont, to php
@jclermont@phpc.social avatar

Ever run into a timeout from a Composer script in CI? Test coverage reports are a super common example for me.

Here's how to prevent that, along with a gotcha if you're calling scripts within scripts. #php #laravel https://masteringlaravel.io/daily/2024-05-21-disabling-composer-timeout-with-nested-scripts

jclermont, to php
@jclermont@phpc.social avatar
jclermont, to php
@jclermont@phpc.social avatar
jclermont, to php
@jclermont@phpc.social avatar

How do you test code you don't understand? We deal with this when joining legacy projects, but I recently found a novel solution involving fuzz testing. Super useful! https://masteringlaravel.io/daily/2024-05-31-how-do-you-test-code-you-dont-understand

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines