News for hackers. Stuff that matters.
Re:Hasbro laying off Wizards of the Coast staff is baffling by DonHopkins on Sunday December 17, 2023 @12:01PM (#38674250)
It's like Oracle buying Sun. We just need to move on from Java to other languages at this point.
Re:Hasbro laying off Wizards of the Coast staff is baffling by solardev on Sunday December 17, 2023 @12:13PM (#38674354)
If you ever want another huge, ancient labyrinth of a language that also kinda sorta runs everywhere, the Javascript world welcomes you with open tentaces! Here we're controlled by an evil older than Oracle itself (Microsoft and Typescript), with upgrades and crossgrades and cross compilers that deliver astounding 15% improvements in performance in exchange for a mere few animal sacrifices and a lifetime of misery. In our delightful world, getting your app to run on other platforms is as simple as embedding your operating system into WASM and putting it in their browser. What could be simpler?
Re:Hasbro laying off Wizards of the Coast staff is baffling by typon on Sunday December 17, 2023 @12:54PM (#38674744)
Looking forward to the day Amazon buys Rust
Re:Hasbro laying off Wizards of the Coast staff is baffling by imbnwa on Sunday December 17, 2023 @03:07PM (#38675913)
Is Rust deployed internally at Amazon?
Re:Hasbro laying off Wizards of the Coast staff is baffling by hughesjj on Sunday December 17, 2023 @05:55PM (#38677257)
Fire cracker (lambda backend vm) uses it
Re:Hasbro laying off Wizards of the Coast staff is baffling by sublinear on Sunday December 17, 2023 @01:53PM (#38675272)
> controlled by an evil older than Oracle itself (Microsoft and Typescript)

Who still uses typescript? It's not the mid-2010s anymore. Plain javascript is everywhere and I'd argue using a framework implies an immature project or team.

Re:Hasbro laying off Wizards of the Coast staff is baffling by teg4n_ on Sunday December 17, 2023 @02:07PM (#38675403)
This is an absolutely baffling take to me. Like, I don’t know if you are even being serious or not.
Re:Hasbro laying off Wizards of the Coast staff is baffling by kweingar on Sunday December 17, 2023 @02:02PM (#38675359)
According to StackOverflow’s 2023 Developer Survey, TypeScript is the fifth most popular language, beating C, C++, Java, C#, Rust, Go, etc.
Re:Hasbro laying off Wizards of the Coast staff is baffling by realusername on Sunday December 17, 2023 @03:35PM (#38676148)
I've never seen a large js codebase without typescript and I'm not even sure how you could realistically manage one without.
Re:Hasbro laying off Wizards of the Coast staff is baffling by endemic on Sunday December 17, 2023 @11:27PM (#38679243)
It’s a disaster. The most knowledgeable dev on my team regularly uses ChatGPT to solve typing issues. At this point we’ve lost the plot.
Re:Hasbro laying off Wizards of the Coast staff is baffling by cxr on Monday December 18, 2023 @04:59AM (#38680788)
> I've never seen a large js codebase without typescript

So you're explicitly identifying yourself as a non-authority (but in a weird tone that tries to suggest the opposite?).

<https://searchfox.org/>

> I'm not even sure how you could realistically manage one without

Pretty simple: write boring code.

Re:Hasbro laying off Wizards of the Coast staff is baffling by mcv on Monday December 18, 2023 @05:59AM (#38681107)
> write boring code.

But who wants that?

Re:Hasbro laying off Wizards of the Coast staff is baffling by solardev on Sunday December 17, 2023 @05:00PM (#38676901)
What? Typescript solves an entirely different problem than most frameworks (you mean frontend frameworks?).

Did I miss typings in vanilla Ecma, or...?

Re:Hasbro laying off Wizards of the Coast staff is baffling by paulddraper on Sunday December 17, 2023 @02:58PM (#38675834)
> getting your app to run on other platforms is as simple as embedding your operating system into WASM and putting it in their browser

???

Re:Hasbro laying off Wizards of the Coast staff is baffling by solardev on Sunday December 17, 2023 @04:59PM (#38676890)
I'm kidding, but sometimes it feels like that. Javascript is never just Javascript.

It depends on whether you use Typescript (with tsc or tsx or esrun?).

It depends whether you use V8 or Node or Deno or Bun.

It depends whether you're using AWS Lambda or the Serverless framework or a Cloudflare Worker or a Vercel or Fastly edge function.

It depends whether you use vanilla or HTMX or React or Next or Vue or Nuxt or Svelte or Astro or Remix or Angular or or or.

Then if you go native, it depends whether you use React Native and Expo and Electron and Tauri and and and.

Somehow we went from a universal language that can run in all web browsers to a hundred mutants that each only work in some niche...

I've never seen two Javascript codebases that looked the same :/ Every one is like a new archeological dig. Sure, you can still find some identifiable generic pottery fragments and such, but somehow they managed to build an entire civilization in a totally different way from the one next to them, using technologies that no longer exist just a few years later.

Re:Hasbro laying off Wizards of the Coast staff is baffling by paulddraper on Sunday December 17, 2023 @06:45PM (#38677598)
> I've never seen two Javascript codebases that looked the same

I think you may have described every programming language.

Except maybe Go

Re:Hasbro laying off Wizards of the Coast staff is baffling by solardev on Sunday December 17, 2023 @06:49PM (#38677627)
Probably JS was a victim of its own success in this regard, being both incredibly popular and incredibly long-lived, which drew hordes of amateurs (myself included) in. We all re-invented the wheel, though in my case it was more like an oblong hexagon =/ I rolled with it... but I feel terrible for anyone who has to maintain my old code after me, lol.
Re:Hasbro laying off Wizards of the Coast staff is baffling by marcosdumay on Monday December 18, 2023 @09:00AM (#38682584)
Most languages have perfectly functioning wheels right there installed and ready for use.

People keep reinventing the wheel on javascript because it doesn't have any.

Re:Hasbro laying off Wizards of the Coast staff is baffling by kuschku on Monday December 18, 2023 @04:50AM (#38680755)
True, but Go codebases only look the same because there's only so many ways to make a neolithic handaxe.
Re:Hasbro laying off Wizards of the Coast staff is baffling by Garlef on Monday December 18, 2023 @03:42AM (#38680380)
that's why JS/TS is to easy to hate: it's got a lot of surface area.
Re:Hasbro laying off Wizards of the Coast staff is baffling by numbsafari on Monday December 18, 2023 @02:44AM (#38680105)
May you descend into the Inferno…
Re:Hasbro laying off Wizards of the Coast staff is baffling by DonHopkins on Sunday December 17, 2023 @04:10PM (#38676464)
Sure, but the JavaScript world won, and the Java world lost. A long long time ago, last century. The war has been over for decades, since the demise of Netscape Javagator in 1998. And C# was released 23 years ago, specifically designed to do to Java what Java did to C++, and it did. It's like you're trying to still fight the Civil War.

https://www.wired.com/1998/02/whither-crawls-netscapes-javag...

>WIRED Magazine: FEB 26, 1998 4:26 PM: Whither Crawls Netscape's Javagator? Netscape officials deny a report that work on Javagator, an all-Java version of the Navigator browser, has been suspended.

Oh, and then there's this:

Larry Ellison

Re:Hasbro laying off Wizards of the Coast staff is baffling by mcv on Monday December 18, 2023 @05:58AM (#38681104)
In the browser. Javascript won in the browser, which was indeed Java's original target platform. They lost that, but they won nearly everywhere else.
Re:Hasbro laying off Wizards of the Coast staff is baffling by DonHopkins on Monday December 18, 2023 @06:31AM (#38681263)
JavaScript won the war of running the same language on both sides, because it runs in the browser, and you can run any language you want on the server. You can't practically run any language you want on the browser, only one, and it's JavaScript, so it's not possible for Java to run on both sides now. And in case you didn't notice, people run JavaScript on the server all the time, because they can share the same frameworks and libraries and data structures on both sides, like easy server side rendering. The cost of developing and deploying and running and maintaining two different languages and implementations of everything and incompatible frameworks on each side is just too high, and a huge waste of energy and time and human effort. Java usage is declining and stagnating, and JavaScript/TypeScript usage is rising rapidly. And JavaScript's and TypeScript's future is not controlled by Larry Ellison.

https://experttal.com/blog/top-programming-language-trends-i...

>Top Programming Language Trends in 2023

>Java Won’t Be as Popular as It Was

>In a similar vein, Java — a language central to the emergence of the software industry as we know it today — increasingly appears to be past its prime.

>Java slipped out of the top spot on the TIOBE index — a position it had held for nearly two decades — a couple of years ago. As of 2023, there's every indication that Java won’t recover the top spot.

>Although Java will likely remain widespread over the coming year, it's hard to imagine it returning to its former stature as one of the most popular languages. On the contrary, we suspect Java will continue to decline in popularity over the coming year and beyond.

https://marketsplash.com/javascript-statistics/

>50+ JavaScript Statistics For 2023 Trends & Facts

>Microsoft introduced TypeScript in 2012 as an extension of JavaScript, incorporating optional typing. This adaptation retained the syntax and essence of JavaScript while implementing supplementary features essential for developers. The contrast between JavaScript and TypeScript is noteworthy, as the latter presents heightened productivity and simplified maintenance for expanding codebases.

>For this reason, TypeScript transcends being merely a fleeting JavaScript trend; it has evolved into an established language. The most recent survey from 2022 indicates that JavaScript stands as the most utilized programming language, boasting a considerable 78% adoption rate among developers. This survey stems from the State of JS Survey.

Re:Hasbro laying off Wizards of the Coast staff is baffling by mcv on Monday December 18, 2023 @07:17AM (#38681503)
Nobody is denying the popularity of Javascript. I'm merely pointing out that Java is huge. Java is still incredibly popular in enterprise environments, and so much Java code has been written there that I've called Java the COBOL of the future on several occasions. It's still very easy to find work in Java.

> You can't practically run any language you want on the browser, only one, and it's JavaScript

Everybody knows that, but are you aware of the history of that? Why Javascript is called Javascript, despite not being in any way related to Java?

Java was originally aimed to run in the browser as Aplets. That required a plugin of course, and those have since fallen out of favour for good reason. But Java was originally the language that ran in the browser, and Sun specifically marketed it for that. And then Netscape introduced their own language called Javascript specifically so people would associate it with Java, but it had the advantage that it would run in the browser without the use of plugins. And Netscape was so dominant that they could dictate this sort of thing.

Plenty of Web Aplets have been written at that time, but with browsers abandoning plugins, they've become obsolete. And requiring a plugin before it runs was definitely an obstacle.

Instead Java became the preferred language on the server, and it took a very long time before Javascript got any traction there. It has that traction now, and the advantage of running the same code in browser and server is definitely an advantage, but there's a lot of history before that.

And while Java's popularity is certainly dwindling (and deservedly so, if you ask me), it's coming from an extremely high popularity and has a very long way to go before it's gone. Because it did win almost everywhere outside the browser.

Re:Hasbro laying off Wizards of the Coast staff is baffling by mcv on Monday December 18, 2023 @05:57AM (#38681094)
Not that I want to defend them, but Typescript is probably the best thing Microsoft ever created.
Re:Hasbro laying off Wizards of the Coast staff is baffling by 8372049 on Monday December 18, 2023 @08:03AM (#38681848)
If we are liberal with the meaning of "Microsoft created", there's Age of Empires II.
Re:Hasbro laying off Wizards of the Coast staff is baffling by matt_heimer on Monday December 18, 2023 @02:10PM (#38686806)
"JavaScript" is a trademark of Oracle Corporation in the United States.
Re:Hasbro laying off Wizards of the Coast staff is baffling by saiya-jin on Sunday December 17, 2023 @12:29PM (#38674516)
You sir go wherever you want but please leave Java to professionals that make companies just work (TM). Yes its not ultra fashionate with all new features in some other languages (but improving constantly), but TBH I don't care, at all, I can work till retirement with Java 8 and be very happy, at the end its just a tool to solve problems and darn good one.

Proper quality engineering is delivering good robust solutions to companies, and Java is great for that in many many aspects, moreso than most other platforms. And who steers it, that's a question I couldn't care less about, just keep it working as expected, completely cross-compatible across all platforms and all previous version (looking at ya Microsoft, that clusterfuck with 'MS Visual C++ redistributable' requiring 20+ sometimes conflicting installations, often ending up in games not working at all even if required version is present - that's just bad engineering, they don't even have solid internal registry to prevent these FUBARs requiring full clean reinstall of Windows).

Re:Hasbro laying off Wizards of the Coast staff is baffling by DonHopkins on Sunday December 17, 2023 @04:07PM (#38676433)
All those wonderful technical and business arguments and whataboutisms, and there's still:

Larry Ellison

Re:Hasbro laying off Wizards of the Coast staff is baffling by EdwardDiego on Sunday December 17, 2023 @06:04PM (#38677314)
OpenJDK is GPL 2, how is Larry going to take it away?
Re:Hasbro laying off Wizards of the Coast staff is baffling by r00fus on Monday December 18, 2023 @12:52PM (#38685826)
Also many people use "Java" in the enterprise without paying Oracle a red cent.
Re:Hasbro laying off Wizards of the Coast staff is baffling by serf on Sunday December 17, 2023 @04:24PM (#38676606)
that's a good comparison given how litigious Hasbro has been in the past.
Re:Hasbro laying off Wizards of the Coast staff is baffling by jmoak3 on Sunday December 17, 2023 @06:49PM (#38677621)
The lawnmower has arrived, adjust behavior accordingly. You can't reason with it, it only knows: "cut grass"!
Re:Hasbro laying off Wizards of the Coast staff is baffling by jsiepkes on Monday December 18, 2023 @01:22AM (#38679776)
I'm no fan of Oracle but Oracle's steward ship of Java has been pretty good. They have invested in long term (open source) improvements such as Loom and Graal and open sourced additional technologies such as Flight recorder.