Re:Common Beginner Mistakes with React
by zamnos on Sunday March 12, 2023 @12:20AM
(#35116947)
I mean, you're welcome to go back to PHP and jquery like it's the dark ages, but from where I'm coding, react is the only sane way to deal with a big complicated app.
[ Parent
| on HN ]
Re:Common Beginner Mistakes with React
by irrational on Sunday March 12, 2023 @01:28AM
(#35117365)
How many apps are really big and complicated? I think that is OP’s point. 99% of sites and apps are not big and not really complicated.
Heh, this comment made me giggle. Indeed when someone says that React (or any other technology to write a SPA) sucks, they should just go back to PHP + jQuery in order to remember why we are here.
Going back to something like Ruby on Rails doesn't sound half bad...
Re:Common Beginner Mistakes with React
by aaronbrethorst on Sunday March 12, 2023 @03:38AM
(#35117740)
ssh, I love competing against people who think they have to build two codebases to ship one product.
You have no idea how bad it can get. I hate hate hate anything Ruby. Rails itself is a good idea, but you basically get 0 editor support even with tooling and you barely know the structure of your objects.
If you stay away from metaprogramming in your own code Rubymine brings a lot to the table:
Go to definition (all the way down to any source code in gems)
Usages
Refactoring (renaming methods, classes and filenames)
Integrated debugger
It even infers types now
Brings nice documentation for methods if you use RBS and/or Yard
I think this goes as long as it can be taking into consideration that Ruby is dynamically types and has a lot of support for meta programming.
I know of Rubymine and use it daily. Rubymine sadly gives up if files get too large, which is realistic for `config.rb` even in medium sized Rails projects.
But I wonder if a language can be considered good for use if you can only really use it within a dedicated, non-free IDE.
Re:Common Beginner Mistakes with React
by roywiggins on Sunday March 12, 2023 @04:18AM
(#35117941)
There are definitely smaller, less-complicated apps where you really can just sprinkle in reactivity with something like Alpine.js or htmx just fine.