HNHacker News
TopNewBestAskShowJobs

midrus

1,678 karma · joined November 29, 2016

submissionscomments
midrus··on The Decline of Django
Looks like the typical naive person that would critique the admin UI, the ORM, the documentation, the template system, etc and would then opt for doing his own thing in pure python and just flask and this other library and end up with a terribly worse implementation of everything he was complaining about.

I've seen this with my own eyes in the past.

midrus··on The Decline of Django
Don't waste your time reading this.
midrus··on How I built a modern website in 2021
Done. Thanks!
midrus··on How I built a modern website in 2021
My email is the same as my username at the usual proton mail domain.

Sorry for my dumbness, but not sure what a repost invite is. Something good I hope XD.

Thanks.

midrus··on Nuxt v3 beta is released
I'm worried about that auto import thing. Hopefully I'm not getting it right but sounds to me like more compiler/macro magic breaking all tools and editors (i.e: cmd click to go to definition, etc...)
midrus··on How I built a modern website in 2021
As with everything else, setting up things is not the problem. The problem is maintaning them.
midrus··on Rancher Desktop, a Docker Desktop Replacement
From my experience, trying to boot up the entire platform on developer's laptops (or remote cloud servers) for each developer is something doomed to fail and cause pain, whatever you use.

My best experience so far, has been to start services individually, and work with mocks and tests. And do integration on a shared staging environment or, even better, have a way to deploy multiple versions to the same env (like you can do with App Engine, Vercel, etc).

I hope I never ever again have to work at a place where I need to replicate the entire platform for my development environment.

midrus··on How I built a modern website in 2021
This guy's site is not netflix nor facebook, nor is he 10k developers to support those architectures.

If this guy were pragmatic, a Ruby on Rails/django app in heroku would do wonders. If he wants to promote React because that's what he sells, that's a different story.

The problem is the people taking what this guy says as "the modern way to do it" and then you find the messes you find at work.

midrus··on How I built a modern website in 2021
Ruby On Rails
midrus··on How I built a modern website in 2021
Kubernetes is a low level tool which should be used only at large companies with large teams to support it and build all the required tooling around it.

80% of companies building on top of kubernetes should just pay some provider to do it for them, or use higher level tools. The crazyness going in the DevOps/Infrastructure world is as bad, or worse, as the one going on in the frontend space.

midrus··on How I built a modern website in 2021
Just imagine all the newbie and junior devs following the ideas this person puts in their heads. That's how you land a new job just to find out the landing has more engineering than the Mars Rover.
midrus··on How I built a modern website in 2021
This is just advertising for a framework you have to pay for if you want to use.
midrus··on Ask HN: Those who've built large projects on React, was it worth it?
Totally not. You have to be careful about the use case. A company I worked for went crazy on i, and redux and rxjs, redux-form, etc for a mostly CRUD app and it was a total mess. A team of 6 devs couldn't keep up with the complexity of what one or two devs could build decades ago with django or rails.

Nowadays I think that unless you have a team that only wants to work with JavaScript and nothing else, or you need an offline first application or something truly "single page" such as Google maps, it makes no sense. Adding a form validation library should be a red flag you're going out of the intended use case.

If what you meant by your question is if, once decided to use a frontend framework such as react, is it worth vs Vue, Svelte, vanilla, etc.... Then my answer is that it is better to use one of theses vs not using them, just because of the ecosystem, the docs and the libraries you will find. I think Vue is a LOT better than react, but that's just my preference due to it being less verbose, having official solutions for router, state, etc and the amazing reactivity system it has.

midrus··on How to replace estimations and guesses with a Monte Carlo simulation
Probably this works for a large team of tens or hundreds of developers.

On a team of 4 or 5 people, where people go sick, take vacations, leave the company, new members join... each of these events has a big impact on those metrics. Which again, becomes a lot of work and effort wasted.

But yes, probably this is a viable option on larger teams.

midrus··on Ask HN: Why is Node.js hated so much?
Probably you would have had this problem with any other platform you were not familiar with.

Tests can be written properly and in a very reliable way in any platform, and a mess can be made in any platform too.

midrus··on Ask HN: Why is Node.js hated so much?
Node and JavaScript are extremely popular (used by a ton of people).

Being popular means you get a lot of criticism. Same happens to java, PHP, and any other popular language.

midrus··on Offline First
After having used RxJS, redux-rxjs, and some other "Rx" related libraries I don't remember their names anymore, I'm not touching Rx[anything] ever again.

I still have nightmares.

midrus··on Offline First
This sounds very naive to me. Maybe it works for your specific use case but it is never that easy most of the times. What happens if the user has your application on two devices? What happens if you want the server to update this data? What happens if the data involves multiple users?

What you're doing here is not much more than a backup.

midrus··on A Set of TailwindCSS Based Transactional HTML Email Templates
Has anyone tried PrimeFlex [1]? I was thinking on using it for a side project, in combination with PrimeVue[2]. Any experience with it?

[1] https://www.primefaces.org/primeflex/

[2] https://www.primefaces.org/primevue/

midrus··on Ask HN: What do you enjoy about JavaScript?
I like I can build almost anything with it, from web applications to command line to desktop applications, to embedded scripts in almost any service.

I love it is asynchronous by default (and thus all its ecosystem is as well). As someone that had to deal a lot with thread pools, and semaphores and concurrency issues, this is invaluable to me.

I also like a lot the tooling. From VSCode support, to typescript, to eslint, prettier and despite people complain about large node_modules, I think NPM and the trade offs leading to that are very worth it.

I also really enjoy the availability of libraries... whatever you need, you'll find a popular package for it.

midrus··on How we got to LiveView
I really appreciate the work and innovation you are doing, but these other alternatives exist because not everyone is starting a project from scratch, not everyone is able to rewrite their project, and not everyone is building a team with the required skills from scratch.

At a previous company I worked for, a decision was made to move to other platforms not because Elixir was bad, or LiveView was bad (it was good!) but because it was really difficult to hire for.

It is difficult to find people with elixir experience, and we didn't want to have production system built by just people learning a language, platform and architecture on the fly.

Also, that's considering "backend" developers. It was *TOTALLY* impossible to hire frontend developers wanting to work in this setup. No single frontend developer wanted to learn Elixir, and all the backend related stuff. This doesn't happen for example with Node... yes, it might be a terrible choice for the backend, but most frontend devs are happy to work with it.

Regarding to the solutions in other platforms not having the Erlang VM to power them, etc,etc.... not everyone is at google/twitter/facebook scale, 90% of companies out there can be run perfectly fine with run of the mill django/rails/laravel setup.

Premature optimization is as bad when doing an unnecessary SPA as it is using the Erlang VM when rails was enough.

midrus··on Agile Is Dead, McKinsey Just Killed It
Exact same experience. A kanban board with clear priorities was my best experience so far in my near 25 years of career in this field. This was thanks to the big bosses which were pretty chill in regard to when things would be ready, as long as it was "as soon as possible" they were happy.

All the Agile an scrum bullshit get introduced the moment the higher ups want to have exact estimates and deadlines and just shipping features is the only prioirity. Despite all the stupid effort to predict task sizes and times in the end they're always wrong, things take more time (or less) and we wasted a ton of time and mental energy on the shared taboo lie that we're estimating stuff.

midrus··on Agile Is Dead, McKinsey Just Killed It
I don't know about Agile but I'm doing SCRUM by the book at my new job and I want to kill myself every other second.
midrus··on Practical Front-End Architecture
I've built a few small projects with just backend rendered views in Node.js, and then did all the dynamic "SPA" like features with Unpoly. Turned out a lot better than I thought. Things such as authentication being a lot easier and not having to build an API really helped speeding up things.
midrus··on Practical Front-End Architecture
Even if not using the SSR part of next, it is still a great build tool, with sane defaults and possibilities of static generation.

What would you use to "simplify" things? Your own webpack config?

midrus··on Practical Front-End Architecture
Love Unpoly for this https://unpoly.com/
midrus··on Practical Front-End Architecture
I've been a backend developer for many years, and for the last 6 years I've been doing frontend.

I can assure you those developers mocking frontend devs can't even do backend if taken outside their big ass framework (django, rails, symfony,etc etc), because they believe everyhing is as easy as those frameworks put it to them. Somebody that had to work outside of that where you have to take many decisions and make tons of trade offs and find how to organize code and manage dependencies, etc will understand better how difficult frontend is. True we sometimes overcomplicate things more than needed (redux, rxjs, etc...) but even when we do not, this is still freakin difficult to get right.

midrus··on How we got to LiveView
(My opinions)

Compared to Hotwire:

I think hotwire is the best option if you're using Rails. From what I know, hotwire needs a lot more of backend "collaboration" than Unpoly, so you will need backend "hotwire" implementations. You can see these things are being built for django, etc.

Compared to Htmlx+ Alpine:

Let me start with the disclaimer that I think Alpine.js is an aberration. Writing code inside html attributes is a fantastic way to break every editor templating language plugin, syntax highlighting, etc.

Despite of me not liking Alpine, I think unpoly handles a lot more use cases, and it feels a lot more "declarative" to me.

Compared to both:

Unpoly is kind of the "django" or "rails" in this category of tools. It gives you a lot of stuff. From page transitions loading progress bar (a'la turbolinks) to ajax replacing links, to modals, to popups to sidebars, to automatic blocks replacement (up-hungry) to form posts, to handle error responses, layers, polling.... and it has an awesome way of writing your own "components" with the up.compiler api.

I honestly think the only reason Unpoly isn't the most popular solution in this space is because of bad marketing (well, no marketing at all...). I really think it is the best (if you're not using Rails, then I'd use Hotwire+Stimulus+etc...).

midrus··on Practical Front-End Architecture
You already have that: JavaScript.

Otherwise, what you are describing isn't going to be "Just Go" or "Just the language"... you'll have again a ton of libraries/frameworks on top of it... the complexity is going to be there... one way or another.

midrus··on How we got to LiveView
For anyone wanting a "SPA" like feeling of their apps without having to deal with all the SPA complexity, and not starting from scratch or being able to rewrite their applications, try Unpoly. It is really great and very underrated.

https://unpoly.com/

← PreviousPage 9 of 20Next →