TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Just Fucking Use React

40 点作者 neoberg9 天前

17 条评论

potholereseller8 天前
I&#x27;m waiting for an article entitled: &quot;Just Use X&quot; Considered Harmful. The Web is complex (i.e. has many parts) because it is meant to satisfy a very wide range of needs. Most websites use WordPress, because that&#x27;s an especially easy option to host, configure, and add&#x2F;update content. But &quot;Just Use WordPress&quot; would be nonsense; a lot of people need more (e.g. Google Maps) or less (e.g. static personal pages) than what WordPress is appropriate for.<p>I know, I&#x27;ll write an article entitled &quot;Just Fucking Use C, You Yellow-bellied Sapsuckers&quot;. It&#x27;ll be about using good-old CGI with C. Imagine a web framework in C, which generates HTML, CSS, and JS. It&#x27;ll be sleek, easy-to-deploy, portable, fast, and you can optimize to your heart&#x27;s content. Plus, it will future-proof your career, because your boss will make you spend a chunk of your career re-writing it in Rust: CGI + Rust is the future that nobody is aware of (read: dreading) yet.
designerbenny9 天前
This style of abrasive language works best when promoting the simple thing. Like Grug brain, etc. You use simple language to show how little thought is needed to get to the good stuff.<p>Each of the many paragraphs here requires thought to understand. That&#x27;s React for you.
qustrolabe8 天前
Some time ago I myself was in camp of people who preferred minimal web as opposed to all these &quot;bloated&quot; frameworks. But one thing that changed me is Tailwind, it improves the complicated stupid old way I wrote CSS classes so much that all people who keep hating it just because it&#x27;s one of those &quot;bloated&quot; things of modern webdev are just ridiculous.<p>Then I tried React, quite liked it but preference for something as small and fast as possible lead me to Preact. And as I have no need for hosting websites with backend (I just want client-side interactivity so static pages) I found how to do prerender workflow where all necessary html is generated at build time and interactivity gets hydrated on top of that by bundled js module. It&#x27;s so much better than trying to figure out pure js interactions in site made with static generator with some obscure templating.<p>Though for some reason people nowadays mainly focus on running site as SSR through Node rather than just hosting static pages and figuring out static build workflow in those frameworks can be very challenging.
codedokode9 天前
Why not Vue? Unlike React it doesn&#x27;t recalculate everything on every mouse move event.<p>Also I would like something that doesn&#x27;t require to install Node.JS and unly packer like Webpack which invents its proprietary syntax instead of using standard EcmaScript. I like to make small apps that I run by clicking on HTML file and I don&#x27;t have time to go to console and install things or type commands just to open a webpage.
评论 #44009710 未加载
评论 #44009124 未加载
评论 #44022815 未加载
jmogly8 天前
Jarring title but 100% agree! You very quickly hit a point building a modern web app where you need advanced functionality. Rolling your own everything in raw javascript is not a sane approach. I think the just use html crowd is composed mainly of backend devs who struggle to comprehend that a web UI is more than just a pretty crud layer on top of their backend. Fight me :)
hoppp9 天前
I use React or vanilla js or server side rendering or all three together, depending what the situation requires.<p>I found this website aggressive and not funny.
评论 #44009474 未加载
throw3108228 天前
&gt; Try building a dashboard with a dozen filters, real-time updates from ten different sources, user preferences that change everything, and collaborative editing where five assholes are mashing keys at once. Your &quot;simple&quot; JavaScript will turn into a spaghetti monster that&#x27;ll make Cthulhu look like a fucking Teletubby having a tea party.
bdangubic9 天前
amazing that literally every single thing in this post would make me <i>NOT</i> want to use React (or another framework) :)
cjdenio9 天前
I don&#x27;t trust anyone who pretends their framework of choice is always the correct choice. Real competency is knowing the right tool for the job. Or something like that.
评论 #44008993 未加载
turtlebits9 天前
&quot;sometimes, complexity is not a choice, it&#x27;s a fucking requirement.&quot;<p>Complexity is never a requirement, and almost always self-inflicted.
评论 #44014648 未加载
评论 #44022841 未加载
poobear229 天前
It may be worth investing in a vocabulary-expanding thesaurus, either HTML- or React-based.
pipiDulce8 天前
JSX sucks and VUE Templates are better and if your a masochist you can still use JSX
hooverd9 天前
No thank you.
unevencoconut9 天前
So, I should just use vanilla JavaScript? Well if you say so.
评论 #44009352 未加载
saadfrhan3477 天前
it would be pleasing to read if you remove those cuss words.
评论 #44019763 未加载
animitronix8 天前
FUCK YOU I WON&#x27;T DO WHAT YOU TELL ME
评论 #44010735 未加载
i_dont_know_any9 天前
Goes to show that the &quot;just do x, dipshit&quot; (HTML, vanilla JS, etc.) rhetoric&#x2F;framing carries literally zero weight.