Live data from Hacker News

“Hello, (real) world” in PHP in 2017

kukuruku.co

21–30 of 144 posts

Re: “Hello, (real) world” in PHP in 2017

#21

Call me old fashioned but I prefer my code naked, plain php and postgres, nothing else, not even JS. So for me, echo 'Hello world' is good enough.

Users overwhelmingly prefer some amount of client-side interaction, so how do you do that without JavaScript?

Re: “Hello, (real) world” in PHP in 2017

#24

A bit like the other submission on learning JS in 2016. I find that I am getting dragged down by complexity. Even simple tic tac toe game that I was planning to write in vanilla js took me via jQuery, npm, Firebase etc. Sure its production ready but I just wanted to write something for fun. Wasn't really fun.

We can't have fun anymore. Web dev is serious business.

No one even writes javascript anymore, they compile it from Haskell or whatever. That's how serious it is.

Re: “Hello, (real) world” in PHP in 2017

#25
Nailed it.

I love PHP and it's still my main language, but the reason so many projects never get completed is because of this. Really I should just accept that for an MVP, Laravel and a static front end with some old school jQuery where required is fine.

Re: “Hello, (real) world” in PHP in 2017

#26
post #18
post #4

Earlier quoted context omitted.

You do realise this article wasn't written as a beginner's tutorial but as a sarcastic view of modern web dev?

And where is the VM, the docker images, the swarm in the cloud to make HA and the right https configuration ?

I hope that VM is behind Elastic Beanstalk

Re: “Hello, (real) world” in PHP in 2017

#27

Nailed it. I love PHP and it's still my main language, but the reason so many projects never get completed is because of this. Really I should just accept that for an MVP, Laravel and a static front end with some old school jQuery where required is fine.

Sorry but if you love PHP and use as your main language, why you don't complete any sideproject ? I don't understand your statement.

Re: “Hello, (real) world” in PHP in 2017

#28

Maybe I am old fashioned and outdated. I don't know about anyone else, but it makes me pretty sad that the "modern" way as presented in this article is no longer simple and straightforward and has some severe dependency hell. Not that I'm saying the structure of modern web applications isn't needed and that we haven't advanced. Just that the overhead and knowledge required to set up a modern web application is crazy.…

> I am working on a larger .NET web application in my day job... and it requires things like.. Typescript + typings files, Webpack/Gulp/Grunt/etc. and therefore Node.js and NPM, NuGet, .NET Framework, onion architecture, front-end framework (Angular, or React, or..), Entity Framework, multiple databases, web services/web API, ASP.NET MVC.. I mean, it's just crazy if you step back and think about it.

All long as all the tools and pipelines work flawlessly it's painless.

As soon as something goes wrong, if you are not a specialist or have a deep understanding of the inner-working of all these it actually hinders productivity.

What if Webpack doesn't work as expected because you mis-configured it? what if there is a bug in AngularJS and you're not capable of fixing it yourself? What if Entity framework doesn't support a specific use case/feature of your DB?

While in a professional environment implementing the domain is already a lot of work and people want the rest to be coded fast by using ready-made solutions, each new component, framework should be carefully vetted, adding a new framework or library shouldn't become a reflex.

Re: “Hello, (real) world” in PHP in 2017

#29
post #27

Nailed it. I love PHP and it's still my main language, but the reason so many projects never get completed is because of this. Really I should just accept that for an MVP, Laravel and a static front end with some old school jQuery where required is fine.

Sorry but if you love PHP and use as your main language, why you don't complete any sideproject ? I don't understand your statement.

I do complete side projects, but I don't complete more than I complete. Often it's because trying to balance multiple projects when each is using multiple frameworks in different ways becomes a massive headache, things get paused and then canned because now there's newer buzz-word frameworks to use!

Re: “Hello, (real) world” in PHP in 2017

#30
This is a bit like

  $ echo 'Hello World!'
which if, you think about it, requires a kernel, multitasking, driver independence on various level, many drivers, memory management, possible resource accounting, binary api, dynamic linker, interpreter, etc, etc, etc.

All (or at least most) of this seems overkill if you just want to print out 'hello world'. But it makes total sense if you want to do a little more complex stuff.

Post reply on HN