TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Just Say No to JavaScript

32 pointsby emreb5 months ago

23 comments

glutamate5 months ago
The author never actually says what is so wrong with JavaScript. I think it is quite a good dynamically typed language, and it certainly has some very high-performance implementations. If you don&#x27;t like it, just use something else?<p>&gt; Ultimately, JavaScript was the right thing at the right time. It ended up being folded, spindled, and mutilated to serve purposes that it isn’t well suited for<p>Counterpoint: many quirks in the language were addressed, e.g. introduction of === and with ESLint you get many of the practical advantages of a type checker. And when you need more safety, sprinkle TypeScript on top.<p>What I really want for Christmas is a TypeScript-to-native compiler.
评论 #42375648 未加载
评论 #42375676 未加载
bambax5 months ago
This is a plea to use TypeScript instead of JS. Why not. Strong typing is certainly great. But the reason I don&#x27;t use TypeScript isn&#x27;t any of those listed: it&#x27;s because it needs a compilation step, and I don&#x27;t want that.
评论 #42375618 未加载
评论 #42377094 未加载
评论 #42376179 未加载
评论 #42375554 未加载
评论 #42375649 未加载
mythz5 months ago
I&#x27;ll happily use TypeScript for all my UI components, libraries and server code, most of the time with Bun thanks to its OOB support for TypeScript.<p>But for Web UIs I&#x27;ll drop down to a #NoBuild &quot;Simple, Modern JavaScript&quot; [1] i.e. using JS Modules + JSDoc Type Annotations to avoid needing any npm modules&#x2F;build steps&#x2F;etc. I still benefit from a library&#x27;s TypeScript definitions&#x2F;VS Code intelli-sense&#x2F;static analysis&#x2F;etc but completely avoid any build&#x2F;bundling complexity for the cost of a slightly more verbose syntax in JSDoc type hints.<p>I&#x27;d happily move to using ECMA Type Annotations proposal [2] if it ever got accepted, but alas TC39 moves slowly...<p>[1] <a href="https:&#x2F;&#x2F;servicestack.net&#x2F;posts&#x2F;javascript" rel="nofollow">https:&#x2F;&#x2F;servicestack.net&#x2F;posts&#x2F;javascript</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-type-annotations">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-type-annotations</a>
评论 #42375956 未加载
dmmartins5 months ago
I don&#x27;t get the &quot;type checking is the solution for the problems of the world&quot;. A lot of good things were&#x2F;are written without type checking. Most of the problems I see in production have nothing to do with the wrong type being used or some forgotten required parameter. Also, typescript is just javascript with a mustache. It&#x27;s the same thing
评论 #42376127 未加载
评论 #42375876 未加载
Maksadbek5 months ago
Post &quot;Say no to JavaScript&quot; on a website that heavily uses javascript... ironic
评论 #42375638 未加载
1vuio0pswjnm75 months ago
I have said no to Javascript for over 20 years for reasons having nothing to do with the language. I actually like the way Javascript looks because it looks much like C. I have no problem with the Javascript language.<p>But Javascript is the language of choice for programs (scripts) that I do not care to run. By default, these undesired Javascripts are executed automatically with no user input when one uses a so-called &quot;modern&quot; web browser.<p>As such, I do not run Javascript. As it happens, the language is closely associated with the so-called &quot;modern&quot; browser, a program that I consider too big, too complex and too dificult to control. It takes far too long to compile, assuming the source code is even available.<p>I am submitting this comment without using a &quot;modern&quot; web browser.
评论 #42380871 未加载
jacknews5 months ago
&quot;Typing everything allows you to clearly and succinctly declare intentions with your code as well as enforce those intentions throughout your code base. For an application with many developers, being able to clearly and definitively express what code does is a huge advantage over code that requires a fellow developer to spend cognitive energy to figure that out.&quot;<p>Types are definitely useful in the fight to &#x27;make invalid states impossible&#x27;, but this rather overstates the case. They go only a very little way in documenting intent.
rckt5 months ago
I never understood people discussing JS and TS as different entities. TS is JS, but with types. But to be fair I can&#x27;t imagine now using untyped JS without an LSP of some sort.
ghjfrdghibt5 months ago
I don&#x27;t see JavaScript as the webbrowsers assembly, and whilst it can be, don&#x27;t agree that the web browser is the new operating system. These are the two predicates used to justify the author&#x27;s argument to use typescript.<p>I don&#x27;t have a problem using typescript, but prefer dart if you need a strongly typed (null safe) language.
baerrie5 months ago
I think the flexibility of JS forces you to be intentional with your code composition in order for it to not be a huge mess, which makes better programmers. With that being said, many programmers don’t want to think that hard so they rely on railroaded overly opinionated languages or write bad JS
greener_grass5 months ago
JavaScript is a very capable language. It has better functional programming support than Java and Python. It has fewer footguns that C++. You can start with a scrappy prototype then gradually add type-checking later. Of the mainstream languages, it&#x27;s actually one of the better ones!
评论 #42376584 未加载
andrewstuart5 months ago
I promised myself I wouldn&#x27;t respond to ridiculous posts on the Internet with zero credibility.
JohnDeHope5 months ago
I hope wasm becomes the assembly language of the web, before JavaScript does.
medo-bear5 months ago
Meanwhile in lisp world no one really cries about type errors. I wonder why
评论 #42375931 未加载
qayxc5 months ago
The author seems to ignore the fact that type hints are a thing even with plain JS. Serious question: does the author &quot;just say no to Python&quot; as well?<p>If lack of explicit typing is the issue, then his rant would apply to most scripting languages and to single out JS seems odd to me...
评论 #42375908 未加载
评论 #42375579 未加载
dave3335 months ago
Most code doesn&#x27;t last long enough to need maintenance.
nottorp5 months ago
Translation: type less languages get messy when the project size grows. This is not only about javascript, it&#x27;s also about python and whatever else is in fashion.<p>Still, the title is disappointing because switching to a type checked dialect of JS won&#x27;t fix the bloat issues that are fundamental to the browser as a platform.
评论 #42375728 未加载
lproven5 months ago
How disappointing.<p>It is not at all &quot;say no to JS&quot;. It&#x27;s &quot;use my preferred flavour of JS instead.&quot;<p>I want to return to the pre-JS internet and especially the pre-JS Web.<p>Say no to Javascript <i>at all</i> in any variant. Also say no to PHP. Nothing of lasting value to humanity would be lost if both of them went away completely, forever.
评论 #42375934 未加载
daft_pink5 months ago
Python is good for beginnners. Javascript ain’t.
petercooper5 months ago
I thought this was a parody of Guardian-style opinion columns at first. You know, <i>&quot;I have a strong opinion and here are Y meandering and mildly amusing&#x2F;lighthearted reasons why&quot;</i> op-eds.<p>I <i>like</i> opinion columns and would love to see more about software development, but this one feels like it&#x27;s going for the lowest of hanging fruit. Anyone who cares about JavaScript either way will already have an opinion and won&#x27;t be won over by a humorous take.<p>I do like the author&#x27;s style though, so don&#x27;t interpret this as crapping on his work. Looking at the &quot;More from this author&quot;, it seems this is his genuine style, and I found some of his other pieces to be good reads. More please.
tobyhinloopen5 months ago
I was disappointed to read this is just a &quot;Use TypeScript&quot; instead.<p>Look, you can hot glue and tape all the types you want, but it is still JavaScript. No amount of compiler-enforced comments is changing that.
评论 #42375682 未加载
rco87865 months ago
I&#x27;m a fan of TS, and have no issue with people&#x27;s opinions on programming languages. But come on, the whole &quot;built in a week&quot; thing is pretty tired at this point. There have been many, many major iterations on Javascript since the 90s. There&#x27;s nothing inherently wrong with vanilla JS these days. It has a few quirks like every language does, but overall generally does what you expect it to do.
DecoySalamander5 months ago
This kind of rant, culminating in a hackneyed &quot;created in a week&quot; insult, usually comes from backend developers who jumped into frontend work thinking it was a silly little thing that could be mastered in under an hour, discovered that it was a whole separate field, and still failed to adjust their priors.<p>This time it comes from a &quot;former Delphi product manager&quot; turned clickbait writer. I just hope that my visit with adblock enabled didn&#x27;t generate any form of income for him or his website.
评论 #42376228 未加载
评论 #42375743 未加载
评论 #42376111 未加载
评论 #42377262 未加载