MsFlammkuchen ( @MsFlammkuchen@lemmy.blahaj.zone ) 40•2 months ago- It’s not PHP.
- I don’t know. I didn’t think I’d get this far.
bastion ( @bastion@feddit.nl ) 18•2 months ago- It’s not PHP
- It’s already implemented in browsers
Hexarei ( @Hexarei@programming.dev ) 14•2 months agoPHP has gotten really good over the past few versions, actually. Lots of really great stuff has been added, it feels like it resembles rust more every release lol
CarrotsHaveEars ( @racketlauncher831@lemmy.ml ) 1•2 months agoPHP10: We now allow interop with Rust!
PHP11: We now allow writing code directly in a .php file and compile it with rustc.
Hexarei ( @Hexarei@programming.dev ) 1•2 months agoCan’t forget the intermediate step of PHP 9: PHP borrow checker
Tenkard ( @Tenkard@lemmy.ml ) 36•2 months ago- You can call it “Java” to enrage other programmers
- You can compare numbers against strings without wasting time converting them
nxdefiant ( @nxdefiant@startrek.website ) 2•2 months agoThe scripting language formerly known as Java.
AVincentInSpace ( @AVincentInSpace@pawb.social ) English36•2 months ago- It runs in the browser
- Web developers know it already so we might as well
mokus ( @mokus@lemmy.blahaj.zone ) 35•2 months ago- Job security
- its not COBOL
Fargeol ( @Fargeol@lemmy.ml ) 22•2 months ago1 - Easiest way to run a script in your browser
2 - Always finds its way if inputs are bad
Nan - undefined space ( @space@lemmy.dbzer0.com ) 1•2 months agoEasiest? More like… The only way.
Destide ( @sirico@feddit.uk ) English21•2 months agoIt leads to typescript
You get surprises from npm
Elise ( @xilliah@beehaw.org ) 19•2 months agoIt has a cup of coffee as logo
BorgDrone ( @BorgDrone@lemmy.one ) 14•2 months agoThat’s Java, not Javascript. Java is to javascript as ham is to hamster.
Elise ( @xilliah@beehaw.org ) 5•2 months agoOr butter to butterfly
BorgDrone ( @BorgDrone@lemmy.one ) 6•2 months agoOr car to carpet
Or fun to funeral
Elise ( @xilliah@beehaw.org ) 3•2 months agoMoon to moonshine
lowleveldata ( @lowleveldata@programming.dev ) 13•2 months agoawait
andasync
KillingTimeItself ( @KillingTimeItself@lemmy.dbzer0.com ) English13•2 months agohmm, let’s see.
It’s not java.
It’s also not a scripting language.
also to the repeat grammar nazi in the comments here, hi, “its”
inetknght ( @inetknght@lemmy.ml ) 4•2 months agoIt’s also not a scripting language.
It definitely is a scripting language.
hello-world.js
:#!/usr/bin/env node console.log("Hello world");
Your favorite command line tool:
chmod +x ./hello-world.js ./hello-world.js
You just need to install
npm
, eg viaapt-get install npm
. KillingTimeItself ( @KillingTimeItself@lemmy.dbzer0.com ) English2•2 months agoeverything is a scripting language if you try hard enough.
Thann ( @Thann@lemmy.ml ) English12•2 months ago- Its not java
ulkesh ( @ulkesh@beehaw.org ) English7•2 months agoWhich is a blessing for Java.
kevincox ( @kevincox@lemmy.ml ) 12•2 months ago- Is available to be used in website scripting.
- Not quite as full of footguns as PHP (although it is close).
ColeSloth ( @ColeSloth@discuss.tchncs.de ) 11•2 months agoA lot of people are familiar with it and…um…hackers like it being in use?
sincle354 ( @sincle354@kbin.social ) 9•2 months agoWe have forced it, quite hamfistedly, to do anything. The organic hell-evolution of web browsers turned them into do-anything sandboxed mini-OS. It meant whatever hellish code you used to write your corporate mandated web app could now become a perfectly bloated standalone application. And the demonic language that would enable it was called Javascript. It does the backend and it does the frontend. You could consider those advantages over other devices, like toasters and those handheld electronic games from the 80s.
Shape4985 ( @Shape4985@lemmy.ml ) 6•2 months agoDamn this is hard. I keep java script disabled by default so its hard to say anything good. I begrudgingly have to whitelist websites i need that cant run without it.
ADTJ ( @ADTJ@feddit.uk ) 3•2 months agoI feel like that’s more because you don’t want websites you visit running code than because you dislike this particular programming language
Shape4985 ( @Shape4985@lemmy.ml ) 2•2 months agoThats true. It is more to do with code execution than the language itself.
heavyboots ( @heavyboots@lemmy.ml ) English6•2 months agoBrowsers love it!
Practically anything you write will execute without all that scope and well formed statements nonsense.
Mind you, number 2 is also its biggest flaw as well, but…