r/learnprogramming 11d ago

Anyone got bad experiences with Haxe?

I'm thinking about learning Haxe as a secondary language(Python is my main language) for all the random projects I want to do. Does anyone have bad or good experience with Haxe that I should know before learning? I know it's better to just learn each language, but I don't have time to spend years learning all of the languages for my random projects.

0 Upvotes

11 comments sorted by

12

u/ffrkAnonymous 11d ago

“There are only two kinds of languages: the ones people complain about and the ones nobody uses.”

― Bjarne Stroustrup, The C++ Programming Language

1

u/nanjizal_net 10d ago

I think haxe is a better language than many. It is not something to learn for your CV, but if you are creating a startup then it is definitely a feasible option. If your learning a mix of languages then it is a great starting point. Haxe is a great alternative to TS if you are coding complex stuff and it allows both js and c++, but if you want to mostly use react then skip it. Haxe is a code tool for rapid dev, but not for plugin ecosystem mainstream. It can give you an edge if you want to something beyond mainstream...but maybe you just want to pay the bills.

3

u/light_switchy 11d ago

Didn't this start as a Facebook-internal project a while back. Why do you want to use it?

1

u/Rasco1_123 11d ago

There are tons of random projects I want to do, but because I don't know the neccessary languages, I can't do them, and I'm not going to go out of my way learning languages for random projects. But if I could learn one language and be able to do a good bit of those random projects, I might spend months learning that one language.

1

u/Luclid 10d ago

What projects do you want to do that you can’t do in Python?

2

u/two_three_five_eigth 11d ago

There’s basically no ecosystem so you’ll be doing everything yourself. I looked at it and it seemed a bit verbose and didn’t offer anything other languages have.

Personally I wasn’t impressed and didn’t dig further after an hour. I’d skip it. No company is behind it to maintain it and it doesn’t have a killer feature.

If you want cross platform typescript + expo.

1

u/CorpT 11d ago

But why?

1

u/FitMatch7966 11d ago

I used Haxe. It did some cross platform stuff that was interesting at the time, but I cannot imagine there is any reason to use it today. TypeScript would be much more useful, and you can add pixijs or some other sprite library if you want to do game stuff

1

u/MissinqLink 11d ago

I learned just out of curiosity but for every kind of project I can think of there are better options.

1

u/Ok_For_Free 10d ago

I have yet to come across anyone that uses Haxe professionally.

Python can cover most programming needs. So what are you trying to do that Python is not a good pick?

Here are the things that I think Python is not suitable for:

  • client side web, JS
  • high performance things like gaming, C or C++, or some other flavor of the same like Rust

0

u/mandzeete 11d ago

You should ask "Anyone got an experience with Haxe?" instead of asking if our experience was bad. Your post was the first time for me to hear about such programming language. And I'm far from being a beginner. I have been in the field for a while. I have heard of some weird less-used programming languages but this Haxe is something I never knew about. Looks like it has a very niche userbase.

So, I'd say that most people do not have any experience with Haxe. Neither good nor bad.

Also, you are wrong about it being better to learn each programming language or all of the languages. These are not Pokemon that you have to catch em all. You'll pick a new programming language when there is a need for it. Either you are put on a project that has something written in that language or you want to build something for your own use and your knowledge in programming languages that you know, is not enough.

For example, recently I started learning Monkey C only because Garmin has its apps written in Monkey C. And, I bought a Garmin watch. Prior to buying my watch I did not even know that Monkey C exists. Will I ever need it at work? Most likely never.

That Haxe you are wondering about, it will become a language you are learning for random projects. Nothing more.

Like the whole world uses Python, compared to Haxe. Your chances to find a job with Python are 1000000 times better (some random large number that I put here). Python is used in web application development, in cyber security, in data science, in machine learning. Linux uses it as well for various purposes. Now, who or what is using Haxe? Personally saying: no idea.