News for hackers. Stuff that matters.
Re:How to deploy a React app for free by Pandabob on Tuesday August 18, 2020 @01:16AM (#24195522)
This is kind of Off-topic, but I've been getting back to doing web development for the past few months. One thing I've been surprised is how much high quality content marketing/blogs there are especially regarding React.

The Logrocket blog is an excellent example of this. Lots of useful blog posts. Another one I've been relying on is the blog of Robin Wieruch [1].

I guess stating this is a little obvious, but one of the upsides of using popular tools is the productivity boost you get from the surrounding ecosystem.

[1]: https://www.robinwieruch.de/blog

Re:How to deploy a React app for free by sushshshsh on Tuesday August 18, 2020 @02:28AM (#24195838)
Really questioning this. The things available in vanilla js, html5 and css3 are immensely powerful and extremely well documented for those who care to dig into it
Re:How to deploy a React app for free by koonsolo on Tuesday August 18, 2020 @02:58AM (#24195953)
You are correct that those have a pretty good interface.

But here is some advice from an old programmer: once you start making bigger and more complex projects, you will start to make your own convenience libraries. And soon you will realize that you've built your own React-like library. But only less stable and less well thought out, because react has the huge community and maturity.

But if you only do some small functionality, or something specific with the technology, vanilla is perfectly fine.

However, if you are a single page app coder, I would definitely go for something like React.

Re:How to deploy a React app for free by rimliu on Tuesday August 18, 2020 @05:16AM (#24196672)
Not everything has to be built with React, and the size of it is orthoganal to the technology.

If fact, huge projects are likely to suffer from using React, because virtual DOMs get out of hand and a lot of resources a wasted by building and rebuilding VDOM and looking for the changes.

Also, for some reason, React brings a lot of cargo-culting. Many don't stop to thing whether they should even if they can. They bring React, then they bring Redux, then all the rest is being dragged in and you get multi MB bundles for some truly trivial purposes. Of course, that's more on developers than on React, but it happens way to often. And for some reason just bringing React and Co. is not enough, it usually ends up in some imressive architecture astronautics. At the end you have a project that is big, but slow and still impossible to understand because the levels of indirection are off the charts.

Re:How to deploy a React app for free by varrock on Tuesday August 18, 2020 @07:22AM (#24197391)
I'm not going to say you're wrong, because I don't have claim to back mine up, either. So, this is for the sake of discussion.

The sentiment that everybody reaches for Redux is tired, in my opinion. After following many in the web development community and keeping up with online forums such as this, it's fairly clear to me that people have moved on from the heavy armor previously associated with React if they have a choice. For instance, people learned that they were using Redux for prop drilling, which led to many switching over to the context API natively from React. Another good example is Gatsby, for those who realized they have a static site and would like to address the SEO issues associated with a SPA.

Also, a lot of times, companies adopted React and Redux before the inception of these new, more powerful libraries that are obvious choices on the ground as of August 2020. But, have fun refactoring your entire client side state seamlessly if you're tracking state more sophisticated than the status of the application sidebar.

Re:How to deploy a React app for free by koonsolo on Tuesday August 18, 2020 @12:22PM (#24200622)
So what do you suggest how huge projects should display data on a single page web app? MVC? MVVM? Just hack things in like the olden days, without any structure?
Re:How to deploy a React app for free by noahtallen on Tuesday August 18, 2020 @02:42AM (#24195886)
Since those are even more popular than React (given that React builds on top of that foundation), the point about using a popular tool for good ecosystem and documentation still holds for me.
Re:How to deploy a React app for free by hombre_fatal on Tuesday August 18, 2020 @04:04AM (#24196287)
Which part of their post do you think you're questioning?
Re:How to deploy a React app for free by sushshshsh on Tuesday August 18, 2020 @05:35AM (#24196787)
I'm questioning, at least for my purposes, the following:

1) That React is a powerful, productive, ergonomic language

2) That high quality resources exist for using it

I have struggled with both of these in React, yet in vanilla JS and html canvas I have no problem writing a 3d graphics engine lol

Re:How to deploy a React app for free by bryanrasmussen on Tuesday August 18, 2020 @07:09AM (#24197315)
I would think writing a 3d graphics engine is not really the use case for React.
Re:How to deploy a React app for free by sushshshsh on Tuesday August 18, 2020 @07:27AM (#24197428)
I'm remarking more on the complexity of the functionality in question when compared to the learning curve of the api that i use to implement it
Re:How to deploy a React app for free by bryanrasmussen on Tuesday August 18, 2020 @11:24AM (#24199778)
fair enough - I thought you were saying that you tried to implement a 3d graphics api in React and without React and the React one was much more difficult and I felt: that was as to be expected.
Re:How to deploy a React app for free by moltar on Tuesday August 18, 2020 @01:50AM (#24195685)
Listicle spam evolved aka tower content strategy.
Re:How to deploy a React app for free by rwieruch on Tuesday August 18, 2020 @03:08AM (#24196007)
One of my latest articles: https://www.robinwieruch.de/react-testing-library Is this listicle spam or helpful for people who get started with testing in React? :)

The last one I dropped was https://www.robinwieruch.de/web-applications which has more than 5000 words (1/6 of a book) of fundamentals in web development -- which took me 3 workdays of writing without anyone paying me for it. Still it gets less attention on Twitter than some random dev meme or inspirational dev tweet; and will probably not be picked up by HackerNews if anyone posts it ¯\_(ツ)_/¯

I do my best to teach people fundamentals. If they like my content on my blog, people buy my books/courses. This and their feedback (e.g. on Amazon, E-Mail) gives me confidence that I am doing the right thing. Without good content I don't get paid at the end of the month ...

Thanks for the shoutout @Pandabob! :)

Re:How to deploy a React app for free by hacker-gene on Tuesday August 18, 2020 @10:03AM (#24198650)
Thanks for posting all those tutorials, I've learn a lot from those, great content! And keep up the good work! Also, if I may suggest, maybe you could update the React/Firebase series, convert to hooks maybe. Also, just out of curiosity, are you not a fan of TypeScript? You haven't really posted anything meaningful for that topic.
Re:How to deploy a React app for free by borvo on Tuesday August 18, 2020 @11:42AM (#24200032)
I have also found your material very useful. Thank you.
Re:How to deploy a React app for free by kilburn on Tuesday August 18, 2020 @03:30AM (#24196122)
> Is this listicle spam or helpful for people who get started with testing in React? :)

It is useful, but only because react-testing-library's documentation is horrendous in this front (its documentation is fine as a reference, but not as an introduction/getting started).

However, your post will end up rotting over time as react-testing-library evolves, and will end up being old cruft spam contributing to today's issues (you search for something and find an outdated reference that doesn't work anymore).

If you really want to have positive impact with your documentation efforts, the best avenue would be to work with the software authors themselves on getting your tutorial there. And then helping to maintain it.

Of course you are not in any kind of obligation to do so. I just wanted you to think about it ;)

Re:How to deploy a React app for free by rwieruch on Tuesday August 18, 2020 @03:43AM (#24196169)
This holds true for all kind of content (YouTube, Courses, StackOverflow, Reddit, HackerNews) where a person has no ownership or no monetary interest (or doesn't worship pure altruism) ... At least content creators are urged to keep their content up-to-date, otherwise they would receive bad feedback (and bad SEO scores over time if people don't stay on your website). I could name you lots of articles I have kept up-to-date over the last 3 years (more than I wrote for sure), and I know this doesn't apply to all content creators, but I can tell you that it really matters for your readers and your credibility.

For sure, the easiest thing as a content creator is publishing (almost) ever green content (see web applications article). However, most often you are looking for topics that solve actual problems of your readers (see react testing library article) which often leads to bleeding edge technology which isn't document well yet.

For what it's worth, there will always be companies with money who pay people to write content to support their products (e.g. SaaS). This makes it harder every day for individuals like me to sustain their livelihoods. However, I strongly believe in the long run quality trumps quantity.

In a perfect world, there would be (1) one perfect learning material (e.g. official documentation) and (2) one unified learning style (e.g. text, video, both) for all students. But we are not living in a perfect world and therefore people look for resources outside of the box.

Re:How to deploy a React app for free by k__ on Tuesday August 18, 2020 @02:14AM (#24195783)
Is it really spam when the content is actually useful?
Re:How to deploy a React app for free by moltar on Tuesday August 18, 2020 @02:17AM (#24195798)
I think so. I think it’s the intent that counts. They are clearly doing an SEO and content marketing play. I see their articles in SERPs for lots of keywords. But I find them to be just barely passable quality.
Re:How to deploy a React app for free by wyattpeak on Tuesday August 18, 2020 @02:39AM (#24195877)
Is it intent? Authors write how-to books to make sales, not to pass on information for the good of humanity. Does that mean that all technical works are barely-disguised spam?

I'll grant that they probably do like the idea of passing on what they know, but I very much suspect the same thing of the tech lead who was asked to write a blog post by their marketer.

Re:How to deploy a React app for free by koonsolo on Tuesday August 18, 2020 @03:08AM (#24196009)
Alright, then we can all stop writing articles and making YouTube videos.

Let's only allow some starving hippies to create content as of now.