Hi,
I wanted to know which lang with be easier, better and stressfree for building a dynamic website.
What I have tried:
I tried using coding PHP, seemed simple and understandable. However, for a better server side scripting, I would like to know which would be better.
解决方案You can create a "dynamic website" in any language, the main question you should ask yourself is what are the limitation on you :
1) What platform you are deploying on?
2) What language you are more familiar with?
3) What limitations are imposed on you that could impact your decisions?
A server-side scripting language is enough for dynamic website; PHP or Java part comes later. You just need to handle how a web page is served to visitors.
PHP is most widely used in beginners, training institutes etc. Java EE for web is a much complex infrastructure, and due to its tough learning curves beginners often don't use it. It is used by giants, such as Red Hat etc. Then there comes my choice, ASP.NET (an entirely biased sentence) is a really simple, powerful and agile framework for development and beats them all, in any way they can compete.
So, if you are a beginner go with ASP.NET Core, it has all the features of a modern scripting language + agility that PHP offers + security and extensibility that Java EE offers. Besides, you can host it without having to purchase additional licenses — it is open source and free; as in everything. ;-)