Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@scott.keck-warren.comNov 7, 2026, 12:01 PM

#PHP tip: before you cast a legacy status column to an enum, find the values that won't fit.

from() throws a ValueError on "Publishd", but tryFrom() returns null so you can clean up first.

#Laravel #PHP #Enums

Laravel code: query distinct status values from the episodes table and filter the ones State::tryFrom() returns null for.
@dotnetdave.bsky.socialOct 20, 2026, 7:52 PM

Not all Enum name retrieval methods riff at the same speed.
If you’re still using the usual approach without thinking about the cost, this one’s for you.
Turn it up here!
#dotnet #MVPBuzz #Enums #CodePerformance
dotnettips.com/2024/05/01/g...

dotnettips.comGeneral Performance: Optimizing Enum Value Name RetrievalThe article delves into the optimization of Enum value name retrieval in .NET, comparing three approaches. It demonstrates that one of these methods is 13.3 times more efficient, with no memory all…