News for hackers. Stuff that matters.
Re:Netscape and Sun Announce JavaScript (1995) by netdur on Friday December 04, 2020 @08:12AM (#25301864)
For what? Imagine a world without Javascript? You have mini extension in browser to just auto refresh gmail
Re:Netscape and Sun Announce JavaScript (1995) by tonyedgecombe on Friday December 04, 2020 @08:17AM (#25301904)
Imagine a world without Javascript?

What a dream.

Re:Netscape and Sun Announce JavaScript (1995) by RobAley on Friday December 04, 2020 @10:12AM (#25303069)
Be the change you want to see. Your personal website linked to from your HN profile consists solely of a Javascript game ... :)
Re:Netscape and Sun Announce JavaScript (1995) by _fat_santa on Friday December 04, 2020 @10:05AM (#25302984)
If we had a world without Javascript it would probably be some nightmare with SaaS companies building their apps in Flash or something.
Re:Netscape and Sun Announce JavaScript (1995) by untog on Friday December 04, 2020 @10:56AM (#25303715)
This notion always makes me laugh. Which is better, Google Maps or the old MapQuest pages that had arrows and reloaded the entire page when you wanted to move the map? I know which one I prefer.
Re:Netscape and Sun Announce JavaScript (1995) by Jean-Philipe on Friday December 04, 2020 @08:40AM (#25302095)
I'd be afraid flash would come back. Ah, those flashbacks...
Re:Netscape and Sun Announce JavaScript (1995) by grishka on Friday December 04, 2020 @09:34AM (#25302599)
Flash is better than JS to be honest. JS still hasn't caught up with ActionScript. The only bad part about Flash is that it's proprietary.
Re:Netscape and Sun Announce JavaScript (1995) by recursive on Friday December 04, 2020 @09:48AM (#25302771)
When flash was focused, my keyboard shortcuts didn't work. I hated it just for that.
Re:Netscape and Sun Announce JavaScript (1995) by grishka on Friday December 04, 2020 @09:34PM (#25311133)
Hm. I think it was a bug in some browsers but not others? I remember encountering it but I don't remember it as something persistent.
Re:Netscape and Sun Announce JavaScript (1995) by recursive on Saturday December 05, 2020 @10:52AM (#25315396)
I've used lots of different browsers. I never found a single environment where it ever worked right.
Re:Netscape and Sun Announce JavaScript (1995) by stolenmerch on Friday December 04, 2020 @12:15PM (#25304939)
I would agree that Actionscript 3 as an implementation of ECMAscript is more of a delight than JavaScript as a language which conforms to whatever version of ECMAscript. But compiling to VMs in the browser? Never again.
Re:Netscape and Sun Announce JavaScript (1995) by hutzlibu on Friday December 04, 2020 @01:17PM (#25305754)
Out of curiosity, what language would have replaced Javascript in you dream?
Re:Netscape and Sun Announce JavaScript (1995) by cesarb on Friday December 04, 2020 @08:39AM (#25302089)
> You have mini extension in browser to just auto refresh gmail

That existed without JavaScript (and IIRC it was somewhat common back when JavaScript was a novelty): <meta http-equiv="Refresh: 60">

Re:Netscape and Sun Announce JavaScript (1995) by ptx on Friday December 04, 2020 @10:04AM (#25302975)
Periodically tearing down the entire UI while the user is in the middle of using it is a terrible user experience.
Re:Netscape and Sun Announce JavaScript (1995) by TomGullen on Friday December 04, 2020 @11:49AM (#25304520)
That’s not how it was usually implemented though, you’d have frameless iframes that refreshed - eg for chat rooms etc
Re:Netscape and Sun Announce JavaScript (1995) by ptx on Friday December 04, 2020 @01:34PM (#25305944)
Did it preserve the scroll position when refreshing? If so, that might be OK for a chat room. But an email inbox is more interactive, so I think it would be jarring to have that refresh as you're poking at it.
Re:Netscape and Sun Announce JavaScript (1995) by simias on Friday December 04, 2020 @08:19AM (#25301926)
That was called an IMAP client. It was fine.
Re:Netscape and Sun Announce JavaScript (1995) by anoncake on Friday December 04, 2020 @08:44AM (#25302126)
It's still fine.
Re:Netscape and Sun Announce JavaScript (1995) by Wowfunhappy on Friday December 04, 2020 @09:25AM (#25302480)
I'm pretty sure the GP was joking.
Re:Netscape and Sun Announce JavaScript (1995) by PopeDotNinja on Friday December 04, 2020 @08:26AM (#25301982)
Development would be so much faster without JS. It could be done in a Flash.
Re:Netscape and Sun Announce JavaScript (1995) by viktorcode on Friday December 04, 2020 @11:50AM (#25304532)
It was supposed to be Scheme in the browser, not an inconsistent typeless error-prone mess.
Re:Netscape and Sun Announce JavaScript (1995) by ddevault on Friday December 04, 2020 @08:26AM (#25301972)
>For what? Imagine a world without Javascript?

What a pleasant way to begin my day. Thank you for this moment of bliss.

Re:Netscape and Sun Announce JavaScript (1995) by gspr on Friday December 04, 2020 @08:54AM (#25302206)
> You have mini extension in browser to just auto refresh gmail

Why would I ever want to touch a webmail interface with a 3 m pole?

Re:Netscape and Sun Announce JavaScript (1995) by grishka on Friday December 04, 2020 @09:33AM (#25302584)
> Imagine a world without Javascript?

That would've been a better world. Imagine the web that isn't an application platform. (it still isn't, but it's being actively shoehorned into becoming one)

Re:Netscape and Sun Announce JavaScript (1995) by 0xbadcafebee on Friday December 04, 2020 @11:04AM (#25303822)
Web browsers were not invented to be application platforms. They were intended to view documents and click through them.

Server-side applications (CGI) started the trend of the web browser becoming an application interface. Javascript made the web browser the application platform. But of course it was not designed for this, so a million hacks have been added to shore it up. To the point of literally including a standard to ship arbitrary binary executable programs into it. There used to be another tool and language which allowed you to ship arbitrary binary executable programs to remote systems... it was called Java.

The Web is the best example in history of how successful turd polishing can be. The global economy now rests on it.

Re:Netscape and Sun Announce JavaScript (1995) by wayneftw on Friday December 04, 2020 @01:41PM (#25306006)
> ...not invented to be application platforms.

Phones were invented to only make phone calls.

Coca-Cola was originally created as a way to counter morphine addiction.

Listerine was originally a floor cleaner.

None of those were turds and neither is the web as an application platform. Quite the opposite- Native apps suck compared to web apps. The only native apps I personally use besides the browser on my phone are Maps, Messages, Slack, Camera/Photos and those are only because there's no other choice. Imagine having to use an app instead of popping open the web browser to order from Amazon? Yeesh

Re:Netscape and Sun Announce JavaScript (1995) by 0xbadcafebee on Sunday December 06, 2020 @11:40PM (#25329368)
Right. Because Slack is such a joy to use in browsers that there is no native app needed.

Oh wait. Yes there is. It's the web app as a native app, because the browser experience literally wasn't good enough.

Saying web apps are superior to native apps is like saying a bicycle with a 2-stroke is superior to a motorcycle. Maybe for your use case it's better, but objectively it is literally a crappy imitation of the real thing that can't even do things the real thing can. A web app is the Visual Basic of applications (but not really since VB is so much more useful!)

Re:Netscape and Sun Announce JavaScript (1995) by wayneftw on Monday December 07, 2020 @01:59PM (#25335729)
> Saying web apps are superior to native apps is like saying a bicycle with a 2-stroke is superior to a motorcycle.

Nope, it's not like saying that at all.

Your entire argument rests on denying that Electron is a browser too. That's incorrect. Electron is just another browser, one that the web app developer happens to have more control over than they do Chrome. Every Electron app is a web app. Browsers have always handled the native bits for the web app and that's exactly what Electron does. (On the mobile side of things, React Native via something like Expo would be the equivalent of Electron on the desktop.)

Together, the browser and the web app form a native app because a browser is basically a scriptable native app. So, your argument is that "native apps > scriptable native apps" which makes no sense.

> Maybe for your use case it's better...

Web tech is absolutely better for every user-facing (GUI) use case. Even with 3D games which are streaming via browsers right now - performance might not be the greatest right away but since browsers have all the capabilities that any other native apps has (because they're native apps themselves) - it wouldn't be inconceivable that 3D web games could perform on par with native 3D games.

Personally, I develop all of my CLI/server apps with web tech as well (that'd be JavaScript running under Node.js). There's really nothing better - and that's why JavaScript is the most popular programming language in the world by far.

> A web app is the Visual Basic of applications (but not really since VB is so much more useful!)

Having started my career with VBA I couldn't disagree more. But even so, is VB (VB5/6/VBA/VB.NET?) your go-to native development environment? Any of those choices are laughable IMO, but okay - I guess enjoy developing all of your apps in VB then :)