Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you are the sole developer working on migrating the project and you want to have the frontend in React.js why not use Node.js/TypeScript instead of Scala for the backend? This would save you from context switching between two languages and consequently increase the development speed.

Also why the rewrite? If it works (in PHP) it works. Perhaps instead you could maybe add some frontend JS for better caption UI/UX?

Does everything have to be done in React nowadays, as opposed to plain static HTML? (Speaking as a React/Node dev myself)



I tried Node.js on the backend but it didn't have the expressiveness and ecosystem of Scala.

I run a few simple Node and Python apps behind the scenes of caption.me, but for the core code, I want the power of Scala, its functional style, rich type system, monadic composition, immutability-by-default, avoidance of nulls etc. As well as great libraries like http4s, Doobie etc, Scala also gives me access to the entire Java ecosystem.

The PHP->Scala/ReactJS rewrite is partly a learning and experimentation project for me. I use Scala in my day job, and when I make technical/architectural decisions, I benefit a lot from the stuff I've learnt in my side projects, particularly on the front end side.

PHP has had its day in the sun (as shown in the job market trends on https://www.itjobswatch.co.uk/jobs/uk/php.do ), so I think it's more valuable to get exposure to modern languages as I still have a few years of professional coding ahead of me :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: