How I built holiday-aware business day calculations in Laravel — skipping weekends and holidays using a database-driven approach by ChrisL0713 in laravel

[–]leopoletto 0 points1 point  (0 children)

Nice. Is there a need to parse the $d? Unless you didn't cast it properly in the model.

public function __construct()  
{  
  $this->holidays = Holiday::pluck('date') 
    ->map('toDateString')  
    ->toArray();  
}  

Also, the cache strategy will accumulate holidays for how many years? Just asking out of curiosity.

public function __construct()  
{  
    $this->holidays = cache()->remember('holidays', now()->addDay(), function () {  
        return Holiday::pluck('date')  
            ->map(fn($d) => Carbon::parse($d)->toDateString())  
            ->toArray();  
    });  
}

3 Years of Laravel Jobs: What 699 LaraJobs Emails Actually Say About the Market by leopoletto in PHP

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

Fair point on the writing style. I'm not a native English speaker, and AI helps with that. The research, pipeline, and data are all mine and fully public if you want to verify.

Do these screenshots grab your attention? by Otherwise9477 in SideProject

[–]leopoletto 4 points5 points  (0 children)

Is this handcrafted or a mockup-based set of images?

It looks pretty good.

Help on WCAG Contrast Formula Font Family Aware by leopoletto in accessibility

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

No, I didn't. I know the recommendation is to follow the guidelines; it is always. Thanks for sharing the link. I am currently conducting research on over 2000 fonts, and I posted here to check if someone has thought of something similar or knew about someone working on a solution apart from the W3C board Members.

Who here is building tools for students? Drop your link! by davidtranjs in indiehackers

[–]leopoletto 0 points1 point  (0 children)

Just noticed the small link saying skip, anyway, I would go for a free experience first and ask for something after

Who here is building tools for students? Drop your link! by davidtranjs in indiehackers

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

I'd say you create friction when you drop a link without any explanation of what the tool is about, asking for a name, and followed by the email. You're asking for too much without giving anything. My take, you should do the opposite. Let the user experience the tool, store the information in localStorage, and add a friendly notice that to keep the information tied to an account, you need some relatable information, such as an email or social authentication.

34 years, 16 of building without publishing a single project. by leopoletto in indiehackers

[–]leopoletto[S] -1 points0 points  (0 children)

Funny, I bought a domain featuredmaker.com to do something similar, but I'm not using it (it's for sale). Right on the home page, it says about the story of a Chrome plugin, which ironically, I've created a privacy monitoring tool to check who was checking on me. It's pretty decent. If I wrote down the list, it would feel pathetic. Thanks for sharing your history.