Live data from Hacker News

Go with PHP

gowithphp.com

461–470 of 532 posts

Re: Go with PHP

#461

$request->user()->orders->create($request->validated()); This looks so wrong from an architectural point of view! A request has a user (which in the context of HTTP should be more or less only an authenticated principal), which has orders, which are created from the same request, where the journey started. There is no separation of technical and business concerns. See: https://blog.cleancoder.com/uncle-bob/2012/08/13…

It's terrible indeed but Laravel pushes for this kind of "fluent" apis

Re: Go with PHP

#462
post #432

Earlier quoted context omitted.

I have, though I admit it's been about 10 years since and my memory may be mixing in (pun intended) things from version 1.

You're really doing a disservice to others with opinions that are so out of date.

https://symfony.com/doc/current/page_creation.html

Apparently there's now something called annotation routes. Which appear to be inferring functionality from comments.

You made me look though. I suppose I had it coming.

Re: Go with PHP

#463

The problem is this page advertises Laravel, not PHP. Ruby on Rails has many similar "demo worthy" snippets that make complex tasks seem readable and intuitive to the layman. Laravel and Ruby on Rails have something else in common: due to the focus on these "natural" interfaces, they compromise in every other way. Architecture, performance, testability and so on and so on. For those who know PHP, this code is full of…

Absolutely, having worked with Laravel I can only recommend not to use it, Symfony does a much better job.

Re: Go with PHP

#464
post #445

I built and maintained open source frameworks in both. I left PHP for Go. 1. with http://sqlc.dev I don't have to write ORM or model code anymore. Define all your SQL in an easy to audit file and all your models and interfaces are generated for you. 2. with http://goa.design I can have well-documented OpenAPI API's that any team can generate a client for in any language. It also generates the HTTP JSON and gRPC clien…

It sounds like you haven't touched PHP in a very long time. Your comment reads like a 2015 forum complaint - which, to your credit, certainly would have been all valid points 8 years ago. The language has evolved since. The ecosystem has evolved since. Most of the things you're complaining about are solved paradigms that no one does manually anymore unless they're trying to drastically improve on ecosystem tooling. E…

You've made a lot of claims here without providing evidence. Care to post some links like I did?

Re: Go with PHP

#465

Earlier quoted context omitted.

It's goofy to me how many devs think the art of writing software necessitates continually updating dependencies to have things not break. You're running in place! You could be working on something new that generates value, or adding features to what you have in that time.

To me, dependency management is a part of software maintenance and it's not always just 'running in place'. Updates bring security patches (sometimes not publicly explained or disclosed), performance improvements, and new features that could enhance the value generated by the said software.

you only point out positives, but the negatives are usually felt a lot more intensively

Re: Go with PHP

#466
post #450

Earlier quoted context omitted.

Hi! I'm looking for advice on how Rails vs Laravel compare (as I'll have to pick one of them soon for a project). Assuming the same knowledge and familiarity on both of them, why would you prefer Rails over Laravel? Thanks!

Ruby is a beautifully-designed, concise language. PHP is the opposite. If you like Java-style verbosity you may like PHP. I don't.

Yea, I think what makes me enjoy Ruby a lot is the ability to meta-program a lot. I can mold the language to what I want to express.

Of course, this can be a double edged sword if you aren't comfortable in the language yet.

Re: Go with PHP

#467
post #307

"500,000 orders per month" That's like, what, 12 orders per minute? Is this meant to be impressive or something? I bet any language run on a modern laptop can handle that.

For every request that generates an order, there are probably a dozen or more requests that doesn't generate any order. Also, OS these days are so bloated a $6 vps will barely has any memory left on startup before you actually run any workload on it.

A $5 linode with debian 11 has like 950mb usable on boot?

Re: Go with PHP

#468
post #462

Earlier quoted context omitted.

You're really doing a disservice to others with opinions that are so out of date.

https://symfony.com/doc/current/page_creation.html Apparently there's now something called annotation routes. Which appear to be inferring functionality from comments. You made me look though. I suppose I had it coming.

They are not comments they are php8 attributes

Re: Go with PHP

#469
post #338

Earlier quoted context omitted.

I mean no disrespect, but imo you need to get a modern UX designer involved in rethinking and redesigning your site. Message-wise, your site has too many angles, sells too many use cases, and has too many general marketing statements and not enough concrete examples. This only confuses readers. In terms of design, the site design (1) doesn't promote a linear flow of reading, (2) doesn't space out information with eno…

Please see the sister comment. If this is what “modern design” looks like — no wonder things are so bad. Instead of clear text sizes and simple messaging like in https://qbix.com/communities , there are texts of at least 5 different sizes jumbled in. Instead of contrast so you can read text — there is white text on black over white text on black. There is also text that is gray and low contrast until you scroll it in…

While some of what you say is correct (e.g. about the scrolling text and the messiness in parts of the Payload site), overall your criticisms show that your view of what's easy to follow is pretty out of sync with developers here. What you perceive as "bad" isn't really taken as bad by most others here, and I'd guess they're more likely to have positive impressions of Payload than Qbix.

The Qbix Communities page is definitely cleaner and more linear than the Developers/Platform page, no doubt. But it still looks very basic and again doesn't give enough focus to specific features. Instead it presents two videos (which aren't necessarily a good way to get people interested, since they may not even click on them). And at the bottom, it has two dense columns of smaller text packed together, which doesn't really invite people to really think about the features. Would be better if the text points were spaced out, given larger header text sizes, and accompanied by representative icons or even screenshots.

I also watched the first video, and the example Yang 2020 app you demonstrated also looks cluttered and squeezed due to the similar text sizing and lack of spacing things out. To me it looks like it's from 10+ years ago, before flat, material design really took hold of the mainstream and became consistent across many web apps and SPA. (Pity about Yang 2020!)

Sometimes it's best to question why others are having such a contrasting response to you. It does mean something. Letting go of your own opinions and preferences can be helpful for finding greater success in a wider community. Seriously, think about getting opinions from a few UX professionals, and give them some weight when you evaluate them, even if you disagree with them.

Re: Go with PHP

#470
post #414

Earlier quoted context omitted.

> you need to get some data from a few sources (databases etc) do some computation on each set and then do some sort of mapping to get the resulting set. You may want those computations to run in parallel and idealy you'd like to start mapping as soon as each computation function starts producing results. This definitely sounds like a typical situation for handling the job in a queue (plus with an async library like…

An example (not the best one maybe but I'm not the right guy to come up with good examples immediately) from a year ago: We have to integrate company M and W (one is a marketplace the other one is a big store, think Walmart or something). Company W mostly uses software similar to SAP-whatever and have a small team resposible for building 'helper' services in place where SAP can't do the job. Company W can't communica…

Well, for that use case, it would be typical in my industry for party A to send a callback URL to party B, so that B can POST the required information back to A after doing the multi-step processing. It's not really a done thing to make a synchronous HTTP request and wait say a minute or more for the response. Maybe that's just different expectations in different industries, though.
Post reply on HN