Why you should try Go as a PHP Developer

preview_player
Показать описание
This is an introductory presentation about Go, I held at my company.
Рекомендации по теме
Комментарии
Автор

I just wanted to let you know this was one of the most wonderfully motivating videos on learning Go from a Laravel background I have seen. Thank you for your work on this!!

DavidThorpe
Автор

Really great presentation - It explains in a simple way how easy and performant Golang is!

dusan-minic
Автор

I hate to be "that guy, " but it's "safe programming, " not "save programming." Great presentation! You get right to the heart of the issues and explain the differences extremely well.

td
Автор

This is great! I have php background and was looking for a Go introduction video

yal
Автор

This video is totally biased. I love Go, I love PHP. But many information regarding PHP are outdated or simply wrong. Some examples: You can run PHP without Nginx or Apache - and basically let PHP create the HTTP server itself -by using Swoole or Roadrunner. Personally I prefer this for my own projects - but there there are still reasons to not do this (memory leaks). The UserDTO example is just boilerplate because it was implemented this way. In PHP, too, you could get totally rid of the constructor and just use public types properties - then it would be equivalent to the Golang example. Alternatively - if you want to have a constructor - you could use constructor promotion so you don't have to redeclare the properties twice. Golang has no constructors - usually you implement New* methods for your structs - but this was not done in the example. If so it would be more boilerplatey again. It's nice that Go has it's own formatter - but for PHP there's the FriendsOfPHP PHPCS Fixer (and others) which is easy to configure and quite nice. If you want stricter checks (like for unused variables) that's easily doable with PHPStan (and others). Yes, they are third party. But they are existing for years and so mainstream in the PHP ecosystem that it doesn't matter that much. Is Golang faster? For sure! But for bigger projects you will see that the performance of the programming language doesn't matter that much - but instead IO (database/API/file access etc.). There's more but I just want to say: If you like to learn PHP or Go have a quick look at both. They both have their strengths and weaknesses.

christiankilb
Автор

Thank you, this basically assured me of all the reasons I as a beginner left PHP a decade ago and am now testing Go.

Btw i'm trying to enable my mic but you guys aren't listening for some reason.

enkiimuto
Автор

Simply the best intro into the go. I will try it ou!

helloworld
Автор

Very nice explanation for starters!
Thanks!

davida.
Автор

Thanks for sharing your presentation! I really liked the content! I watched it on 2x playback speed as you where already mentioning on reddit that you'd talk slow. :-)

maverickv
Автор

How did you create this presentation and how are you running the code from this.
Is this tool available online or you have created it as I see it is running in localhost (probably).

KAUSHALDOKANIA
Автор

So, correct me if I'm wrong and I'm just talking about language structure here... GoLang makes Javascript fast and readable by implementing the best parts of Pascal and/or Modula-3? Color me thrilled. 🍸👍 I'm wondering if Anders was somehow involved in this...

carlfranz
Автор

Go is so refreshing, a lot of the time people over complicate things and pretend that it is "elegant", go goes in the other direction and takes a huge weight of your shoulders.

firehandszarb
Автор

Great presentation u should make it public

mohammedsalman
Автор

so not using php framework is far away faster than using Laravel, CodeIgniter or other php framework?
that I used to be...

but 2 weeks after, I started Go lang but unfortunately I cannot easily adapt, :(

empaguia
Автор

I try to run for loop with 1, 000, 000 loops from php and Go lang...

you know what, Go lang finished it first within 1 minute, why php it tooks more than 2 minutes... and I let PHP to run first'

empaguia