Earlier quoted context omitted.
> This data isn't magically stored in the air and if you use more than a single machine I'm curious, what do you think the OP meant when they said "stateless"? > I assume that you haven't worked at scale with php Oh I have actually! But I'm curious, how many sites do you think have a high enough scale to need php-fpm and opcache?
> I'm curious, what do you think the OP meant when they said "stateless"? Any kind of user session where user information is stored for access across multiple pages. When you use $_SESSION and write a variable into it, the content is persisted on the server and the user gets a cookie with an ID which points to their session variables. This is state that needs to be shared across servers when want you scale out. The o…
Ask HN: Getting tired of complexity in web development
281–290 of 292 posts
Re: Ask HN: Getting tired of complexity in web development
#282Earlier quoted context omitted.
Not OP but I'll give you an example concerning a project that used Material UI which is a React UI component library. For one, we had to rewrite the app 3 times because the library switched from Less, to 2 different css-in-js solutions across 3 different major versions. Then we switched to server side rendering and suffered some weird glitches. Turns out, when using SSR, styles get rendered twice: once on the server…
That's very fair, do you still think it was a net positive opposed to writing your own component library? https://mui.com/system/styles/basics/ It looks like MUI had some decent intentions in their changes. https://mui.com/material-ui/guides/server-rendering/#mui-on-... It also looks like they called out how to address the SSR issue (maybe they recently added these docs?). I kind of accept this type of friction as a…
React itself isn't really the problem because there are some valid use cases for it. However, it's currently being thrown at every web development problem even when there are better and more stable solutions.
But if I had to use React today, I'd stay away from MUI for sure since they constantly demonstrated a lack of maturity.
Re: Ask HN: Getting tired of complexity in web development
#283Earlier quoted context omitted.
Basically, it's the problem with vaccines and the rise of antivaxxers. Because vaccines were so successful in their harm reduction to even elimination, there h created a perverse belief that vaccines were not effective, and then that they were actually harmful. Being ubiquitous and their effects the same, and the absence of their necessary disease. Tools that solve problems experience a lifecycle that eventually if s…
Same goes for the Y2K problem: prodigious efforts went into solving the problem, which was mostly averted. But since "nothing happened", people started asking if the whole thing was overblown. More on topic, web frameworks solve the following problems for me, which I guess are things now taken for granted: 1. Provide a standard API across all popular browswes by papering over subtle differences in JS- or rendering-en…
Re: Ask HN: Getting tired of complexity in web development
#284Earlier quoted context omitted.
>NoSQL, frankly, is utterly pointless, and I have no clue why it ever caught on. It caught on because "feature factory" startups used simple frameworks to make an MVP and didn't know shit about RDBMS administration, optimization, or schema planning so when it was schema migration time it was time for things to start breaking. With NoSQL (specifically the "document store" types) you could just keep throwing shit in th…
I've been through projects that gave schema migrations and when there was any mistake or error during schema migrations it was a real big pain to rollback, fix and release. With mongodb this is gone, schemas are no more of an issue as long as you make sure to keep the models sane and the business logic of the fields up to date.
Re: Ask HN: Getting tired of complexity in web development
#285Earlier quoted context omitted.
Well said. There are a million starter projects and examples each with a different mix of tools hooked up all in very different ways with tons of files and config. And lots of them with bugs or out of date. The problem with the JS world is they can never coagulate around one solution. Everyone has this insatiable desire to roll their own. Next only works because it leaves out a bunch of stuff. Instead of the examples…
I think a big part of this is because of the the popular teachers and bloggers/youtubers which are not more than undercover (and some not even undercover) marketers for companies or solutions promoting the use of their platforms. So many "Look how easy it is to build a blog with Next.js/Remix/Nuxt.js/Whatever", and it is true. That's really easy and cool and has a really good DX and we all love it. But in real life y…
Re: Ask HN: Getting tired of complexity in web development
#286The weird thing is, having been in frontend dev since around 2013 I feel like it's the simplest it's ever been. I'm more productive than ever, but I suppose mileage varies.
Re: Ask HN: Getting tired of complexity in web development
#287A couple people have asked what complexities I’m referring to and mainly what I mean is just how much bloat goes into making anything, and at a higher level the general course of action seems to be to just keep adding to the system until you get what you want out of it instead of trying to fix or improve underlying problems with the web. I know we can’t just pause the internet while everyone comes to a consensus on h…
Re: Ask HN: Getting tired of complexity in web development
#288Earlier quoted context omitted.
I've looked at Elixir a bit, but I came away with the expression that it would be a bit like doing Django before 1.7 where I had to do schema migrations manually. This is a huge deal to me. I didn't see any forms libraries either, so the forms situation seems even more primitive. I'm the author of iommi so I now have very high level abstractions for forms/tables/menus/etc, and a transparent way to compose these. I wo…
Fwiw I was afraid of manual migrations too, coming from Django, but its not that terrible once you get used to it. There should be a few form libs out there but I havent needed one so far. Chris McCord said at ElixirConf that there are plans of reworking the forms api to make it work better with LiveView.
Re: Ask HN: Getting tired of complexity in web development
#289Re: Ask HN: Getting tired of complexity in web development
#290Earlier quoted context omitted.
How is Angular adding just a sprinkle of js to your web app? Isn't the ouput of building an Angular app a full SPA?
I am using the "original" angular-js, not the newer Angular whatever version it is now. It's not a full SPA. I just include angular.js and put the ng stuff in my HTML. Maybe the new Angular is different?
I think stimulus is more like angularJS. But modern angular definitely isn’t.