Strongly-typed languages for web programming
Asked Answered
L

8

10

Are there any strongly-typed programming languages for the Web? I program in PHP now, but often I wish it yelled at me when I tried to compare a number to a string. Functions in the standard library that can return either a bool or an integer don't make anything easier either.

I know there's .NET, but is it my only choice?

Leighleigha answered 7/12, 2009 at 17:33 Comment(3)
Are you looking for strongly-typed, or statically typed? en.wikipedia.org/wiki/Type_systemBigford
Strongly-typed and either statically- or dynamically-typed.Leighleigha
If you wish "it" (assuming you mean your IDE/compiler) to yell at you when you compare a number to a string, then Java is a better answer than Python. Java is statically-typed and Python is dynamically-typed.Mines
O
7

You can develop Java web-applications. See JSPs.

Overtake answered 7/12, 2009 at 17:36 Comment(1)
While (maybe) still valid in 2009, this should not be the highest-voted answer in 2015 :) Java is a perfect suggestion just not JSPDenticle
A
6

Java? C++? Any language can be a web language... More details on your requirements would be needed to make a specific recommendation.

Python is a powerful, and popular dynamic strong typed language for web development:

Ailing answered 7/12, 2009 at 17:35 Comment(4)
I pity the fool who tries to use C++ for web development. Java is tolerable, though.Radbourne
Regarding web development using C++ you may want to check out pocoproject.orgHoad
@JS Bangs, Are you speaking from experience of from some things you've heard?Penis
CPPCMS can be a good start if performances are criticals : cppcms.sourceforge.netSkelp
C
5

Python is strongly-typed, and widely used for web.

Crifasi answered 7/12, 2009 at 17:35 Comment(0)
E
5

You can use Java for web development. You would then need Tomcat or another Servlet Container that supports the deployment of Java Servlets and JSPs.

Best wishes,
Fabian

Elfreda answered 7/12, 2009 at 17:36 Comment(0)
S
3

There is an OCaml web programming framework, and OCaml is strongly and statically typed if that's what you are looking for.

Seeto answered 7/12, 2009 at 17:50 Comment(0)
P
2

I just came across Lift - a framework for web development using Scala.

Penis answered 19/7, 2010 at 10:59 Comment(0)
P
2

Wt is a web development framework for C++.

Penis answered 19/7, 2010 at 12:4 Comment(0)
T
0

Seaside is a web-framework for Smalltalk.

Tehee answered 19/7, 2010 at 11:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.