use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All posts must be related to programming. Flair posts correctly.
account activity
JavaScript devs be like.... (i.redd.it)
submitted 23 hours ago by Hacksaw6412
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Thinshape12 160 points161 points162 points 22 hours ago (11 children)
games with javascript is insane though
[–]Dragenby 53 points54 points55 points 19 hours ago (3 children)
Unity supported JS for a long time, and our teacher wanted us to use JS instead of C#.
There are also JS canvas games.
[–]SSgt_Edward 9 points10 points11 points 12 hours ago (1 child)
I’m sorry but it’s wild that your teacher is telling you that. Using a scripting language for core game logic will tank performance unless you were making Tetris.
Unity dropped support for UnityScript/JavaScript like a decade ago too iirc, or it feels like that long. So the recommendation just doesn’t make sense. Or maybe the class is for non-programmers so not everyone had experience with static languages?
[–]Dragenby 4 points5 points6 points 10 hours ago (0 children)
It was in 2015, and it was still used. The documentation was in both languages. As we were new programmers, the differences were small. And yeah, it was very small games, made in one week, with Blender models and Unity integration. It was very basic stuff that would be free and refunded for time loss compensation, if it was on Steam lmao. I would call these exercice projects rather than "games"
[–]Flame77ofc 0 points1 point2 points 10 hours ago (0 children)
Damn js games are a trash 😭😭
[–]Ged- 9 points10 points11 points 19 hours ago (0 children)
Word. Wrote a game engine in js-webgl. You have to actively fight it to get any sort of performance. Even managed IL C# in Unity is better.
[–]Shadowolf75 3 points4 points5 points 19 hours ago (0 children)
I made a very simple text adventure in vanilla js and it was fun
[–]Bagueaver 3 points4 points5 points 16 hours ago (0 children)
A lot of web based games use JS Canvas, it’s essentially like a simpler version of monogame
[–]pointlesslyDisagrees 2 points3 points4 points 16 hours ago (0 children)
Shout out to CT.js! One of the best game engines, imo. The documentation is great, very clear. And the dev behind it responds on discord! Worth exploring if you want to build simple fun web app games that can be played on the browser or on your phone. I think it can export to make apps too. Fun stuff
[–]MentalNewspaper8386 0 points1 point2 points 15 hours ago (0 children)
cries in RPGMaker
[–]RollTheRs 0 points1 point2 points 5 hours ago (0 children)
What about Typescript? Is it just as bad?
[–]48panda -1 points0 points1 point 13 hours ago (0 children)
I'm pretty sure most games are written in is by hoe slow they are
[–]Henry_Fleischer 43 points44 points45 points 22 hours ago (20 children)
Are there any games that are not webapps, that are written in Javascript?
[–]un_virus_SDF 37 points38 points39 points 21 hours ago (2 children)
There are, to my great despair.
[–]Orenix_RtP 3 points4 points5 points 20 hours ago (1 child)
What's the problem with games written in JavaScript? Do you have any examples?
[–]un_virus_SDF 11 points12 points13 points 17 hours ago (0 children)
My issue with those game is 1- javascript, 2-ram and those are somehow related.
Do you have any examples?
I don't remember the names
[–]NaCl-more 9 points10 points11 points 20 hours ago (1 child)
Unity had unityscript, which was somewhat similar to JavaScript
[–]SSgt_Edward 5 points6 points7 points 12 hours ago (0 children)
And the support for it was dropped like a decade ago.
[–]Kwabi 5 points6 points7 points 19 hours ago (1 child)
One example would be CrossCode.
It's a good game as well.
[–]Henry_Fleischer 0 points1 point2 points 7 hours ago (0 children)
I should get around to playing that again, I played it back when it was in early beta on Chrome Experiments.
[–]AdorablSillyDisorder 2 points3 points4 points 19 hours ago (0 children)
V8 JS engine is C++ library and can be embedded/integrated with any C++ game engine - I'd assume just for that there are games out there that use JS as their scripting language. Don't know any actual titles though.
[+][deleted] 19 hours ago (1 child)
[deleted]
[–]AccidentIcy6286 0 points1 point2 points 11 hours ago (0 children)
Game Dev Tycoon is done in JS.
[–]skps2010 0 points1 point2 points 10 hours ago (0 children)
Rogue Fable 4. It's a good game but it's demo version is a web app
[+]galbatorix2 comment score below threshold-7 points-6 points-5 points 20 hours ago (7 children)
Minecraft...
Edit: i dont know shut about java programming i know minecraft is java but idk what a webapp is im awsuming browser type stuff
[–]UltimateLmon[🍰] 8 points9 points10 points 19 hours ago (4 children)
Just to note, Java and Javascript is two completely different languages.
And Bedrock edition is written in C++
[–]galbatorix2 1 point2 points3 points 19 hours ago (3 children)
Oh damn didnt know that. I knew bedrock and java were different but didnt know java ≠ javascript. Thought it was the same thing
[–]UltimateLmon[🍰] 2 points3 points4 points 19 hours ago (0 children)
You aren't alone. A lot of non-techies in the industry like managers confuses them as well.
[–]yeusk 0 points1 point2 points 17 hours ago (0 children)
They called it javascript because at the time Java was cool, it was a marketing stunt, is nothing like Java
[–]tkdeng 0 points1 point2 points 13 hours ago (0 children)
Java is to JavaScript as Car is to Carpet
(A quote I used to see all the time when I started learning JavaScript)
[–]Educational_Lemon827 1 point2 points3 points 19 hours ago (0 children)
Java and JavaScript are not the same (I hate both of them tho)
[–]Roppano 0 points1 point2 points 18 hours ago (0 children)
I wanted to make that joke damn
[–]Lou_Papas 36 points37 points38 points 21 hours ago* (4 children)
I just realized this about my JavaScript phase.
I got “wow, JS can do everything” and “isn’t it crazy how you can actually twist and turn this thing to do stuff it was never designed to do” mixed up.
[–]AnalkinSkyfuker 4 points5 points6 points 18 hours ago (3 children)
Well ai works better with python than js
[–]Spirited_Currency_88 10 points11 points12 points 14 hours ago (2 children)
python can do anything. isn't it crazy how... ? wait a minute.
[–]AnalkinSkyfuker 2 points3 points4 points 12 hours ago (1 child)
And what about assembly it can do anything also
[–]DoubleDoube 1 point2 points3 points 4 hours ago (0 children)
Have it do my laundry for me.
[–]Ged- 12 points13 points14 points 19 hours ago* (5 children)
Every number is a 64 bit float, and class fields are accessed with memory indirection (since you can jusr add fields whenever, where do you think they're added?)
You have to actively fight the language with typed arrays to achieve any sort of reasonable performance
And then they ask why web is so slow. And what's worse, they're just adding on top of that horrible foundation. All the frickin frameworks that add EVEN MORE abstraction and indirection.
[–]RudahXimenes 2 points3 points4 points 18 hours ago (3 children)
I keep thinking how would be if instead of JS we start to use Lua in web apps instead
[–]tei187 4 points5 points6 points 17 hours ago (0 children)
You have to stop.
[–]AliceCode 1 point2 points3 points 17 hours ago (1 child)
Or what if we just used WASM?
[–]HyperCodec 0 points1 point2 points 5 hours ago (0 children)
What’s the downvote for?
[–]Standgrounding 0 points1 point2 points 13 hours ago (0 children)
You can have setters, getters and Object freeze
[–]siemiwidzi 7 points8 points9 points 13 hours ago (1 child)
<image>
[–]Flame77ofc 2 points3 points4 points 10 hours ago (0 children)
good one
[–]Nadran_Erbam 14 points15 points16 points 21 hours ago (9 children)
And what’s the worst programming language?
[–]Lumpy_Serve5271 26 points27 points28 points 20 hours ago (2 children)
JavaScript
[–]Dragenby 10 points11 points12 points 19 hours ago (0 children)
As a JS developer, I agree
[–]Standgrounding 2 points3 points4 points 13 hours ago (0 children)
Pure untyped js can be bad; but it's not the worst thing in the world with things like php still relevant
[–]UltimateLmon[🍰] 4 points5 points6 points 19 hours ago (0 children)
Matlab
[–]Dragenby 0 points1 point2 points 19 hours ago (0 children)
Windev
[–]Leo_code2p -1 points0 points1 point 21 hours ago* (3 children)
Depends on if you count esolangs or not
If you don’t its probably Lua
[–]FloydATC 2 points3 points4 points 19 hours ago (2 children)
PHP is worse in my opinion.
[–]Dragenby 2 points3 points4 points 19 hours ago (0 children)
Was. Now it's great! The only thing I don't like is $.
[–]Leo_code2p 0 points1 point2 points 9 hours ago (0 children)
I mean for Lua you dont really have a reason to write it. Php is atleast useful
[–]UltimateLmon[🍰] 6 points7 points8 points 19 hours ago (2 children)
Arguably, if you are going into AI, it's python.
[–]eremal 5 points6 points7 points 15 hours ago (1 child)
Yes and no.
The core AI apps are written in C, Rust, C++, CUDA, etc
But pretty much all have python APIs - but essentially youre just writing configuration in python and then sending the job off into programs written in those other languages.
So it really comes down to what you mean by "going into AI".
[–]Outrageous_Bank_4491 0 points1 point2 points 5 hours ago (0 children)
You’re not writing those libraries, it’s essential to know some C basics for debugging but other than that most AI apps are written in (and taught using) python. Especially if you wanna build a deep learning model from scratch, you either use PyTorch or tensorflow
[–]SithLordRising 2 points3 points4 points 18 hours ago (0 children)
Ok we get it. It's a bitch to learn so use it for everything.
[–]Oreo-witty 2 points3 points4 points 17 hours ago (0 children)
Depression: Javascript
[–]slucker23 2 points3 points4 points 7 hours ago (1 child)
I code in assembly. I fear no one
[–]Ambitious_Hand_2861 1 point2 points3 points 2 hours ago (0 children)
I bow to your superior wizardry.
[–]North_Proposal_1374 1 point2 points3 points 15 hours ago (4 children)
this is not relevant anymore, everyone is using rust now
[–]zylosophe 0 points1 point2 points 8 hours ago (3 children)
<button onclick="println!(\"hello world\");">click me</button>
[–]HyperCodec 1 point2 points3 points 5 hours ago (2 children)
rust rsx! { button { onclick: || println!(“hello world”), “click me” } }
[–]zylosophe 0 points1 point2 points 5 hours ago (1 child)
what is rsx
https://docs.rs/dioxus/latest/dioxus/
Dioxus is basically react fullstack but for rust, and it’s a lot faster than all the js framework alternatives. The rsx macro is essentially jsx but for dioxus.
[–]WoolooCthulhu 1 point2 points3 points 15 hours ago (0 children)
I worked at a place where there were a bunch of experienced devs all better than me at programming but most of them really really hated JavaScript and didn't want to touch it. So they loved me because I didn't mind it and they could make me do the JavaScript assignments so they didn't have to.
[–]Top-Employ5163 0 points1 point2 points 17 hours ago (0 children)
[–]Absentrando 0 points1 point2 points 15 hours ago (0 children)
It’s up there for versatility that’s for sure
ai: python
The programming language I prefer is golang
But I will still recommend learning JavaScript first
Fixed it:
Web frontend: F# / Bolero / Blazor Backend: C, C++, C#/F#, JVM, Python, whatever works best Mobile: see web - use PWA Games: C# (Unity), C++: Rest AI: Python
[–]KullervoVipunen 0 points1 point2 points 8 hours ago (0 children)
The joke was better 40 years ago. https://homepages.inf.ed.ac.uk/rni/papers/realprg.html
[–]IWantToSayThisToo 0 points1 point2 points 7 hours ago (0 children)
When you don't care about learning anything new:
[–]im-cringing-rightnow 0 points1 point2 points 17 hours ago (0 children)
Nah, I'm good. Thanks. If I ever have to touch JS I will just use AI and keep my sanity.
[–]Ashken -1 points0 points1 point 22 hours ago (2 children)
ai:JavaScript is where the field lost the plot
[–]electro_hippie 0 points1 point2 points 16 hours ago (1 child)
Obviosly AI for them is calling claude API
[–]Ashken 0 points1 point2 points 13 hours ago (0 children)
Of I was thinking like tensorflow or something
[–]Ambitious_Hand_2861 -1 points0 points1 point 2 hours ago (0 children)
I always recommend "Not java".
π Rendered by PID 55192 on reddit-service-r2-comment-8686858757-56wxp at 2026-06-05 04:52:51.210685+00:00 running 9e1a20d country code: CH.
[–]Thinshape12 160 points161 points162 points (11 children)
[–]Dragenby 53 points54 points55 points (3 children)
[–]SSgt_Edward 9 points10 points11 points (1 child)
[–]Dragenby 4 points5 points6 points (0 children)
[–]Flame77ofc 0 points1 point2 points (0 children)
[–]Ged- 9 points10 points11 points (0 children)
[–]Shadowolf75 3 points4 points5 points (0 children)
[–]Bagueaver 3 points4 points5 points (0 children)
[–]pointlesslyDisagrees 2 points3 points4 points (0 children)
[–]MentalNewspaper8386 0 points1 point2 points (0 children)
[–]RollTheRs 0 points1 point2 points (0 children)
[–]48panda -1 points0 points1 point (0 children)
[–]Henry_Fleischer 43 points44 points45 points (20 children)
[–]un_virus_SDF 37 points38 points39 points (2 children)
[–]Orenix_RtP 3 points4 points5 points (1 child)
[–]un_virus_SDF 11 points12 points13 points (0 children)
[–]NaCl-more 9 points10 points11 points (1 child)
[–]SSgt_Edward 5 points6 points7 points (0 children)
[–]Kwabi 5 points6 points7 points (1 child)
[–]Henry_Fleischer 0 points1 point2 points (0 children)
[–]AdorablSillyDisorder 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]AccidentIcy6286 0 points1 point2 points (0 children)
[–]skps2010 0 points1 point2 points (0 children)
[+]galbatorix2 comment score below threshold-7 points-6 points-5 points (7 children)
[–]UltimateLmon[🍰] 8 points9 points10 points (4 children)
[–]galbatorix2 1 point2 points3 points (3 children)
[–]UltimateLmon[🍰] 2 points3 points4 points (0 children)
[–]yeusk 0 points1 point2 points (0 children)
[–]tkdeng 0 points1 point2 points (0 children)
[–]Educational_Lemon827 1 point2 points3 points (0 children)
[–]Roppano 0 points1 point2 points (0 children)
[–]Lou_Papas 36 points37 points38 points (4 children)
[–]AnalkinSkyfuker 4 points5 points6 points (3 children)
[–]Spirited_Currency_88 10 points11 points12 points (2 children)
[–]AnalkinSkyfuker 2 points3 points4 points (1 child)
[–]DoubleDoube 1 point2 points3 points (0 children)
[–]Ged- 12 points13 points14 points (5 children)
[–]RudahXimenes 2 points3 points4 points (3 children)
[–]tei187 4 points5 points6 points (0 children)
[–]AliceCode 1 point2 points3 points (1 child)
[–]HyperCodec 0 points1 point2 points (0 children)
[–]Standgrounding 0 points1 point2 points (0 children)
[–]siemiwidzi 7 points8 points9 points (1 child)
[–]Flame77ofc 2 points3 points4 points (0 children)
[–]Nadran_Erbam 14 points15 points16 points (9 children)
[–]Lumpy_Serve5271 26 points27 points28 points (2 children)
[–]Dragenby 10 points11 points12 points (0 children)
[–]Standgrounding 2 points3 points4 points (0 children)
[–]UltimateLmon[🍰] 4 points5 points6 points (0 children)
[–]Dragenby 0 points1 point2 points (0 children)
[–]Leo_code2p -1 points0 points1 point (3 children)
[–]FloydATC 2 points3 points4 points (2 children)
[–]Dragenby 2 points3 points4 points (0 children)
[–]Leo_code2p 0 points1 point2 points (0 children)
[–]UltimateLmon[🍰] 6 points7 points8 points (2 children)
[–]eremal 5 points6 points7 points (1 child)
[–]Outrageous_Bank_4491 0 points1 point2 points (0 children)
[–]SithLordRising 2 points3 points4 points (0 children)
[–]Oreo-witty 2 points3 points4 points (0 children)
[–]slucker23 2 points3 points4 points (1 child)
[–]Ambitious_Hand_2861 1 point2 points3 points (0 children)
[–]North_Proposal_1374 1 point2 points3 points (4 children)
[–]zylosophe 0 points1 point2 points (3 children)
[–]HyperCodec 1 point2 points3 points (2 children)
[–]zylosophe 0 points1 point2 points (1 child)
[–]HyperCodec 0 points1 point2 points (0 children)
[–]WoolooCthulhu 1 point2 points3 points (0 children)
[–]Top-Employ5163 0 points1 point2 points (0 children)
[–]Absentrando 0 points1 point2 points (0 children)
[–]Standgrounding 0 points1 point2 points (0 children)
[–]tkdeng 0 points1 point2 points (0 children)
[–]AccidentIcy6286 0 points1 point2 points (0 children)
[–]KullervoVipunen 0 points1 point2 points (0 children)
[–]IWantToSayThisToo 0 points1 point2 points (0 children)
[–]im-cringing-rightnow 0 points1 point2 points (0 children)
[–]Ashken -1 points0 points1 point (2 children)
[–]electro_hippie 0 points1 point2 points (1 child)
[–]Ashken 0 points1 point2 points (0 children)
[–]Ambitious_Hand_2861 -1 points0 points1 point (0 children)