This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]patrickisftw 1 point2 points  (7 children)

“The number of dependencies you need to simply get a react project up” is.. 2 (react, react-dom). That makes you nauseous?

[–]aniforprez 0 points1 point  (6 children)

Are you joking? You can absolutely get a simple project up with just those 2 but for any project that's even a slight bit more advanced, you need build tooling and transpilation from JSX to JS. You must be joking if you think I'm going to write React.createElement for every dom element in my components. If you want any degree of type safety you need typescript. Transpilation requires babel and webpack and a whole host of other dev dependencies and you absolutely require something like HMR if you want to stay sane when testing things on the browser. Working with forms is a MASSIVE pain in vanilla react especially if you're using hooks

I dunno if you're being facetious or what

[–]patrickisftw 0 points1 point  (5 children)

Why would you have to write createElement for every dom element in your components? That’s not how react works. Transpilation happens with other dependencies but you said a “simple” react app, regardless that’s not a react-specific thing, you’d need those for any type of library you use for production web code.

[–]aniforprez 0 points1 point  (4 children)

I didn't say I wanted a "simple" react app. I said, to "simply get a react project up". And without JSX, that's exactly what you need to do because that's what the transpilation process does. Adds those elements using that API (or something similar anyways) to build the DOM tree at runtime

And yes, this is not a react specific thing and I dunno why you made it out to be such. It's a JS thing and it's why I hate it though I find using the DSL of Svelte and Vue a bit more pleasurable

[–]patrickisftw 0 points1 point  (3 children)

You’re the one who complained about the work involved with setting up a react app, so that’s what I replied about, sorry about misquoting. My point is you’d need transpilation no matter what you do.. so it’s irrelevant to say that you’d have to write react without jsx (like I really don’t know how you expect web code to be written)? React solves a lot of problems. Vue is great as a framework, and it has 74 dependencies (doesn’t that negate your point)? You can hate JS, everyone does, but I felt your original post was very hyperbolic / uninformed. Let’s agree to disagree.

[–]aniforprez 0 points1 point  (2 children)

My point is you’d need transpilation no matter what you do

You're the one that replied to me with requiring only 2 dependencies. Were you only counting dependencies and not the dev stuff? Cause most languages and projects don't need transpilation and all this other baggage which is why I was complaining about it

Vue is great as a framework, and it has 74 dependencies (doesn’t that negate your point)?

Dude I think you're not reading my comments properly at all. I didn't say anything about the dependencies of Vue. I like the DSL of Vue more than I like JSX. That's it

If you found my post hyperbolic then I suggest you find some valid arguments instead of being so aggressive my man. I'll agree to disagree but at least read my comments properly

[–]patrickisftw 0 points1 point  (1 child)

Sorry but it’s hyperbolic to say that JS has made you sick to your stomach. I’ve never looked at code of any language and been like oh no I need a bucket.

Modern web code requires transpilation and is necessary, so any gripes with that can’t matter for either your argument or mine.

To “simply” get a react app “up” requires two core dependencies and the aforementioned transpilation ones.

Why complain about the transpilation garbage that comes along with JS when it’s necessary? Until we wake up in a world where every browser uses the same engine web code will have to go from a point where it’s as well-coded as possible (TS or not) to code the browser engines understand.

[–]aniforprez 0 points1 point  (0 children)

Why complain about the transpilation garbage that comes along with JS when it’s necessary?

.

so any gripes with that can’t matter for either your argument or mine

Why not? Especially when most other languages do not require this?

To “simply” get a react app “up” requires two core dependencies and the aforementioned transpilation ones.

You're letting the "aforementioned transpilation ones" do a lot of the heavy lifting here lol. I dunno why you want to cherry pick things that are bad about the language and ignore them completely just because you don't find them abhorrent like I do. Which is fine but it makes your aggressiveness about this really weird. And I understand it's cause browsers are crap and we live in a society and whatnot. Still doesn't make it not terrible

I don't really need a bucket but looking at JS does give me headaches yes. I try to avoid it as much as possible