Codeamin

@codeamin.bsky.social

write code

I'm such a C# shill but, any time I hear someone say "the garbage collector slows things down too much" I feel like they're not aware of just how many tools you have to avoid heap allocations it seems to me whatever work that entails, it's almost always less work than using an unmanaged language

C# code that reads:
Span<float2> points = stackalloc float2[3] {
	Mathfs.AngToDir( 0 ),
	Mathfs.AngToDir( Mathfs.TAU / 3 ),
	Mathfs.AngToDir( 2 * Mathfs.TAU / 3 )
};

foreach( float2 p in points ) {
	// ...
}

Excited to spotlight Laravel Passport in my Laravel Spotlight series this Saturday at 3:30 PM UTC! 🔴 Joining me: Hafez Divandari for a deep dive on OAuth2 made simple—from fundamentals, API/SPA auth, PATs, to the ultimate Sanctum vs Passport showdown. 💥 Don't miss it—Link in comments! 🎥

Bild

Testing in Laravel 12.28 just got faster. 🧪 You can now cache your routes and config once per test run, instead of rebuilding them for every test. 💪 A nice performance boost for apps with lots of routes or heavy config. ⚡ Works in both PHPUnit & Pest.

Bild

📜 𝑆𝑐𝑟𝑜𝑙𝑙𝑉𝑖𝑒𝑤 𝑠𝑛𝑎𝑝𝑝𝑖𝑛𝑔 𝑖𝑛 𝑆𝑤𝑖𝑓𝑡𝑈𝐼 by Natalia Panferova (@natpanferova.bsky.social) Want your scrolling to snap perfectly to pages or specific views? This guide explores SwiftUI's 𝑠𝑐𝑟𝑜𝑙𝑙𝑇𝑎𝑟𝑔𝑒𝑡𝐵𝑒ℎ𝑎𝑣𝑖𝑜𝑟 and 𝑠𝑐𝑟𝑜𝑙𝑙𝑇𝑎𝑟𝑔𝑒𝑡𝐿𝑎𝑦𝑜𝑢𝑡 APIs for precise control. #SwiftUI nilcoalescing.com/blog/ScrollV...

ScrollView snapping in SwiftUI

Explore SwiftUI APIs for customizing scroll behavior, including paging and view-aligned snapping, and learn what to watch out for to avoid unexpected results.

nilcoalescing.com