News for hackers. Stuff that matters.
Re:Common Beginner Mistakes with React by joshmn on Saturday March 11, 2023 @11:32PM (#35116699)
Yes, this.

99% of us live in a world that does not need reactivity, yet so many of us are led to believe that we are in a world that does. All because Facebook made React (for what original use case? Facebook Ads Manager?) doesn't mean we're all going to be Facebook, need to be Facebook, or want to be Facebook.

When I need the reactivity, I need to sprinkle it on; I don't need to use reactivity when it's not needed just for the few cases that do.

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.
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.
Re:Common Beginner Mistakes with React by damethos on Sunday March 12, 2023 @01:52AM (#35117486)
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.
Re:Common Beginner Mistakes with React by vanviegen on Sunday March 12, 2023 @03:08AM (#35117579)
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.
Re:Common Beginner Mistakes with React by j-krieger on Sunday March 12, 2023 @06:54AM (#35118648)
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.
Re:Common Beginner Mistakes with React by gls2ro on Sunday March 12, 2023 @07:51AM (#35119050)
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.

Re:Common Beginner Mistakes with React by j-krieger on Monday March 13, 2023 @08:36AM (#35134860)
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.
Re:Common Beginner Mistakes with React by ta1243 on Sunday March 12, 2023 @06:32PM (#35127194)
I have plenty of php and jquery, it works great, but that's because there are far more problems that don't need a "big complicated app"