DEV Community

Discussion on: What Is Your Main Language?

Collapse
 
alexhaxe profile image
Alexander Blum

About five years ago I switched from coding most of my projects in plain Javascript and/or PHP to almost exclusively writing them in Haxe.
Since Haxe transpiles into (amongst others) both Javascript and PHP, I can use the same target platforms, but I get type safety, syntax checking, dead code elimination, conditional compilation, etc. And I can easily share code between frontend and backend without the requirement of having both run the same language, or needing a nodejs server (not that targeting nodejs would be a problem with Haxe).

Nowadays I use Haxe for almost everything, from writing Linux (or Windows or MacOSX) command line tools, to JS/PHP web applications, to Linux, Mac and Windows desktop applications, to iOS and Android apps.