3 ms·
Yeah I read the patents thing and decided this couldn't be serious because you don't need to grant facebook patents to use React. Saying things like that doesn
by andrewstuart 5y ago
Yeah I read the patents thing and decided this couldn't be serious because you don't need to grant facebook patents to use React. Saying things like that doesn't give the post credibility, just snark.
If I'm wrong, then please show the credible references with links.
>>All the tools require me to do so much bullshit to get them to even compile.
This is flat out wrong too unless you're referring to the situation pre 2016 before Create React App.
It's false information.
There's better and more valid criticisms of React such as for example why does it hijack CSS when it really absolutely does not need to and this causes all sorts of problems.
- neetle 5y agoThis library can be dropped into the headers of a html file to be used, rather than a compile step via Create React App. Create React App is likely one of the issues.
- KrishnaShripad 5y agoYou can do the same with React as well.
- neetle 5y agoEh, not really. I can straight-up embed the source of this and run with it if I want something that's html++ rather than "a new JS project". I know the API, because the source is simple. It's a small tool, for small jobs. There is nothing wrong with choosing the simpler option.
- kiliancs 5y agoSo they are not exactly the same tool, but you can embed it and run with it, and use for some parts of your page, for example.
- KrishnaShripad 5y agoI am sorry but what exactly is not possible with React? It is literally the same API. To prove to you, I used the same code Xena used in the article and reproduced it with React: https://codesandbox.io/s/mutable-water-y385q?file=/index.html https://codesandbox.io/s/mutable-water-y385q?file=/index.htm... No compilation. No build. Nothing. Same API too.
- rakoo 5y agoIt's not the same thing. GP says that the entire source code of xena can be directly copy-pasted in your business javascript code, or even in your html; no need for imports, no need for CDNs, a process under control from beginning to end. What you're proposing is essentially saying "look, it's easy to fly, here's how you do it in python": import antigravity def main(): antigravity.fly() if __name__ == '__main__': main()
- KrishnaShripad 5y agoNope. Have you actually looked at Xena's source code? She actually imports her own library: `import { g, h, x } from "/static/js/xeact.min.js";` Please see her source as I have used the same source, sans her library, to replicate it with React. Instead of importing from "/static/js/xeact.min.js", I am importing React. There is literally no other difference. > can be directly copy-pasted in your business javascript code Why can't you do the same with React? You literally can copy-paste entire React code in your HTML. Nothing stops you from doing that. Doesn't matter if you import it as a file or inline it in your HTML. It is plain old Javascript at the end of the day.
- xena 5y agoThings that are one step for you may be way more than one step for others. I want to avoid complication whenever possible. When I need to write JavaScript, I just want to write JavaScript instead of doing so much bullshit to get it to fit into Nix or `go build` or whatever. `create-react-app` is great for other people, but other people have different constraints and you cannot expect your experiences to be universally understood and accepted as fact.
- KrishnaShripad 5y agoI don't understand this criticism. Which other language lets you get away without compilation or build of some kind? Every language I have used has some form of build or compilation step before running the program. Unless you are building absolutely trivial programs like a "Hello World" you have to do some amount of build/compilation/orchestration (whatever you may want to call it).
- xena 5y agoThe main problem is that `go build` has no escape hatches for running arbitrary code at compile time, so I want to remove ways for me to get the code in emacs out of sync with the code that runs in the binary. In this case it means ripping out literally everything involved with JavaScript build tooling. This also helps keep the semantic space for the service down a lot.
- andrewstuart 5y agoI've never used anything except "npm run/build" for all my react since 2016. What's the problem?
- cxr 5y agoYou know what's easier than doing that? Not doing it. This discussion feels a lot like what's happening over in the thread on The Spiral Staircase Myth <https://news.ycombinator.com/item?id=29274875 https://news.ycombinator.com/item?id=29274875> The onus is not on anyone to explain why React shouldn't be used. The ordinary state of the world is not React. It's not a naturally occurring substance. The onus is on you to show why the React ritual and all the boondoggle that comes along with it is justified. To put it another way: "I don't understand your criticism. Christine has a workflow. (As it happens, it doesn't involve running a build step.) What's the problem?"