Live data from Hacker News

Deno Is Webby

blog.jim-nielsen.com

141–150 of 215 posts

Re: Deno Is Webby

#141

Earlier quoted context omitted.

What betamax effect? Didn't it fail since the cartridge design was worse and also held less tape than vhs?

No. It failed because JVC saturated the market with incompatible and inferior VHS before Beta could get there.

It failed because the porn companies all went for VHS (for licensing reasons iirc).

Porn companies have decided basically every format war (including pioneering streaming).

Re: Deno Is Webby

#143

Earlier quoted context omitted.

Alert doesn't lock your browser. The developer can spend a lot of time and effort to make an even more intrusive and annoying custom alert. Why should I as a user have to endure instagram and twitter blocking content with a delayed login prompt that cannot be canceled? Because they can. Browser APIs or not malicious developers will be malicious.

Yes it does. You can't click on the URL bar and just navigate to a different site in chrome while an alert is displayed.

You can in firefox (just tried from the console).

Re: Deno Is Webby

#144

Earlier quoted context omitted.

A standard library, a proper date/time/timezone implementation, and robust number support (all sizes of integers and for the love of god Decimal). Every time I get excited about Deno and Typescript and all of that, I get so frustrated that 0.1 + 0.2 != 0.3 and that I need to find and vet a community Decimal library. (I know BigInt is a thing and Temporal is coming.)

I agree a standard library for JS would be great, but .1 + .2 != .3 is the case in several languages and is not anything to do with JS. This also is or can be the case in C, C++, Clojure, Python, and many other languages [1]. [1] https://0.30000000000000004.com

Yes... It's an artifact of floating points. My issue is that JS only has floating points and not Ints and Decimal.

Re: Deno Is Webby

#145
post #4

This is nice, until its not. I have spent a fair amount of time over the last several years trying to make node act like the browser, or vice versa. It's doubly confusing to juniors who don't understand the difference between a language and a runtime. alert() looks like a standard function and should be specified by the ECMAScript Language Specification. But its actually specified by the HTML standard, because its Wi…

This has also unfortunately been my experience, even when working with developers that have several years of experience writing JS. There seems to be a big gap in knowledge when it comes to boundaries between the language specification, runtimes, and innate abilities. People consistently confused about why they can't use JSX without a build-step, not understanding that JSX isn't "real", why doesn't fetch() work in No…

JS is the only programming language I know of where people read zero docs and still decide they know how to write it.

They wouldn't dream of this with C, Java or even python (even though these probably work exactly like other languages they know -- unlike JS), but for some reason perfectly smart developers make this crazy decision all the time.

Re: Deno Is Webby

#146

Earlier quoted context omitted.

This has also unfortunately been my experience, even when working with developers that have several years of experience writing JS. There seems to be a big gap in knowledge when it comes to boundaries between the language specification, runtimes, and innate abilities. People consistently confused about why they can't use JSX without a build-step, not understanding that JSX isn't "real", why doesn't fetch() work in No…

Thus makes me feel less junior than I sometimes feel. I may not have a CS degree but at least I understand a good amount of this stuff.

I sometimes think that a CS degree is part of the issue.

The things that make JS unique aren't even mentioned in a lot of degree programs.

Larry Wall famously said the three virtues of a programmer are impatience, laziness, and hubris. Not learning JS is at the exact intersection where people do all of these at the same time and meet with epic failure. People seem to think to themselves, "I learned Java and this looks like Java, so it must act like java" and so they run down the completely wrong path.

Re: Deno Is Webby

#147

Earlier quoted context omitted.

It's so good I worry about the Betamax effect

What betamax effect? Didn't it fail since the cartridge design was worse and also held less tape than vhs?

Technology Connections has some decent videos on the topic.

https://www.youtube.com/watch?v=FyKRubB5N60&list=PLU_9ndwi4C...

Re: Deno Is Webby

#148

Earlier quoted context omitted.

I agree a standard library for JS would be great, but .1 + .2 != .3 is the case in several languages and is not anything to do with JS. This also is or can be the case in C, C++, Clojure, Python, and many other languages [1]. [1] https://0.30000000000000004.com

Yes... It's an artifact of floating points. My issue is that JS only has floating points and not Ints and Decimal.

JS has had integers since pretty much day 1 with bitwise operators. They just (from a user perspective) convert back afterward. If you were choosing just one though, floats would definitely be a better choice than integers.

It's also possible to make length 1 typed arrays of integers and operate on them if you really need. Then, as you mention there's BigInt numbers which are supported on the last few versions of every major browser except IE11.

Re: Deno Is Webby

#149

Earlier quoted context omitted.

I agree a standard library for JS would be great, but .1 + .2 != .3 is the case in several languages and is not anything to do with JS. This also is or can be the case in C, C++, Clojure, Python, and many other languages [1]. [1] https://0.30000000000000004.com

Yes... It's an artifact of floating points. My issue is that JS only has floating points and not Ints and Decimal.

There is a stage 1 proposal for BigDecimal.

https://github.com/tc39/proposal-decimal

Re: Deno Is Webby

#150
I do wonder about a future where JavaScript gets non-enforced optional type annotation syntax[1] which is and if said syntax will be slightly incompatible with TypeScript. That would be a little awkward for Deno, wouldn’t it. However I hope that if JS gets type annotation syntax that it would be a strict subset of TypeScript—or at the very least future compatible—for this very reason.

1. https://github.com/giltayar/proposal-types-as-comments

Post reply on HN