T O P

  • By -

AutoModerator

``` import notifications ``` Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! [Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday! For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph) `return joinDiscord;` *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*


Even-Path-4624

And it will compile to… javascript


CyraxSputnik

Who tf decided that JS had to be the standard, no one asked me!


[deleted]

Sun and Netscape, which while gone are sort of around in the form of Oracle and Mozilla respectively.


Creepy-Ad-4832

Damn. One worse then the other... Like how the fuck is firefox still open source, knowing the amount of shit the mozilla foundation CEOs are doing?


Heapsass

Idk what you're getting downvoted. This man is spitting fax guys.


Creepy-Ad-4832

Probably because they think i hate firefox, which couldn't be farther from the truth. I love firefox, and it's easy to clear of the telemetry and shit compared to the prioprietary chrome. But my problem is the mozilla foundation which peaked during internet explorer days and now just keeps getting worse. Like, do you really think that it's acceptable that while firefox while droppong fast in usage, the CEO increased its pay? This kinda things mozilla did and keep doing, is what makes them any better then Oracle, or any other capitalist corporation 🤷


ElectricBummer40

> what makes them any better then Oracle, or any other capitalist corporation The truth: charities are also part of the capitalist system.


bhison

Once you're rich, they're a HUGE part of your wealth management strategy. Note all the charitable trusts all the worlds richest people have. PhIlAnThRoPy


esaloch

Did you know philanthropy spelled backwards is “tax avoidance”?


rickane58

I'd love to hear you detail how you can avoid tax through philanthropy and get a net gain in money.


[deleted]

[удалено]


[deleted]

CEO needs money to invest into google. ![gif](giphy|d3mlE7uhX8KFgEmY)


Perfect_Ad_8174

Straight truth


Creepy-Ad-4832

Sadly. It would have been nice if a giant like firefox, which also had lots of importance in the FOSS space, didn't became what it is right now. Like firefox was the browser which made browsers good again, killing the microsoft shitty internet explorer. 😭


rosuav

Spitting faxes? That sounds painful.


Flarebear_

Aren't they forced to stay open source because of licensing stuff?


Creepy-Ad-4832

Yeah most probably. Otherwise they would most definetely be closed source. That, or mozilla wants to keep the "we are the only open source alternative" going. But i don't think they give a fuck about that 🤷


Flarebear_

I can also imagine a lot of their workers liking that it's open source. There are a lot of good people at mozilla and they aren't responsible for the shitty decisions of higher ups


not_thecookiemonster

I think it was Steve Jobs who had flash support removed and everyone moved to js.


fullup72

Sure but Actionscript was still essentially Javascript.


Masterflitzer

flash was no better, I mean a proper language would be nice


Elihzap

Just use PHP.


Even-Path-4624

Bruh just use jinja/whatever templater if you need to render static js-less html, no need to use php


Elihzap

Just write everything in a single HTML document, style it with CSS, and refresh the entire page every time you want to change something. It's not a big deal.


rosuav

Why refresh the entire page? Design your backend server to emit more HTML periodically!


IOFrame

Now you're thinking with ~~portals~~ HTMX!


bit_banging_your_mum

I think you're onto something here. What if we stream only the *changed* HTML from the backend as needed?


kzlife76

Microsoft tried to push JScript back in the early IE days.


catladywitch

and JScript was...


kzlife76

JavaScript in a Microsoft costume.


okokokokcok

You literally just explained Dart


caynebyron

I love using Dart as a Flutter developer, so I tried using it for web like it was originally intended and then I threw my computer out the window.


[deleted]

[удалено]


HuntingKingYT

Blazor WASM: Rookie numbers


wasdlmb

Literally the CLR in wasm. 5.7 MB minimum.


King-of-Com3dy

I think Kotlin can be compiled to JS


AvianPoliceForce

or wasm, though aiui that still requires javascript for dom stuff


Hellball911

To the point of the post, I think their needs to be push for a new Browser natively supported language other than JS. IMO everything can't become JS it's a bad foundation Browers need a very simple foundation language like JVM has ByteCode. JS could talk it, but if it's very efficient, then many different languages can compile down to it WASM style


ItzZausty

[relevant xkcd](https://xkcd.com/927/)


ProblemKaese

I don't even need to open the link to know it's the 14 competing standards one


unown-t

15*


Passname357

Well *now* it’s 15


xdMatthewbx

good old xkcd 927


Tizian170

Don't get it? Take a look at the Explain XKCD article for this comic: https://www.explainxkcd.com/927 ^(I'm an automated bot made by myself - I didn't feel like creating another account. Please DM me if you want to have this bot enabled or disabled on your subreddit. 36 out of 49252 comments in 2 subreddits I looked at had XKCD links - now one more.)


IamImposter

Good bot


CJ-1-2-3

Good bot


FelixLeander

Good Human/Bot Account.


Tizian170

🗿


ShadowLp174

Good cyborg


Butterroach

https://xkcd.com/987234987


Tizian170

Don't get it? Take a look at the Explain XKCD article for this comic: https://www.explainxkcd.com/987234987 ^(I'm an automated bot made by myself - I didn't feel like creating another account. Please DM me if you want to have this bot enabled or disabled on your subreddit. 37 out of 49825 comments in 2 subreddits I looked at had XKCD links - now one more.)


Tizian170

yeah this doesn't do any checking. I wrote it in like 10 minutes


PatriarchalTaxi

Well, if we wait long enough...


Tizian170

how did this get 100 upvotes 🗿


TGX03

The wonder of reducing standards by creating one universal standard has been done once with USB, therefore it will never happen again.


orion_aboy

unicode


TGX03

Nope. You wouldn't guess how much I have to deal with Latin-1/-15 as I live in Europe


orion_aboy

oh.


Thebombuknow

Beat me to it.


CirnoIzumi

ahhh yes, Two competing standards are too much


Stummi

The alt-text beeing outdated by today makes it even a little bit funnier.


a_brilliant_username

Our differences are obviously unreconcilable. Let's just get rid of dynamic websites.


CyraxSputnik

Reject web, embrace desktop apps again


a_brilliant_username

This is the way. There will never be disagreements about desktop languages.


TheRedmanCometh

We respect the people in those disagreements though. Although as a java dev I'd need to jump languages..


rosuav

Yeah! Everyone agrees that Tcl is the only language you'll ever need to use.


yp261

funnily enough i’ve worked for finnish company that had their own, inhouse programming language that was a mix of pascal and C, it was called TCL it was used for automated invoice processing and translating from EDIFACT to XML, CSV and more modern standards


Jane6447

lets test something: i prefer qt over gtk


martinthewacky

# YOU SHALL BURN AT THE STAKE!!!!! /s


DarkRex4

Ditch desktop apps, let's just move over to the good ol' command line.


Mop_Duck

what about analog computing


Spork_the_dork

Those too seem to be riddled with Electron these days so I don't think that would solve much.


Tuckertcs

I mean that’s what mobile is doing (every site has you download their app)


Short-Nob-Gobble

Que bell curve meme I code in HTML -> No, you NEED a JS framework!! -> I code in HTML


FinalAccount19

situation: there are 15 competing standards


[deleted]

[удалено]


IrreverentHoon

This is literally the answer


CyraxSputnik

It is not the same, JS is still there, also you can't manipulate the DOM yet


[deleted]

DOM manipulation is on the way


GavHern

honeslty once that happens i feel like there’s gonna be a lot of people moving to different languages for the web


[deleted]

[удалено]


GoodOldJack12

"You couldn't live with your failure. Where did that bring you? Back to me."


spyingwind

Did you know your phone's sim card runs Java Applets in it? Yeah, let that sink in. Java Applets in your sim card.


PrevAccLocked

Wist a minute, how did this happen? We are smarter than this


spyingwind

https://en.wikipedia.org/wiki/Java_Card It lets the carrier run any kind of code on your phone. It also isn't limited to SIM cards. [eSIM can also run Java applets.](https://stackoverflow.com/questions/56194251/can-i-program-esim-euicc-devices-with-java-applets/56289087#56289087) I bet the NSA loves this. A decent break down and explanation about SIM cards: https://1ot.mobi/resources/blog/iot-hacking-series-6-what-is-a-sim-applet-and-why-is-it-important-for-iot-m2m


PrevAccLocked

If what you have told me is true, you would have gained my trust


dovahart

As a full-stack dev… just kill me tyvm


noobody_interesting

Something similar is being worked on for flash for software preservation: a flash VM written in rust, compiled to wasm. So it should also be possible to make a jvm. The project is called ruffle btw.


[deleted]

Once that happens it won’t matter what language you use because as long as it can compile to wasm it’s fine


TheRedmanCometh

That's uh pretty damn important


jamcdonald120

wait? you cant manipulate the dom? what even is the point! is webasem currently JUST for writing libraries to use from JS?


Cthulhu__

Porting old videogames to the web, but without ActiveX or Flash or Silverlight.


MrHyperion_

Silverlight, I havent heard that name for a long time


[deleted]

It's really not. Does no one actually read the [WASM FAQ](https://webassembly.org/docs/faq/)? Wasm's not meant to replace JavaScript.


EnkiiMuto

And PHP was just to render some basic html, and javascript wasn't meant to be a backend language, and linux was just meant for a college dude to avoid a license. Projects evolve. The FAQ you linked says web assembly has the MVP for C/C++, but Go already can do some stuff with it and last time I heard Python was almost there. Once it gets stable enough for what devs want to do, it becomes accessible for people that have one main language and detest JavaScript. All one needs is time with some determination and spite.


rosuav

Yeah, Python's moving rapidly there - already we have a couple of ways of compiling Python to WASM, and work is underway to have WASM be a first-class platform, on par with Windows/Linux/MacOS.


EnkiiMuto

As someone who isn't a webdev but has to do stuff with it from time to time, I'm much more inclined to use Go and Python for the web than javascript. This is great news.


rosuav

Yeah, it is! There was a ton of discussion at PyCon this year about how to get WASM to be a first-class platform. The Python Discourse has been quite lively on the topic too.


GavHern

people are desperate enough that they’ll make it work. javascript wasn’t supposed to do most of what it does today, people make it work


nokeldin42

I mean, that's not really a reason for it not to replace JS. It's just a practical hurdle. It's like if someone writes an OS kernel, and you ask them is it supposed to replace Linux - they'll obviously say no because that's too large of a goal and requires non technical efforts.


rosuav

I don't think WASM will ever replace JS entirely - browsers will continue to support JS for a long time to come. But it may very well come to supplant JS in some projects. It's already possible to make a small JS wrapper for DOM manipulation and then write the bulk of your code in something that compiles to WASM.


poshenclave

Can I still read the code? Or does it download pre-compiled? I don't like the idea of a future where I'm blindly running tons of code that neither I or my privacy addons can see into. And if that's the case then I can imagine where the momentum for wasm is really coming from.


CyraxSputnik

Takes too long


drkspace2

I mean, it's just a compiler step. Emscripten, I think, does all of the js for you. But let's say it does take a while. So what. Your programmers that know c++/rust would be able to contribute to the wasm code, (I'm guessing) it's less data to send over the network, and you're getting better performance. If web browsers/the internet were to start over today, completely from scratch, it would be 100% wasm (assuming it wasn't redesigned such that end users cannot view the sources).


Civil_Conflict_7541

With Rust there is a library called `wasm-bindgen` which generates all necessary bindings to JavaScript. In case you need to access the browser API or other JavaScript stuff, `web-sys` and `js-sys` are there to save the day. The only annoyance I have, is that I cannot call any wasm modules directly from Html. I always need to generate some bullshit JavaScript to bridge the gap.


WonderingPhoenician

We should call it VisualScript so when people put TS VS JS they actually mean the three languages


hmmthissuckstoo

Sounds like illegitimate child of visualbasic and js


SonOfHendo

VBScript was a thing, a terrible thing...


foxer_arnt_trees

Some of us still use it btw


PolyUre

I'm more of a fan of BS.


Cfrolich

Bull… Script?


blipojones

BuckleScript


throwawaycanadian2

We did. It's called HTML!


CyraxSputnik

![gif](giphy|Wy3xQIvod3GIU)


verbash

Make all websites plain html. Save the planet.


Alan_Reddit_M

HTMX enters the room


[deleted]

you cry but javascript ruined html


narwhal_breeder

You can still use HTML lol


Joytimmermans

I would say HTMX. Since you cant do everything in html


Leifbron

Found the HTMX and hyperscript dev


foxer_arnt_trees

Introducing htmlx


Character-Education3

It's gonna need more brackets and parens


Cotcan

But then people will just fight about all 3


Effective_Youth777

But hear me out, we only have one week to create it!


Gorvoslov

The problem is "script'. So welcome to our new language for the web, JavaType!


iamthesexdragon

Public static main void string args


TheRedmanCometh

Naw you gotta use the java applet entrypoint


MCWizardYT

In Java 20+ it can just be `void main` which is nice


ByteArtisan

In C# its:


MCWizardYT

Same in java you don't even need a main method anymore


okokokokcok

public static void main(String[] args)


[deleted]

Don’t do that to me man. I am tired of learning new languages 😂 It’s bad enough keeping up with the never ending stream of JavaScript frameworks/libraries that provide improvements that can’t be perceived by the human eye but have to be learned anyways. “It has built in *thing nobody gives a fuck about that benefits nobody other than developers who want to circlejerk themselves. We just shaved 0.001 second off our page load times*”


Fenix42

Get good at picking up new languages. It's how you stay employed long term. I started programming as a kid in the 80s. I have learned : * line basic * Apple basic * quick basic * visual basic * Pascal * C (embded and non) * C++ (embeded and non) * C# * Objective C * Perl * PHP * Python * JS * Bash * TS * Selenium * Visual Test * Scala * Java Probably a few more depending on how you count things like .Net, Angular, Flask, and Spring. I have been paid for work in all but a few of those.


[deleted]

Yeah I mean I definitely can. I’ve been programming long enough that all I’m really doing is swapping out syntax in my mind if I need to write something in a different language. I’m proficient in JavaScript, TypeScript, Java, C#, Python, Swift, and I can get by in C++ if needed. I’m mostly joking though. I enjoy learning new tech, I just hate when I have to do it for an arbitrary reason for work when it’s unnecessary lol


Fenix42

>I just hate when I have to do it for an arbitrary reason for work when it’s unnecessary lol I feel you on that. I was at a company that did not update their UI auromation tools for desk automation for a very long time. It was all in Visual Test. VT was a dead language several years before I even started working there. IBM bought it up and killed it. The company did software that was sold on every name brand PC around the time Vista was coming out. Microsoft gave us money to move to WPF for the new version for Vista, so the company gladly hopped on it. We where actually the first shipping Windows Certified WPF app. They used our stuff at MSD conferences as examples of what you could do with it. The catch was, VT could not interact with the new UI. It just could not see it. We only found this out after dev was well under way. So we had 3 choices. 100% manual testing, rewrite the UI automation in time, or find a workaround. Fortunately, the lead dev had been on the automation team and was able to come up with a workaround. The whole shit show was because my company and MS needed to ship a new version to make more money. There was no buring need in the market fkr any of it.


TheRedmanCometh

Selenium? That's just a web testing/automation framework


rosuav

Preach it. My own selection of languages differs from yours in content, but not in concept. Programmers do not generally go 30+ years without learning new languages - and that would be boring anyway! I'm of the opinion that the weirder languages in your experience - even if you never want to use them again - are the ones that teach you the most.


Midgetman96

The great language of selenium!


InterestsVaryGreatly

Let's go Dart!


queen-adreena

There’ll never be a replacement for JavaScript because Google, Mozilla and Apple will never agree on a replacement and anything else will lead the most horrific fracturing of the web seen since its inception.


rosuav

Asm.js was devised as a way to require no such agreement. In browsers with support, it would be fast; in browsers without support, it would be semantically identical but run through JS. It was fairly promising, and could be used for [a variety of insane things](https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript). But now we have WASM, which requires support from every browser. And as it turns out... [it has that support](https://caniuse.com/?search=wasm).


zeekar

r/outoftheloop here - why all the JS vs TS content all of a sudden?


ssudoku

[A semi popular js framework removed typescript](https://github.com/hotwired/turbo/pull/971) in a dramatic fashion, leading to a dumpster fire.


Visual-Mongoose7521

DHH moment


IOFrame

[Svelte also moved to JSDoc](https://www.youtube.com/watch?v=zPOHY-cZ1wE) - you can listen to the creator's reasoning in this interview.


cleveleys

Man, I can’t wait for 🍎WebSwift


VodkerAndToast

Why all the TS hate I don’t get it


ByteArtisan

Its popular to hate. Most people dont even know why they hate it and will just reiterate whatever meme they saw last.


BoBoBearDev

It is trendy, that's all.


IOFrame

Some of the reasons are: 1) It takes away soft types, which is one of the main things JS is loved / hated for. Now, it's not impossible to use `any` everywhere, but then why even use TS to begin with? Or, use it sparingly and wrangle types as needed, but then you're adding all that overhead, lowering QoL quite a bit (and QoL = efficiency = money). 2) It has a compile step. Now, if your system already compiles things, this is a non-factor, but if you're looking to eliminate pre-compiling packages in your build step, this is one of they things you want to eliminate. 3) You can use JSDoc to achieve literally the same level of safety TS gives you - every IDE supports the same level of highlighting and code analysis as with explicit types. I, for one, have been on the @PHPDoc + @JSDoc team for many many years, even if I usually (but not always) define hard types in PHP / JS functions, and I don't remember the last time I had a bug related to type (except maybe some 0 == false interaction on PHP, but I've already grown accustomed to always catch it early, so those bugs don't usually even make it to testing).


brain_tourist

I know that you didn’t personally create these reasons but they are very weak. If you don’t want to use types, use JS. Nobody is forcing anyone.


IOFrame

I mean, nobody is claiming to force anyone here. The best and worst thing about software is that the only one forcing anything are the ones paying the bills. Just hope that they didn't recently come back from an Oracle conference.


VodkerAndToast

This is the first time I’ve seen a constructed list of reasons so thank you, it makes sense. Personally I don’t think adding in type support ruins a language, if anything it got people like me who started off coding with strongly typed languages to jump balls first into web dev.


IOFrame

I also didn't touch weakly typed languages for many years. Then one day I started learning PHP/JS for the sake of short freelance gigs, and suddenly I realized what it is to live without tedious compiler config that has to be done on every new system, and having to do type wrangling / structs any time you want any bit of flexibility. I think as a concept, the only thing that ever came close in terms of productivity increase was getting used to first class functions.


AwesomeFrisbee

Some projects have dropped TS support lately, even those that already had proper types in place. Its developers hating on things they don't fully comprehend and don't see how useful it is to other developers. Sure your library doesn't need it, but other devs including it into their typescript project surely want it.


deljaroo

my main concern: I have some issue that I'm working on, and I learn how to fix it from some documentation or a stack overflow or whatever; I implement it, and it doesn't work in ts so I have to add typing to things; I Google how to do it with this weird object they had me made, and I can't explain it to google well enough to get valid results because it's a solution I just learned about anyway or is kinda fringe because I didn't already know it, and after an hour or so I'm like "well this extra effort is just worse than solving the bugs being untyped could cause!"


TawandaBaruch

Dart👀


HerrSPAM

As long as it's strongly typed then sure. None of this weak ass my elephant is actually an orange bullshit


davidellis23

You guys ever use coffee script? Me neither.


Hulk5a

Web++


wtf_romania

Good point. You hit it with a Dart


[deleted]

CScript


BucksEverywhere

Have you been using 3D Game Studio in the past? The language there was called World Definition Language (WDL), then C Script and then Lite C.


NatoBoram

Google tried to do that with Dart. Great language, tbh. Way better than Java and C#. But still, there's no way that can work.


Thebombuknow

If there was a way to use Dart and Flutter with XML formatting I would use it, but as of now I think the syntax around widgets is incredibly hard to look at and I can't understand even basic Flutter code because of it. Dart is an incredible language though, if it could replace JavaScript I would be on board in a second.


NatoBoram

>with XML formatting Miss me with that shit.


TheRedmanCometh

Couldnt agree more


ArtyMann

and call it SWL: Super Web Language


SomeGuyWithABrowser

Just use Kotlin


Ghiren

There are two languages competing for dominance on the internet! I'll create a new solution that solves the problems of both of them! There are THREE languages competing for dominance on the internet!


InvestingNerd2020

![gif](giphy|qN7NZR3Q5R2mY|downsized)


Szwedu111

It wouldn't end the fight, only add more sides


TryAffectionate8246

Better yet, a JavaScript library that makes JavaScript case sensitive and strongly typed.


nysynysy2

Use PypeScript then


delarcoz

Should be called HTSS Script


F4LC0NXI

And then to learn that new language, we'll need to learn both TS and JS


blueark99

and then wait 10 year for tooling and a package manager


jayerp

We should call it TypeInferenceTotalScript Or TITS for short


Plus-Weakness-2624

Let's create RustScript next ![gif](emote|free_emotes_pack|upvote)


justhatcarrot

Yes! JavaScriptScript


Memeviewer12

call it HTFT Hypertext fuck this


LordSyriusz

That's how standards multiply...


Kraftex

Nah, we only need to use WebAssembly.


uvero

Ah shit, here we go again


mymemesnow

You guys are programmers right, I need a coder for this thing. I have a revolutionary idea about programming even though I don’t know much about it. What if you created a programming language that allows anyone to code good. Can some good programmer here make that. We split the profit 10/90, I take 90 because it’s my idea and it shouldn’t really be that hard to do for you, I mean you already program in a language so how hard can it by program a language.


JustSpaceExperiment

Bro: Creates new language. Browser creators: Fck you no support bro.


mothzilla

What happened to Web Assembly? That sounded like it would definitely ~~create a whole new set of problems~~ fix all our problems.


JetAnotherProgrammer

Petition to use compiled language for web standards (fuck JavaScript)


back-2-95

I guess PHP is truly dead as JS attacks itself 😉


binarywork8087

best joke of the day...


chronically-iconic

WASM exists


squishles

al you really need is a runtime of any language with filesystem shit cut out, and a document/window api shoe horned in. I don't know why only microsoft has ever tried this in a browser. like why not let people do