HN user

likortera

303 karma
Posts1
Comments134
View on HN

I'm not much of a fan of livewire, although I've just played with it.

I prefer Unpoly, which I already know. Or inertia if I have to go full Js.

I never used Rails other than doing it's tutorial, etc. And I only know hotwire by their docs, so I can't do a real life / production code comparison.

But from my understanding, Unpoly manages to achieve almost the same thing that Turbo + turbo frames can do, plus some other extra goodies such as modals (now layers), forms validation, etc. I honestly like Unpoly a lot more, and it also works with any backend framework "as is", given it does not require any special behaviour from the backend. That's a big win in my opinion...learning a tool that can be used everywhere can't be a bad thing.

The only thing I miss in Unpoly, is something equivalent to Stimulus. You do have "compilers" which allow you to attach custom JavaScript to any Dom element, but everything you do there is pretty manual and imperative. For these use cases I also use Alpine.

I'm working on a project with Laravel + Unpoly. It's an extremely easy and straight forward stack. And I knew zero PHP when I started, but I don't find it difficult at all.

I've been using node/react for a lots of years. This year I started working on a project built with Laravel. I can confirm it is a GREAT framework. Suddenly everything is reasonably easy again.

I used to think like this, but nowadays I think that's no a real problem, at eñadt to me. I find it very easy to go across different JavaScript projects with different libraries, etc. Usually the worst part is understanding the business domain, the warts of the application, the know bugs, problems, etc.

The libraries used, as long as they have documentation and are supported and more or less widely used...that's fine, they're easy to learn. And if I have to switch between 10 different projects, then for me that's the actual problem, not the fact they have different architectures.

What has been a terrible experience for me, was when at two past companies in an attempt to "standardize" they ended up with custom in house libraries and wrappers, all of them built in house, undocumented, with the original developers already gone and nobody knowing/wanting to touch them. And then the rejection of any kind of improvement or modernization because "then that new app will have a different architecture"... So what? We have a terrible one, and we need to do every project terrible, so everything is consistently terrible.

So, if you're doing all of this effort anyway, why go through the effort of using the HTML input checkbox at all?

Because HTML is the only way to do a checkbox?... Even if you use JavaScript, at the end of the day you'll have to generate HTML for it to render... so then why go through the effort of using JavaScript for a checkbox at all?

Meanwhile I'm having a ton of fun (and better metrics) by just rendering html from the server and using Unpoly for interactivity and "old style ajax" dynamic updates. And still building the entire application in JavaScript, end to end.

I kind of disagree on the last one, or at least there is a huge step from the second one to it.

I've used next.js for a project which I think qualifies as the new hotness. Once I had to add translations, authentication and do some authorization checks, and make all of this work with SSR, it became a hell of a nightmare and I regretted it so much.

For me the quickest and most robust way to build anything web related, as a single dev or as a small team is Laravel + Unpoly + tailwind. That's a real full stack: from authentication, translations, background jobs, componetized views, ajax updates and form submissions, etc, etc.

Well said. This matches my experience 100%.

A pretty well known ticketing company bought our startup a few years ago, and after the first week of parties, raising salaries and hyping us the reality struck us very hard. It was impossible to do any work at all. Anything you wanted to do would require tons of meetings, there was always a few people blocking any initiative you could have.

And then the freaking Agile By The book (with agile coaches and all!) I couldn't stand for the life of me. We'd have like 10 ritual meetings a week and the joke was that those meetings were to discuss "What we're going to do, what we're not doing, and what we didn't do".

Worst part, is that *everything* pushed you to just stay at your desk watching online courses or reading stuff on the internet and do nothing, and as long as you showed up to your scheduled meetings, all was good. You'd even get promotions by just smiling around and being nice to others.

I left that and now I'm at a company about 3 times as big. The difference is that here we're 100% remote and 100% async, written communication. Literally ZERO work meetings a week, just one "hang out" to not forget about the faces of your coworkers. No Agile, no Jira, no bullshit. A shared "to do" list to show others what you're on and weekly reports of your progress. I just can't believe how well this works.

I consider myself just a "Web Developer". That's it. Do you need frontend? I can do it. Do you need backend? I can do it. Do you need a deployment script or a CI pipeline? I can do it. I'm in my 40s and I've been doing this since I was 17, so it's not that I'm special. I'm just old and spent a lot of time learning everything I can learn.

I'm terrible at designing, management, or "product" management. But I'm pretty decent at all of the others, stronger on some areas and a bit weaker on others, but I can do all of what's required to ship a working web application/site to our customers and I have a pretty awesome salary because of this.

Yes, those are frontend developers, we all agree with that.

Should every frontend developer be reinventing date pickers from scratch just to demonstrate how good they are? I don't think so.

That's why I said 99%. Maybe there's an 1% or even less where it makes sense to reinvent it because you're Airbnb or Amazon or Google or you are in the date pickers business.

But yes, you are still a frontend developer if you don't do your own datepicker and focus on shipping your company product. And date pickers are built by frontend developers. What's your point?

In my opinion, people are destroying the country, not just politicians (they're people too, after all) because they would do the same the politicians do if they have the chance, for the same reasons you have (if I don't do it, I'm the only idiot).

It is a "positive reinforcement" loop with negative consequences for everyone and there is no easy way out of it.

I agree that you cannot be the only one "doing it right". Of course...that wouldn't fix anything and you'd be screwed. But do you see the problem? Everyone has the exact same argument you have for doing it, this the cultural thing I was talking about.

As another example, my friend's father passed away a few years ago. As everyone over there he had all of his saved money hidden at home. His own brother stole all the money just hours before his dad passed away.

As I said on my initial comment, this happens everywhere on every country, but the proportions and the impunity on which this shit happens over there is just unbelievable. This is an example of what I mean with "everyone would do it at their level". It's just that politicians have more opportunities to do it.

Of you are not using libraries, the smallest of the projects will become a large scale project.

I prefer having to keep up to date with libraries than having to deal with tons of some "smart ass" reinvention of the wheel that doesn't have documentation and tests and it's full of bugs and corner cases.

The code you write yourself also requires maintenance.

I lived for 20 years there. In my opinion the root of all problems there is that it is embedded in the culture to be as egoist as possible and to steal as much as you can from everyone else in the most ruthless and shameless possible way.

People usually complain about the government being corrupt and stealing to the people. But most people are the same, at their own level. They will try to steal as much as they can at their level or what is close to their hands. From bit paying taxes to actually pocketing others money, etc.

I know it is not everyone, but it is the majority of the people that are like this, politician or not.

I still have a friend there, always complaining public services don't work (healthcare, police, etc) but then in the same conversation he says with a straight face that he prefers not to pay with credit cards or bank accounts because then he'd have to pay taxes and declare the money.

There are people like this all over the world, but the proportion in Argentina is huge, a big majority I'd say. It's part of the culture.