Live data from Hacker News

Show HN: Realtime Chatroom Built with Laravel and VueJS

github.com

11–20 of 23 posts

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#11
post #3

I must be so old. I spend all day sitting on an IRC style 'chatroom' with a bunch of friends, that was written about decade ago. It uses a combination of javascript ('ajax') on the client side, and crappy ASP on the backend (because the only server at the time that was available was a Windows server). The comms is very simple asynchronous polling and formatting/parsing javascript. In fact the only updates over time h…

You're friends were replaced by chat bots long ago. We've all been watching you like a mini ascii truman show.

I had suspected that actually.

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#12
post #3

I must be so old. I spend all day sitting on an IRC style 'chatroom' with a bunch of friends, that was written about decade ago. It uses a combination of javascript ('ajax') on the client side, and crappy ASP on the backend (because the only server at the time that was available was a Windows server). The comms is very simple asynchronous polling and formatting/parsing javascript. In fact the only updates over time h…

It's not a "here's the best way to make a chatroom" article.

It's a "here's how you can use Laravel and Vue" article.

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#13
IS it me or is php syntax like this :

   public function __construct($user)
that makes php seem to be abhorent? (Well, i am speaking for myself)

Why would you use your time and energy to build another rails like framework when you could work on something better?

One reason not to program in PHP is because of this old timer syntax. Do you like how php arrays are constructed? Really, tell me. I really want to know.

Can we please move forward? I would rather see someone work and improve other frameworks such as django. And all these "implements" in Php. Weren't they copied from Java? I will take Java over everything else. Php is dead. Let it die. I am sure it was an ok language some time ago but there is no way to resurrect it by copying other frameworks over. Unless of course, it provides a easy entry to web programming, hence, saxophone players(not software engineers) write spaghetti code like wordpress and then they become mainstream and "successful". I am sorry for my vehement ranting by I am getting old and I see no impovement in software...

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#14
post #10
post #9

Earlier quoted context omitted.

Most people are here to learn, to build something more advanced, and/or to build something prettier. No need to condescendingly pretend like everyone else should be judged by your needs and nostalgia in a chat room.

I wasn't. I was challenging the modern need to just bolt pre-existing frameworks together. I WAS hoping for a discussion about it. Maybe my intent was not clear. Apologies.

I'd welcome other opinions, but I find Laravel's support for 3rd party tools/frameworks to be genuinely superb. They save me time on ramp up and implementation, which is often the single biggest bottleneck for shipping side projects.

Pusher is one of many Pub/Sub mechanisms laravel supports [1], and Vuejs is included "out of the box".

Point is, these frameworks aren't exactly bolted together any more or less than any other software integration.

[1] https://laravel.com/docs/5.4/broadcasting

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#15
post #3

I must be so old. I spend all day sitting on an IRC style 'chatroom' with a bunch of friends, that was written about decade ago. It uses a combination of javascript ('ajax') on the client side, and crappy ASP on the backend (because the only server at the time that was available was a Windows server). The comms is very simple asynchronous polling and formatting/parsing javascript. In fact the only updates over time h…

> and crappy ASP on the backend (because the only server at the time that was available was a Windows server).

I don't think there was ever a time that people didn't have alternatives to windows server and ASP.

Maybe there was a time that ASP was more popular than the alternatives, but I personally haven't observed such thing.

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#16

IS it me or is php syntax like this : public function __construct($user) that makes php seem to be abhorent? (Well, i am speaking for myself) Why would you use your time and energy to build another rails like framework when you could work on something better? One reason not to program in PHP is because of this old timer syntax. Do you like how php arrays are constructed? Really, tell me. I really want to know. Can we…

Sorry to bust your ignorance and/or biases, but laravel is actually a really powerful modern web framework and PHP7+ is marching right into the modern programming era.

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#17

IS it me or is php syntax like this : public function __construct($user) that makes php seem to be abhorent? (Well, i am speaking for myself) Why would you use your time and energy to build another rails like framework when you could work on something better? One reason not to program in PHP is because of this old timer syntax. Do you like how php arrays are constructed? Really, tell me. I really want to know. Can we…

You're making such negative claims.... based on not liking how a php constructor looks?

A php array is pretty standard syntax... ['x' => 'y', 'z' => 'a'..]

I've worked in both Rails and Python and PHP 7.0 is actually equivalent to most modern web languages. Type hinting, lambdas, function chaining, generators, etc., etc.

Spaghetti code is because of the developer not the language. I'm sure even Erlang has it's fair share of spaghetti code apps.

Put the haterade down!

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#18
post #10
post #9

Earlier quoted context omitted.

Most people are here to learn, to build something more advanced, and/or to build something prettier. No need to condescendingly pretend like everyone else should be judged by your needs and nostalgia in a chat room.

I wasn't. I was challenging the modern need to just bolt pre-existing frameworks together. I WAS hoping for a discussion about it. Maybe my intent was not clear. Apologies.

I'm not seeing a valid axiom to base that point on, either. I can use a framework and release an MVP in a month, or I can spend an entire year writing the equivalent of a framework and then release an MVP a month later (my custom framework lacking the battle tested stability, security, and peer review from a formal framework's community). Multiple frameworks exist to cater different projects and different opinionated teams. Laravel isn't even a fully reinvented wheel, it uses a lot of symphony components, it is compatible with a lot of generic PHP libraries, it uses some standard tooling like composer and webpack. By not writing my own custom framework, I can pass off my project to another team or my client can hire any random PHP developer.

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#19

IS it me or is php syntax like this : public function __construct($user) that makes php seem to be abhorent? (Well, i am speaking for myself) Why would you use your time and energy to build another rails like framework when you could work on something better? One reason not to program in PHP is because of this old timer syntax. Do you like how php arrays are constructed? Really, tell me. I really want to know. Can we…

Have you seen Laravel Collections (https://laravel.com/docs/5.4/collections)? It's a language extension which takes the pain out of PHP arrays.

Re: Show HN: Realtime Chatroom Built with Laravel and VueJS

#20

IS it me or is php syntax like this : public function __construct($user) that makes php seem to be abhorent? (Well, i am speaking for myself) Why would you use your time and energy to build another rails like framework when you could work on something better? One reason not to program in PHP is because of this old timer syntax. Do you like how php arrays are constructed? Really, tell me. I really want to know. Can we…

I think your information there is quite dated. I can understand if you want PHP4 to die, we all do, but, to say that 'PHP should die', ignores all the benefits PHP has been bringing to the table. You only have to look towards Symfony, Laravel, and the language ever popular CMS is made in to get a better understanding of why its done. Once you know that, make some points about that please, rather than generalized statements with no backing.

And, Why is Django any better? Frankly, I find python to be a terrible language to be productive in due to its syntax and lack of types. PHP has lack of types, too, but atleast the variables are marked.

Also, what is wrong with that explicit construct line? Its a constructor, it says it right there.

Post reply on HN