Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tored
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
tored
3y ago
Yes, I agree. But if you want to do some form of dynamic rendering and not static rendering HTML only is not an option. PHP matches HTML pretty well.
182.
▲
by
tored
3y ago
Okay, forward compatible. It makes it easier for framework and library maintainers to support multiple versions of PHP, which is nice. > `#[foo` used to be legal PHP 7, but is illegal in PHP 8). So it is not a comment in PHP8 then.
183.
▲
by
tored
3y ago
This is one of the reasons I like PHP, in newer PHP versions it is an attribute but in older versions it is just a comment. Clever and backwards compatible.
184.
▲
by
tored
3y ago
Name something better to build web sites.
185.
▲
by
tored
3y ago
Because there is a lot of negative propaganda against PHP out there, especially within academia. You can meet people fresh out of university telling you that PHP is bad even though they have never written a line of PHP. They just know. This
186.
▲
by
tored
3y ago
Laravel focus a lot on branding & communication to create a hype by overselling their functionality, you are a "Web artisan" when using it, the ORM is not like other ORMs, it is an Eloquent ORM etc.
187.
▲
by
tored
3y ago
Sure, but it does exist frameworks that uses minimal amount of magic. It is the magic part that is the problem, regardless if it is the framework or your own code that it is doing it.
188.
▲
by
tored
3y ago
The biggest threat to Linux, BSD and other alternative operating systems is that there will be no hardware available to run it on if all hardware will be specialized to closed down systems, and this is not only for motherboards but also mem
189.
▲
by
tored
3y ago
> I can still do everything in Win 11 that I could in Windows 7. It is quite telling how far stagnation has gone when the latest and greatest operating system can basically do the same stuff as one from 13 years ago. In the end of the 90
190.
▲
by
tored
3y ago
Very common for older PHP projects to store PHP serialized strings in the database. Horrible performance and of course gets easily corrupted of not handling concurrent updates properly. Rewrites rarely succeeds, it is a typical fallacy for
191.
▲
by
tored
3y ago
Yes, I recently built a small PHP example project for educational purposes and I intentionally avoided all external dependencies for demonstrating how you would solve things without a framework or library. You can do almost everything you n
192.
▲
by
tored
3y ago
You are comparing apples with oranges. I'm talking about organization, you about individual developers. I can have fullstack that is better than a specialist. Specialist only means that they have specialized in one part of the architec
193.
▲
by
tored
3y ago
How many hours spent on battling Laravel to do what you want? How many hours spent on upgrading Laravel versions? Framework solves a general problem, but we try to solve a specific problem, thus it will always be a mismatch, frameworks usua
194.
▲
by
tored
3y ago
> Don't you now need more fullstacks ? Yes. I’m generally against specialization and splitting teams. This of course depends on what type of organization you have and how complex the frontend is. iOS and Android is usually complex
195.
▲
by
tored
3y ago
Generally you don’t want to reuse the same API for different types of clients, you want backends for frontends (BFF) that are specialized for each use and can be moved forward in their own pace. The needs and the requirements differs a lot
196.
▲
by
tored
3y ago
SPAs transfers large amounts of data to the frontend to be able to do HTTP JOIN and then tosses most of it away.
197.
▲
by
tored
3y ago
I think one potential improvement for PHP is to make PHP templating usable again. This is something that could have a low cost of implementation but a big win. Example on improvements 1) auto-escape output - one of the biggest reason not t
198.
▲
by
tored
3y ago
And not only does the ORM itself have big performance impact, your own code will be designed around the assumptions of this particular ORM, e.g if it is easier to fetch a few row objects from different tables using the ORM and then do some
199.
▲
by
tored
3y ago
Microsoft, if I own a Pro license then why can’t I get a pro experience?
200.
▲
by
tored
4y ago
The traditional forum model is mostly a strength but has some drawbacks, strength is that you have a treasure trove of searchable knowledge and if you ask a question to the dedicated community you have high change to get a helpful reply, be
201.
▲
by
tored
4y ago
My recommendation for every PHP projects that uses external libraries is to use your own wrapper function/class to minimize contamination of the project. If you use a framework then try to write all your own code outside of the framewo
202.
▲
by
tored
4y ago
Namespaces and modules are orthogonal, you can support both like Typescript. Your solution works, but unfortunately not something that has any community support. I proposed something similar a year ago but use classes instead because class
203.
▲
by
tored
4y ago
I recently switched from Edge to Firefox. Edge used to be great, but all "features" it has added the past year is not features I need, like sending my text input to Microsoft, showing online shopping suggestions, discover features
204.
▲
by
tored
4y ago
I guess that you need at least some scientific knowledge about the project's subject in order to work with the domain and maintain the code, but not on an expert level, because that would be a waste of resources put a great scientist o
205.
▲
by
tored
4y ago
> How much are software engineers judged by the code quality? Difference is of course that most software engineers work on some commercial project with relative little effect on the world politics, and not bleeding edge science that affe
206.
▲
by
tored
4y ago
Thus you wasted 1 week, you can build a prototype for a new product in that time.
207.
▲
by
tored
4y ago
I think the problem here is that US lacks a larger framework how unions and employers should solve differences. Sweden enacted in 1938 (Saltsjöbadsavtalet) a treaty where unions, employers and the government came to an agreement that agreem
208.
▲
by
tored
4y ago
And it also rare too switch database vendor mid project, some rare constraints if that happens or if you have too much vc money. And you should use your database to its full capabilities, including vendor specific queries, otherwise you are
209.
▲
by
tored
4y ago
Inherited one project where the previous developer enjoyed writing if cases like this if (article > 0) confusing early on becuase you would start thinking this is a beginning of arithmetic comparison of numbers when it actually
210.
▲
by
tored
4y ago
That is why you make sure your team mates are either in on it or too weak to protest.
More ›