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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Get in zoomer, we're saving React

286 点作者 tylerchr超过 2 年前

48 条评论

mwcampbell超过 2 年前
&gt; What&#x27;s really frustrating about all this is how passive and helpless the current generation of web developers seem to be in all this. It&#x27;s as if they&#x27;ve all been lulled into complacency by convenience. They seem afraid to carve out their own ambitious paths, and lack serious gusto for engineering. If there isn&#x27;t a &quot;friendly&quot; bot spewing encouraging messages with plenty of emoji at every turn, they won&#x27;t engage.<p>&gt; As someone who took a classical engineering education, which included not just a broad scientific and mathematical basis, but crucially also the necessary engineering ethos, this is just alien to me. Call me cynical all you want, but it matches my experience. Coming after the generation that birthed Git and BitTorrent, and which killed IE with Firefox and Konqueror&#x2F;WebKit, it just seems ridiculous.<p>&gt; Fuck, most zoomers don&#x27;t even know how to dance. I don&#x27;t mean that they are bad at dancing, I mean they literally won&#x27;t try, and just stand around awkwardly.<p>&gt; Just know: nobody else is going to do it for you. So what are you waiting for?<p>It seems like ranting about how the older generations were better, and conversely the younger generation is decadent, is as old as history itself. Anybody know why this is the case? Is it that our overall character has really been heading downhill for all of history? Or is it something else, like how we generally remember the best of the past but mostly notice the worst or merely average in the present?
评论 #32960496 未加载
评论 #32961468 未加载
评论 #32960295 未加载
评论 #32961898 未加载
评论 #32968038 未加载
hantusk超过 2 年前
When reading through the comments here, I really feel like the article was misunderstood. My summary of the article is:<p>Point 1: React solved all the right things, but its current trajectory, does not prioritize developing the fundamental tooling we need. React does not allow us to build a new Figma (consistent undo&#x2F;redo in collaborative settings, immediate low-latency mutation of app state to reflect user changes and building fundamentals to SaaS interoperability)<p>Point 2: People are overwhelmed by the work, and too timid to target the fundamental architecture we need to solve these things. We&#x27;re just going with the flow.<p>He is leading <a href="https:&#x2F;&#x2F;usegpu.live&#x2F;" rel="nofollow">https:&#x2F;&#x2F;usegpu.live&#x2F;</a> to build the fundamentals right, an encourage people to either:<p>- help out there, if it fits your use case, or<p>- start working on targeting these fundamentals, where most needed for your own use cases, don&#x27;t just go with the flow.
评论 #32963502 未加载
评论 #32963626 未加载
评论 #32963330 未加载
评论 #32982878 未加载
评论 #32962393 未加载
genezeta超过 2 年前
This article is kind of sad. In part because it comes from its author, who usually writes interesting stuff. But this one <i>is</i> ranty -and no, it doesn&#x27;t make me angry. It&#x27;s ranty and also fluffy, light in content, scarce in any arguments or conclusions other than &quot;youth these days! they don&#x27;t even try!&quot;. I&#x27;m not young and I still find this article poor.<p>After going through the first two thirds of the article with mostly uninteresting &quot;I&#x27;m old; I know better&quot; detours, the author seems to sort of relate React to &quot;reactive&quot;, and goes on yet another detour on unrelated architecture. So, we&#x27;re now reaching the end of the article and the only conclusion we get is... hey, stuff is hard, you need to do the work, you can&#x27;t avoid putting in effort. And... that&#x27;s it. That&#x27;s all there is to the article. Eh.
评论 #32963203 未加载
fifticon超过 2 年前
I agree with this guy. I can see that his tone unfortunately irks many to take offense and post. I am sad that microsoft has so dropped the ball on UI, that even MS&#x27; own teams use web tech to build apps nowadays.<p>I particularly lament that scroll bars have become a lost art. We have gone from scroll bars working perfectly in windows 3.1, to .. whatever passes for a scrollbar these days.<p>Often they are even hidden, so you have no idea how big the document is,or where you are in it. But it sure does look minimal and slick, until you have to actually use the thing. Many established keyboard shortcuts are going missing,but that is OK, since modern people dont like keyboards.<p>My favorite is when installing current windows 10, when you select language and country. You get a list that displays .. 4 items at a time, from hundreds of choices. Unlike earlier versions, you can no longer press a key to jump to a letter. You must page through the whole list. Sorry if I made more millenials cry.
评论 #32961288 未加载
评论 #32961873 未加载
评论 #32962020 未加载
评论 #32961363 未加载
评论 #32962241 未加载
chris_armstrong超过 2 年前
This article is weird linking together many unrelated strands of thought.<p>Like linking reactive programming to “reactive” UIs, when really they mean UIs that are forgiving to their users instead of breaking down.<p>Or how by coding on the web we’ve lost the immediacy of a UI that runs on our desktop, and the primitives (like undo&#x2F;redo stacks) that make desktop user interfaces friendlier, at least without having to build them ourselves.<p>And that new UI frameworks show up claiming to solve the problems that React creates with complexity, by forgoing the functionality that React provides that they pretend is unimportant by hiding behind toy examples.<p>There’s actually not much in this article that doesn’t resonate with a jaded millenial like myself who knows their computer history, but could have been expressed more cohesively.
评论 #32960235 未加载
评论 #32962594 未加载
评论 #32966115 未加载
AaronFriel超过 2 年前
I thought this was the most insightful part, though it would be the second most if the author did more than allude to conflict-free replicated data types.<p>Whenever you build a tiny language for the purpose of templating, it&#x27;s worth asking yourself if it&#x27;s really worth it to have to reinvent variables, loops, branches, scoping, expressions, and functions... Poorly.<p>&gt; Many competing frameworks acted like this wasn&#x27;t so, and stuck to the old practice of using templates. They missed the obvious lesson here: every templating language inevitably turns into a very poor programming language over time. It will grow to add conditionals, loops, scopes, macros, and other things that are much nicer in actual code. A templating language is mainly an inner platform effect. It targets a weird imagined archetype of someone who isn&#x27;t allergic to code, but somehow isn&#x27;t smart enough to work in a genuine programming language. In my experience, this archetype doesn&#x27;t actually exist. Designers don&#x27;t want to code at all, while coders want native expressiveness. It&#x27;s just that simple.
评论 #32959966 未加载
评论 #32961262 未加载
crooked-v超过 2 年前
This post ultimately seems to spend a long time complaining about other people not putting in the effort to fix the problems of React... while the author doesn&#x27;t offer any solutions or even ideas for solutions.<p>Also, the author makes repeated digs at React 18&#x27;s concurrent mode work while at the same time complaining about the kind of stuff concurrent mode is supposed to fix (for example, React updates not happening fast enough to keep up with mouse dragging).
评论 #32959711 未加载
评论 #32960003 未加载
TN1ck超过 2 年前
The author of this article also wrote the for me mind blowing things like MathBox2 [0], the Pixel Factory [1] and many more. The often mentioned clone of React in the article, described in &quot;The GPU Banana Stand&quot; [2] is something that wasn&#x27;t heavily discussed here as I think the concepts are just very advanced. I mention this as I believe this is what the author is concerned about and what some might haven&#x27;t experienced. Using React for &quot;advanced&quot; things were it just doesn&#x27;t cut it and one has to go back to manual DOM manipulation, or having to dig very deep to understand how one can build UIs were the elements update 60 times per second. React works great for things were this is not a concern, but if the standard has these innate restrictions, what applications will the future hold if all people know is React?<p>Though not a fan of some rants and the bashing on Zoomers, give them a chance to build the next iteration of the common tools, the oldest Zoomer is 25 at the moment.<p>[0]: <a href="http:&#x2F;&#x2F;acko.net&#x2F;files&#x2F;pres&#x2F;siggraph-2014-bof&#x2F;online.html" rel="nofollow">http:&#x2F;&#x2F;acko.net&#x2F;files&#x2F;pres&#x2F;siggraph-2014-bof&#x2F;online.html</a><p>[1]: <a href="https:&#x2F;&#x2F;acko.net&#x2F;files&#x2F;gltalks&#x2F;pixelfactory&#x2F;online.html#17" rel="nofollow">https:&#x2F;&#x2F;acko.net&#x2F;files&#x2F;gltalks&#x2F;pixelfactory&#x2F;online.html#17</a><p>[2]: <a href="https:&#x2F;&#x2F;acko.net&#x2F;blog&#x2F;the-gpu-banana-stand&#x2F;" rel="nofollow">https:&#x2F;&#x2F;acko.net&#x2F;blog&#x2F;the-gpu-banana-stand&#x2F;</a>
评论 #32962690 未加载
ccorcos超过 2 年前
&gt; Every templating language inevitably turns into a very poor programming language over time.<p>This realization is what initially sold me on React. I just wanted program and build abstractions with an actual programming language!
评论 #32959929 未加载
评论 #32967027 未加载
Existenceblinks超过 2 年前
&gt; Crucially, none of the React alternatives solve this<p>FFS. The context is the web, nobody solves graphic problem like gaming for you, or need to. At this point it doesn&#x27;t matter because HTML&#x2F;DOM stuff is not going to suffice what you are talking about either.<p>I honestly think after reading 50% of the article is all about bragging knowing history. I&#x27;m not old but I was there too. WIN32, MFC, QT, 8086 assembly whatever. I got a god damn computer engineering degree too but doesn&#x27;t make me smarter, having better vision, knowing solution better than random ppl on the internet.<p>I&#x27;m not sure what&#x27;s the point of React here nor &quot;Saving React&quot;. Why it needs to be saved in which sense.<p>Do you mean, saving the web from React?
评论 #32960072 未加载
评论 #32960005 未加载
评论 #32960714 未加载
评论 #32961201 未加载
评论 #32960106 未加载
评论 #32961040 未加载
foobarbecue超过 2 年前
I wonder about this:<p>&gt; A templating language ... targets a weird imagined archetype of someone who isn&#x27;t allergic to code, but somehow isn&#x27;t smart enough to work in a genuine programming language. In my experience, this archetype doesn&#x27;t actually exist.<p>In my day job, I write &quot;sequences&quot; to command a spacecraft, in a neutered &quot;sequencing language&quot; with conditionals but no looping. Several people on our team who are great at writing sequences for the spacecraft feel they &quot;can&#x27;t code&quot; and don&#x27;t learn other languages. I had assumed the deal with templating languages was similar and this type of people were the target users.
评论 #32961780 未加载
absolutelynobo超过 2 年前
As a web application and zoomer myself, I haven’t the faintest idea what this article is talking about.
评论 #32960004 未加载
评论 #32960655 未加载
makeitdouble超过 2 年前
&gt; The very notion of &quot;back-end&quot; is a fallacy: it implies that one can produce a useful, working system, without ever having to talk to end-users.<p>This is a small part of the rant, but he is fundamentally mistaken about what backends are. The real life equivalents are not bridges, but kitchens or back-offices: a place where you make the sausage so that the customer can have a delightful experience without the gory business part in sight.<p>It’s not disconnected from end-users, quite he opposite, as it’s suppose to realize the core value of the product.<p>I don’t agree with a lot of other parts of the rant either, but the global message of “react needs to evolve in a different direction” is I think interesting.
agumonkey超过 2 年前
Funny how reactive seems recent for people, while dataflow &#x2F; dag based visuals are old in the movie&#x2F;cgi industry :)<p>It always pains me to remember a p2 cpu could do realtime nurbs procedural animation (very complex) and yet we still have manual state machines for simpler tasks like documents &#x2F; filesystems etc<p>This article is right that there&#x27;s a lot to gain in terms of ergonomics by finding leaner ways. I also think the web stack and dev culture is ready to respond well to this idea.
torginus超过 2 年前
&gt;A templating language is mainly an inner platform effect. It targets a weird imagined archetype of someone who isn&#x27;t allergic to code, but somehow isn&#x27;t smart enough to work in a genuine programming language. In<p>Strange sentiment. Isn&#x27;t React templating as well? Besides one of the most famous use of templates is macros (in C as well as other languages). Would people who generate code be allergic to coding?
评论 #32960169 未加载
qprofyeh超过 2 年前
Author uses a tone, terms and phrases (FOB) that are really off putting. It’s sad because the subject is interesting. Luckily this HN thread is great.
评论 #32960774 未加载
LAC-Tech超过 2 年前
<i>Nevertheless, when it appeared on the scene, it was wild: you&#x27;re going to put the HTML and CSS in the JavaScript? Are you mad?</i><p>I still think plain old CSS - separate from any JS or HTML or JS that generates HTML - is the way to go.<p>Just so much easier and less brittle. I get that CSS being too hard for binary tree inverting geniuses to learn is now widely accepted folk wisdom, but it&#x27;s really not true.
评论 #32964671 未加载
stasm超过 2 年前
&gt; When you rename or move a file that you&#x27;re editing, its window instantly reflects the new name and location.<p>How does macOS achieve its reactivity? Is it two-way bindings? Events&#x2F;messages? Immediate mode re-renders?
评论 #32960297 未加载
评论 #32963369 未加载
personjerry超过 2 年前
Interesting observations about Mac vs Windows, but the article kinda trailed off into weak complaints and then unrelated rambling altogether
bdcravens超过 2 年前
The fancy spotlight rays thing going on in the background is crazy distracting.<p>Ended up disabling Javascript on the site to make it readable (ironic I know)
encryptluks2超过 2 年前
&gt; We&#x27;re Saving React<p>Website proceeds to slowly load and runs like crap.
评论 #32960657 未加载
DonHopkins超过 2 年前
&gt;But this is the same company that seamlessly transitioned its entire stack from PowerPC, to x86, to x64, and eventually ARM, with most users remaining blissfully unaware this ever took place.<p>Also from 6502 to 65C03 to 65C816 to 68k to PowerPC... But Apple ][ users were painfully aware of the 68k transition. ;)
评论 #32964694 未加载
mkl95超过 2 年前
&gt; Now, before you close this tab thinking &quot;ugh, not another tech rant&quot;, let me first remind you that a post is not a rant simply because it makes you angry. Next, let me point out that I&#x27;ve been writing code for 32 years<p>Well I closed that tab.
评论 #32961421 未加载
评论 #32960851 未加载
bagels超过 2 年前
&quot;Both the orange and red site recently spilled the tea about how mean Uncle React has been&quot;<p>Anyone know what this means?
评论 #32959961 未加载
评论 #32959702 未加载
评论 #32959649 未加载
评论 #32959650 未加载
评论 #32959648 未加载
Aeolun超过 2 年前
Despite them saying it’s not. This is just another variant of old man yells at cloud.
AtNightWeCode超过 2 年前
The fundamental flaw of this article is that React as far as I know never claimed to solve all these issues. React mainly handles state and rendering. It is also a common crticism of React. The opposite is a common crticism of Angular. Maybe the article should have been about Angular.
makeitdouble超过 2 年前
The more I think about it, the more this plea to push web frameworks in the direction of desktop apps feels misguided.<p>I know Chrome OS is really seen as the way forward for many many people, but what if they are just betting on the trend to last, when it is just the usual cycle of “applets” vs local applications ?<p>The same way Java was pushed in the browser, to then cement its role in desktop apps (or the Flash -&gt; Air progression), wouldn’t javascript heavy work sites at some point move to a native JS hooked into the system and opening the door to system wide drag and drop, undo etc.
wildermuthn超过 2 年前
Except for the non-dancing zoomers catching stray bullets at the end, this is a really great rant. He’s absolutely right that React won for very good reasons, reasons that new frameworks don’t seem to understand by making old mistakes (templates and directives, looking hard at you). But the rant goes deeper in its accusation that React (and the web) has forgotten the past as well. React (and the web in general) isn’t a great solution for data that is 1) real-time, 2) multi-user, and 3) contextually undo-able.<p>He’s not wrong, but I wonder what kind of applications he’s working on that require all three of those characteristics simultaneously. If you only need 2 out of his 3 data requirements, then React + Apollo can handle it just fine in experienced hands.<p>For apps that truly do need all 3 capabilities, the problem isn’t React per-se. The problem is that such apps are just complex by their very nature — even by reducing accidental complexity to zero, you are still stuck with a huge amount of essential complexity. That’s just the nature of the beast.<p>Although I have long since moved on from Clojure since Rich Hickey made it clear Clojure was not about me but about him and his consulting business, you really need a powerful language like Clojure to do something as tricky as the author wants poor little JS to do. Someone one described JS as a cute dog with three legs — you feel for it, and take care of it, but you know it really isn’t capable of too much. A hard problem needs a powerful tool, and nothing written in JS (kinda-typed or not) is going to get the job done.
anthk超过 2 年前
Adium was just Cocoa Pidgin :p.<p>And, well, Kopete was pretty much the &quot;Adium&quot; for Linux&#x2F;BSD, and KDE3.5 (once you disabled Artsd and enabled DMIX on the Penguin) it was a beast.
wheelerof4te超过 2 年前
Can any Web Dev framework survive long enough to be stable?<p>If I learn some fancy framework today, I expect to use it for years to come else my knowledge and time is wasted.
评论 #32962426 未加载
评论 #32961316 未加载
199X超过 2 年前
I can&#x27;t read and it&#x27;s hard to take serious a rant about front-end in a website that doesn&#x27;t work in dark-mode
amelius超过 2 年前
How can React be so great if Facebook&#x27;s own UI sucks. They can&#x27;t even get the back button to work correctly.
评论 #32967703 未加载
AtNightWeCode超过 2 年前
Did not get the point about back- end. But does people remember how FB used to work? After going to the start-page and some clicks it had sent 1000+ requests. This was back when you could expect max 5 connectios per domain. The site was slow. The Android app was basically just a spinner.
Fervicus超过 2 年前
Okay, so how are we saving React?
llIIllIIllIIl超过 2 年前
React now is as mature as PHP4. Wake me up when it gets to PHP7 at least.
评论 #32964724 未加载
arminluschin超过 2 年前
I guess we’re in the “orange” site right now. What is the “red” site?
评论 #32961825 未加载
评论 #32961727 未加载
EugeneOZ超过 2 年前
Hey, author!<p>I also remember something, and you forgot to mention it: other frameworks were honestly saying that they took some ideas from React (or improved their solutions being inspired by React’s ideas).<p>I don&#x27;t think it was a good idea to use such a hostile style of writing - it is ok for web frameworks to evolve. It is more than ok to share ideas. Every time I see that some new framework took some idea of React (or Ember, or Angular, or PHP) - I see the “credits”, the authors are not trying to hide it.<p>Some people are criticizing some frameworks - it is ok, no need to start holy wars because of that. Valid criticism will help, pointless toxicity will just shade away.
nathias超过 2 年前
I&#x27;m a React dev, I wish I could be working with svelte.
评论 #32962592 未加载
akdor1154超过 2 年前
If I can rant at this quality when I have children, I&#x27;ll consider my life to have been well lived and fulfilling.
pkrumins超过 2 年前
HTML tag has entered the chat.
DonHopkins超过 2 年前
&gt;So what exactly did we lose? It&#x27;s quite simple: by moving software into the cloud and turning them into web-based SaaS offerings, many of the basic affordances that used to be standard have gotten watered down or removed entirely. Here are some examples:<p>&gt;Menus let you cross over empty space and other menu items, instead of strictly enforcing hover rectangles.<p>I know the guy, Frank Leahy, who implemented that feature invented by Bruce &quot;Tog&quot; Tognazzini.<p>When he was at Apple, he rewrote the Menu Manager for Mac SE and Mac II.<p>We were working together on a project at Current TV, and reminiscing about how great the original Apple Human Interface guidelines were, and how Apple had totally lost their original devotion to excellent user interface design, and I mentioned how the original edition of the Apple HIG book I had actually illustrated, documented, and justified that subtle feature.<p>Frank proudly told me he was the one who implemented it for the Menu Manager, and that he was touched that somebody actually noticed and appreciated it as much as I did.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17404401" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17404401</a><p><a href="https:&#x2F;&#x2F;bjk5.com&#x2F;post&#x2F;44698559168&#x2F;breaking-down-amazons-mega-dropdown" rel="nofollow">https:&#x2F;&#x2F;bjk5.com&#x2F;post&#x2F;44698559168&#x2F;breaking-down-amazons-mega...</a><p>&gt;Breaking down Amazon’s mega dropdown [...]<p>&gt;DonHopkins on June 26, 2018 [–]<p>&gt;The comments are actually great -- even Tog weighs in! It also mentions Frank Lehey, who rewrote the Menu Manager for Mac SE and Mac II.<p>&gt;Jake Smith • 5 years ago This was first implemented by Apple&#x27;s HID team back in the 80s, specifically Bruce Tognazzini, I believe.<p>&gt;Bruce &quot;Tog&quot; Tognazzini Jake Smith • 5 years ago Yes, I did invent it back in 1986 and it is firmly in the public domain. From what I remember, it was Jim Batson who worked out the math and coded it for the Mac OS. The OS X team later failed to copy the algorithm, so I am happy to see that amazon has resurrected it.<p>&gt;Josh Davenport Jake Smith • 5 years ago I think it was yes. It looks like it was originally implemented by NeXT and then removed by Apple when they bought NeXT. Tog himself talks about what happened here: <a href="https:&#x2F;&#x2F;www.asktog.com&#x2F;columns&#x2F;022DesignedToGiveFitts.html" rel="nofollow">https:&#x2F;&#x2F;www.asktog.com&#x2F;columns&#x2F;022DesignedToGiveFitts.html</a> in the answer to question 6 - &quot;When I specified the Mac hierarchical menu algorthm in the mid-&#x27;80s, I called for a buffer zone shaped like a &lt;, so that users could make an increasingly-greater error as they neared the hierarchical without fear of jumping to an unwanted menu...........Sadly, the NeXT folks, when coming to Apple, copied Windows, rather than the Mac&quot;<p>&gt;markr_7 • 5 years ago Can&#x27;t comment on the HID team, Bruce, or possibly the many times it was even implemented at Apple, but as a young developer at Apple in the 80s, I remember stopping by Frank Leahy&#x27;s office as he was tweaking his code to get menus to &quot;work right.&quot; I&#x27;ve often recalled the experience because of the time he was spending to get it right, and how the behavior wasn&#x27;t simple once you started really trying to meet a users expectations. If I remember right it wasn&#x27;t just the direction, but also time and therefore velocity. For example, you wouldn&#x27;t want to stick with the wrong menu if the user wasn&#x27;t really moving with purpose in the direction of the sub-menu.
gardenhedge超过 2 年前
What is with vocal programmer types and their love for dancing?
impetus1超过 2 年前
It&#x27;s not like react messaging can be used with Emacs..
faangiq超过 2 年前
&gt;what’s a computer? t. average zoomer
DonHopkins超过 2 年前
&gt;Many competing frameworks acted like this wasn&#x27;t so, and stuck to the old practice of using templates. They missed the obvious lesson here: every templating language inevitably turns into a very poor programming language over time. It will grow to add conditionals, loops, scopes, macros, and other things that are much nicer in actual code. A templating language is mainly an inner platform effect. It targets a weird imagined archetype of someone who isn&#x27;t allergic to code, but somehow isn&#x27;t smart enough to work in a genuine programming language. In my experience, this archetype doesn&#x27;t actually exist. Designers don&#x27;t want to code at all, while coders want native expressiveness. It&#x27;s just that simple.<p>This is exactly what I was getting at when I wrote this recent post about Smarty (in response to the following parent comment proposing building a crippled scripting system for designers), to which somebody insightfully commented &quot;Someone doesn’t like Smarty…&quot;<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32886317" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32886317</a><p>parent&gt; Even in game development, it often turns out to be a huge mess that coders have to go and sort out after the fact, it&#x27;s almost inevitable if it&#x27;s general purpose enough. If you do decide to build a scripting system for designers, I would recommend being very conservative with features and thinking twice before adding any new feature.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32886424" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32886424</a><p>&gt;DonHopkins 5 days ago | prev [–]<p>&gt;Just hire competent and trustworthy designers, instead of purposefully crippling the tools you spend so much time developing. The best designers can also code, and if you design a system that discourages instead of encourages designers from coding, you&#x27;re wasting the potential of those precious coder&#x2F;designers, and wasting the opportunity to train your best designers to code too.<p>&gt;It&#x27;s not as if Rock Star can&#x27;t find anybody qualified who wants to work for them, or any designers who are willing to learn to code in a powerful visual scripting language.<p>&gt;This attitude causes disasters like PHP&#x27;s &quot;Smarty&quot; templating language.<p>&gt;PHP was already a templating language, but somebody got it in their head that there should be an iron-clad separation between designers and programmers, and that PHP gave designers too much power and confused them, and that their incompetent untrustworthy designers who refused to learn anything about programming deserved something even &quot;simpler&quot; than PHP, so they came up with Smarty.<p>&gt;Then over time the realized that their designers were powerless, so their programmers would have to learn TWO languages so they could wade into the Smarty templates to make them actually work with all the extra code they had to write because Smarty was so crippled, so they nickle-and-dimed more and more incoherent programming language elements into Smarty, making it EVEN HARDER to use and more complicated and less consistent than PHP, yet nowhere near as powerful.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20736574" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20736574</a><p>DonHopkins on Aug 19, 2019 | parent | context | favorite | on: YAML: Probably not so great after all<p>One of the most ridiculous examples of this was the Smarty templating language for PHP.<p>Somebody got the silly idea in their head of implementing a templating language in PHP, even though PHP is ALREADY a templating language. So they took out all the useful features of PHP, then stuck a few of them back in with even goofier inconsistent hard-to-learn syntax, in a way that required a code generation step, and made templates absolutely impossible to debug.<p>So in the end your template programmers need to know something just as difficult as PHP itself, yet even more esoteric and less well documented, and it doesn&#x27;t even end up saving PHP programmers any time, either.<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20100226023855&#x2F;http:&#x2F;&#x2F;lutt.se&#x2F;bl" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20100226023855&#x2F;http:&#x2F;&#x2F;lutt.se&#x2F;bl</a>...<p>&gt;Bad things you accomplish when using Smarty:<p>&gt;Adding a second language to program in, and increasing the complexity. And the language is not well spread at all, allthough it is’nt hard to learn.<p>&gt;Not really making the code more readable for the designer.<p>&gt;You include a lot of code which, in my eyes, is just overkill (more code to parse means slower sites).<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20090227001433&#x2F;http:&#x2F;&#x2F;www.rantin" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20090227001433&#x2F;http:&#x2F;&#x2F;www.rantin</a>...<p>&gt;Most people would argue, that Smarty is a good solution for templating. I really can’t see any valid reasons, that that is so. Specially since “Templating” and “Language” should never be in the same statement. Let alone one word after another. People are telling me, that Smarty is “better for designers, since they don’t need to learn PHP!”. Wait. What? You’re not learning one programming language, but you’re learning some other? What’s the point in that, anyway? Do us all a favour, and just think the next time you issue that statement, okay?<p><a href="http:&#x2F;&#x2F;www.ianbicking.org&#x2F;php-ghetto.html" rel="nofollow">http:&#x2F;&#x2F;www.ianbicking.org&#x2F;php-ghetto.html</a><p>&gt;I think the Broken Windows theory applies here. PHP is such a load of crap, right down to the standard library, that it creates a culture where it&#x27;s acceptable to write horrible code. The bugs and security holes are so common, it doesn&#x27;t seem so important to keep everything in order and audited. Fixes get applied wholesale, with monstrosities like magic quotes. It&#x27;s like a shoot-first-ask-questions-later policing policy -- sure some apps get messed up, but maybe you catch a few attacks in the process. It&#x27;s what happened when the language designers gave up. Maybe with PHP 5 they are trying to clean up the neighborhood, but that doesn&#x27;t change the fact when you program in PHP you are programming in a dump.
评论 #32968201 未加载
rco8786超过 2 年前
What is the red site
评论 #32961922 未加载
pier25超过 2 年前
I&#x27;ve been doing front end since the late 90s and I disagree with many points here.<p>One thing I do agree is the rant at the end about zoomers. We see stuff like tailwind popping up which really reflects the zoomer ethos of not wanting to learn fundamental stuff like CSS. &quot;It&#x27;s so easy to get started! Why would I learn anything else?&quot;<p>I think gen Xers and late boomers will be the most tech developped generations because we had to use computers that were hard to use.
评论 #32962827 未加载
评论 #32964774 未加载
pts_超过 2 年前
React was the next jquery.