News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by gls2ro on Saturday May 15, 2021 @02:05PM (#27167466)
Here is my perspective: There are plenty of reasons to use the same language on FE and BE but for me the main problem is the JS standard library.

Let me give you one example:

Lets say you want to validate if a string is a valid URL. What is a good way to do this in JS?

Just for reference in Ruby for example I can do:

   URI.parse(input).kind_of?(URI::HTTP)
No gems or any other engines needed.
Re:Modern Javascript: Everything you missed over the last 10... by hoten on Saturday May 15, 2021 @02:10PM (#27167513)
The URL constructor.
Re:Modern Javascript: Everything you missed over the last 10... by gls2ro on Saturday May 15, 2021 @02:48PM (#27167821)
Oh wow, how I missed that. I stand corrected!

Seems like JS standard library is better than I thought.