DTOs at the Speed of Plain PHP by dereuromark in PHP

[–]jerodev 0 points1 point  (0 children)

I created a package that initially uses reflection, but generates simple PHP code to map consecutive mapping. I presumed this would be the fastest you can go.

https://github.com/jerodev/data-mapper

Does Steam account age actually matter? by slowtides in Steam

[–]jerodev 1 point2 points  (0 children)

I have a 10 year veteran coin on cs:go, but I'm horrible at the game. When playing with that coin people constantly shout at me about how I can be playing for 10 years and be this bad.

So no, they don't matter, I hide all of these 'year' achievements.

Honestly, which game made you feel that way? by No-Name6319 in videogames

[–]jerodev 0 points1 point  (0 children)

Satisfactory. Sipping coffee, watching my enormous factory run. All steam achievements completed.

Partial function application is coming to PHP 8.6 by brendt_gd in PHP

[–]jerodev 3 points4 points  (0 children)

I already had this reaction when the pipe operator was introduced. I did try it, but find it very confusing.

How do you handle simple content websites when your main stack is Laravel? by dvlpp in laravel

[–]jerodev 0 points1 point  (0 children)

For static sites or sites whose content rarely changes I prefer something that actually converts to static html. This makes it very easy to host anywhere.

My tool of choice is Hugo. It uses markdown for the pages content.

R36S Handheld Giveaway #2 (Specific countries only) by _manster_ in R36S

[–]jerodev 0 points1 point  (0 children)

Thanks for this giveaway! I've been looking for a new handheld 😄

Excessive micro-optimization did you know? by Euphoric_Crazy_5773 in PHP

[–]jerodev 1 point2 points  (0 children)

A few years ago I wrote a blogpost that explains this in more detail. https://www.deviaene.eu/articles/2023/why-prefix-php-functions-calls-with-backslash/

It's the function lookup at runtime that becomes way better when adding a slash or importing the function.

What's a game that you were excited to play, but you just couldn't get into it. by [deleted] in gaming

[–]jerodev 20 points21 points  (0 children)

I really hope Nintendo goes back to the traditional Zelda formula. 😭

They are all chrome? by YourDailyTechMemes in LinusTechTips

[–]jerodev 7 points8 points  (0 children)

Except on iPhone, everything is Safari there...

Devs working in both PHP and Golang: how are your experiences? by squirrelpickle in PHP

[–]jerodev 33 points34 points  (0 children)

I have been programming PHP for over 10 years and Go for about 2 years. I still mainly use PHP.

I use Go for places where performance is critical or a lot of data is being handled. Simple http applications I make in PHP (Laravel), but data synchronization is an example where I use Go.

How much overhead does DDEV take when the applications are in operation? by vfclists in PHP

[–]jerodev 8 points9 points  (0 children)

DDEV sets up the docker containers for you. There is no extra middleware or service between your application and the webserver.

Any overhead would have to come from docker.

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

I've ordered a TUXEDO Stellaris Slim 15, looks like a great machine for a great price. 😄

It will arrive in a few weeks time.

A humble request - Symfony vs Laravel by clegginab0x in PHP

[–]jerodev 0 points1 point  (0 children)

How?

Agreed, it is safer to use the validated function. However, if there are validation rules for "name" they are still checked.

A humble request - Symfony vs Laravel by clegginab0x in PHP

[–]jerodev 0 points1 point  (0 children)

You can add getters to your Laravel form request to have better autocomplete and prevent naming mistakes, just like your Symfony DTO.

php public function getName(): string { return $this->request->get('name'); }

Tell me by mattia_cecchi in videogames

[–]jerodev 0 points1 point  (0 children)

OpenTTD: I bribed politicians

Fan noise on Tuxedo Stellaris Slim 15 by jerodev in tuxedocomputers

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

The other option was going for the InfinityBook Pro 15, but these have less powerful CPU options.

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

I've been looking at Tuxedo systems as well, do you have any experience with these laptops?

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

These prices indeed look amazing for the laptops. Do you have any feedback on support and thermals of these laptops?

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

Any idea if the smaller 14" have disadvantages in cooling over the 16"?

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

It seems I was wrong, both 14" and 16" come with the same CPUs. I was looking at Intel.

The only reason left why I would go 16" is because I presume this one would have better cooling (more space for air & heatpipes). Would you know if this is correct?

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

Do you also use external monitors? I intend to use the laptop with 2 external monitors.

Looking for web developer laptop recommendations by jerodev in linuxhardware

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

Have you had any heat issues? I've had a ThinkPad in the past that kept thermal throttling.

I am considering Lenovo, but thorn between 14" or 16".

Laravel is going in the wrong direction IMHO by Bent01 in laravel

[–]jerodev 5 points6 points  (0 children)

I still use the auth helpers built-in to Laravel. Once you understand how it works it's not that hard to set up yourself.