News for hackers. Stuff that matters.
Re:I still love PHP and JavaScript by avl999 on Tuesday August 02, 2022 @08:29PM (#32326174)
In 2022 there is no reason to prefer these dynamically typed languages over statically typed ones for production code. When languages like PHP, Ruby, JS blew up the knock against statically typed languages was the verbosity of the resulting code, slow development cycle and general cruft, these languages solved a real problem at that time. That is no longer true today- TypeScript, Go, C# code feels as fluid as a dynamic language and even Java has come a long way with type-inference that Java no longer feels as unwieldy as it used to.

I legitimately can't imagine willingly not using a statically typed language for anything that matters that's gonna have more than just me working on it.

Re:I still love PHP and JavaScript by throwaway_4ever on Tuesday August 02, 2022 @09:14PM (#32326490)
"No reason", at all? Have you seen how much standardized legwork is done with a backend framework like Rails and Django? How much easier that is to work with other developers because everyone is following known conventions? With Django, there's also the huge benefit of millions of data libraries an import away. When I search for client libraries to do something, anything under the sun has a Python client. Much much less so with Go, C#, and Java.
Re:I still love PHP and JavaScript by koyote on Tuesday August 02, 2022 @10:16PM (#32326866)
> Have you seen how much standardized legwork is done with a backend framework like Rails and Django? How much easier that is to work with other developers because everyone is following known conventions?

How is Django different from, say, ASP.Net Core in that respect?

Re:I still love PHP and JavaScript by jrsj on Wednesday August 03, 2022 @01:52AM (#32328102)
It's not imo but ASP.NET MVC is uniquely good among frameworks for statically typed languages. Java, Go, etc don't have anything comparable.
Re:I still love PHP and JavaScript by seabrookmx on Wednesday August 03, 2022 @12:10AM (#32327578)
You lost me at Java. Web development was popular in Java well before it took off for Python, and it's been one of the most popular programming languages period since it's inception. There's been multiple supported clients for anything I've ever wanted to connect to.
Re:I still love PHP and JavaScript by nfhshy68 on Wednesday August 03, 2022 @05:47AM (#32329617)
Java got type inference? I need to see this!

Is it still really verbose with lots of too small classes?

Edit

https://www.javatpoint.com/java-8-type-inference

Wow that's pretty cool.

More? Less? Interesting is just how far I checked out of that language years ago.

Re:I still love PHP and JavaScript by dbbk on Wednesday August 03, 2022 @07:11AM (#32330155)
PHP in 2022 is statically typed, if you want it to be. The only thing afaik it's currently missing is generics.