What fucking programming language should I use?
wfplsiu.com
wfplsiu.com
Have you already established a language for your project or team?
Yes: Keep using that fucking language. Unless you can't accomplish your goals with your current language, you're setting back progress by starting with a new language.
No: Are you building a mobile app?
Yes: Are you building for Android, iOS, or both?
Android: Looks like you're using fucking Java. Hybrid apps suck.
iOS: Use fucking Swift. Hybrid apps suck.
Both: Time to learn fucking Java and Swift. Hybrid apps suck, so your dumb ass needs to learn both.
No: What the fuck are you building?
Web app/Networked application: Is it a client-side app?
Yes: Looks like you're stuck with fucking JavaScript you poor bastard.
No: Are you working for an established enterprise or a startup?
Enterprise: Just use fucking Java. No one ever got fired for choosing Java.
Startup: Do you give a shit about concurrency?
Yes: Do you know why you give a shit about concurrency?
Yes: Are you into functional programming?
Yes: Do you need to use the Java Virtual Machine for some fucking reason?
Yes: Use fucking Clojure
No: Use fucking Rust or Elixir. I've got you this far, choose whichever one doesn't look like shit to you.
No: Use fucking Go.
Not really: I didn't think so you asshole. Just use Ruby - probably with Rails - and get the fuck out of my office.
No: Do you need static types?
Yes: Use fucking Dart
No: Do you want only one language in your codebase?
Yes: You're stuck with fucking JavaScript, but you already knew that
I don't care: Are you already familiar with at least one programming language?
Yes: Are you nostalgic for the web of the early 2000s?
Yes: You should probably stick with fucking PHP
No: Use fucking Ruby
No: Use fucking Python. It's easy to learn and very powerful.
Desktop app: How fucking lazy are you?
Really lazy: Damn it. Just use fucking Visual Basic. I hope you're proud of yourself.
Sort of lazy: Just use fucking Java.
I'll sleep when I die: Do it properly in some fucking dialect of CThere's a wonderful Andy Rooney bit about not using such words because he doesn't want to burn in heck.
Visual Basic hasn't really existed for decades.
Qt has nothing to do with laziness. It's simply a well thought-out GUI toolkit which looks good and doesn't require tons of boilerplate code to get a hello world app to work.
Nowadays, if other GUI toolkits aren't as user-friendly as Qt, someone has dropped the ball.
Of course the alternative is understanding your problem domain and picking appropriate tools and approaches instead of using (insert .Net or Java framework here) for everything.
It said use Go, but Go is garbage collected and that is unacceptable for an app that needs to process real time audio with low latency.
Same thing applies to any networked video game.
There doesn't actually seem to be a way to explicitly free memory though so I doubt this is actually used.
https://github.com/golang/go/issues/13761#issuecomment-16772...
Though Rust is probably more appropriate for your needs, in terms of more modern languages.
As for your workarounds, for real time software, these workarounds are too nondeterministic. Real time is one of the primary features, so you need very predictable performance, and that implies having direct control over things like memory.
Yes, if you're doing really real-time, that's one thing... many things aren't, so it depends... that said, again, if you need really real time, a functional approach and rust may be a better option... or a number of other FP languages, for that matter... or C/C++ if you're a masochist, or really anal with your approach (not really trying to offend C/C++ guys, more pointing out that it's rarely the best pragmatic option)
Not really.
https://twitter.com/brianhatfield/status/692778741567721473
I've seen 10ms mentioned as worst possible scenario, which means not coding with the GC in mind.
You can write your GUI in Visual Basic or Node or whatever-the-hell, as long as you've got your audio engine written in something with deterministic latency. If you specify a protocol ahead of time, those can even be separate teams with separate competencies!
Sadly, none of the real-time audio/video/image processing software companies seem to have caught onto this. I guess it's only really "well-known" in the network programming world. (A few game companies seem to have figured it out as well, but not nearly the majority.)
You don't always need an edgy language to use. Just use what you know.
Use the language that's right for the job.
You don't even need Javascript!