QueenSveta

QueenSveta

I’ve come to realize that I hate web programming (front and back end), but a large amount of jobs I see, although it may say Python Developer or Software Eng, it could just as well say web developer, very rarely have I seen a position for Python developer and it had nothing to do with web development.

That being said according to wiki, Elixir is a functional, concurrent, general-purpose programming language. Is it safe to assume Elixir is not just for web development, you can use it to create just about anything? Much like C# or Java (I understand those are OOP languages, but you can use them to create desktop utilities that don’t touch the web at all). In other words, it would be wrong to say or even think that all Elixir is good for is web development, correct?

First 10 of 13 Posts Switch mode

Nicd

Nicd

I wouldn’t say Elixir is only good for web programming, like I wouldn’t say Python is only good for web programming (it’s used for many other things). For an example of something in Elixir that’s not web related, check out https://nerves-project.org/ (Elixir for embedded basically).

I think just currently the web side is pulling so many developers and is the biggest area in software development (in my understanding at least), so that’s why most job ads are for web programmers.

Ankhers

Ankhers

I guess that depends on your definition of “web development”.

If you just mean websites, Elixir is capable of much more than that.

If you also include things that talk over the network, then that is mostly the BEAM’s sweet spot. Erlang was originally created to program telephone switches. And if I’m not mistaken, it is still the main language used today in those switches (I do not currently have a link to back that up).

peerreynders

peerreynders

See GUI programming in Elixir? and Why would I choose Elixir as a general purpose programming language? - #11 by Qqwy - i.e desktop GUI apps are rare

While it’s not directly web related, IoT is likely the most relevant aspect commercially speaking.

The other thing is that BEAM languages will most likely be used to implement distributed systems - which will most likely use something like JSON-over-HTTP for communicating between parts of the system which aren’t geographically co-located or have to cross some other type of “trust boundary”.

Maybe it’s more productive to explore what particular aspects of “web programming” you “hate”.

QueenSveta

QueenSveta OP

What I mean is, when wiki says it’s a general purpose language, it means I can create an application to read a file, sort the values, maybe do some quick calculations and output it to another file. Now, I understand that you don’t need Elixir to do this, if you have Windows, Powershell or C# can do that, or on Linux, Bash, Python, Perl are more than capable.

My point is, web development aside (including talking over a network), I can use Elixir for pretty any task I can think of, correct? I understand depending on the operating system, it maybe best to use the built-in language, if the tasks is operating system dependent, for example a trivial task for Powershell, might not be so easy for Python or Elixir because you need it to access the .Net Framework.

All that being said, Elixir is exactly as wiki said, a general purpose language. Any task I have in mind, web development or not, I can do with Elixir?

zinclozenge

zinclozenge

Riak is a distributed database that was written in erlang, so elixir could be used for similar applications (the storage engine is leveldb which is C++ but that’s neither here nor there).

edit: honestly elixir would be great for any sort of distributed application, but most people that are using elixir are coming from ruby on rails so their primary use case is web app development. From what I’ve seen, the primary use from companies that use erlang/elixir in a major way is for chatting functionality. Whatsapp, facebook (until they switched to c++), Riot/League of Legends, discord, etc.

OvermindDL1

OvermindDL1

Correct, though it’s best domain is most things related to highly concurrent and parallel I/O work.

Like I’ve written an IRC/Discord bot in it, which is a good use-case for it.

I’ve written game server, management software, and embedded server management services in the Erlang side of things over the years, as well as more.

I have also written a lot of web things in it too though (mostly Erlang, but my Elixir code is catching up).

QueenSveta

QueenSveta OP

I use the term “hate” a little too quickly here. What I mean is, I was researching what skills are necessary for back end development. As you might guess, Algorithms & Data Structures was a topic that came up. I don’t possess a CS degree and to me anyways, it seems quiet difficult. I don’t mind making the effort and learning DS&A, but I don’t want to learn a language that’s only good for one purpose, I want a language that’s flexible. For example, I learned Python on my own, and given enough time, I can build a decent desktop application for simple tasks. No need for DS&A, even though Python is sometimes used for back end development where that topic is relevant. Currently Python is my go to language for any task not OS dependent.

Same goes for front end development, although it’s a small part of it, I lack creativity, and I can’t create appealing websites. I understand front end web development is more than just creativity, but a lot of job postings that ask for front end development also asks for skills in Photoshop, and other editing software.

I just don’t like web development, but if I had to choose, back end development is the place I want to end up.

That’s why I don’t want to learn Elixir if all it’s good for is web development, I want more out of any language I learn. I want to make sure when it says it’s a general purpose language, it really means it. In other words, I can build and use Elixir applications that never touch the web, much like C# or Python.

peerreynders

peerreynders

I think that’s a misconception. Data structures and Algorithms are at the core of “programming”. For example: Elements of Programming Interviews in Python.

A Common-Sense Guide to Data Structures and Algorithms (amazon.com reviews) uses JavaScript, Python, and Ruby to cover some of the basics.

Personally I think those languages are less than ideal for the task - something in the vein of HtDP2e would be more useful - but most people are more utilitarian in their choice of programming languages and I’m not aware that there is any commercial viability to Racket right now.

I just don’t like web development, but if I had to choose, back end development is the place I want to end up.

Unfortunately there is the whole (mythical) fullstack developer thing going on - so in many cases there is some interaction with the web - so “web avoidance” is likely going to make matters more difficult for you. Mobile-first web apps are encroaching on native apps, Electron-based desktop GUIs, etc.

QueenSveta

QueenSveta OP

I think that’s a misconception. Data structures and Algorithms are at the core of “programming”. For example: Elements of Programming Interviews in Python

For more complex tasks, then a solid understanding of DS&A is necessary if you intend to implement your own DS. I never said it wasn’t important, or that it was unnecessary, just that for simple applications a List or Dictionary might be enough, I don’t have to worry about how it was implemented, just how to use it.

QueenSveta

QueenSveta OP

Am I out of touch?

I certainly won’t say you’re out of touch.

I just wanted to know if Elixir can be used for desktop development like C#/Python can, without touching the web (for example, can I create a GUI utility to read a file and preform calculations and save that file?). However, I realized that my question is misguided because I didn’t really understand Elixir and its user cases.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91898 914
New
AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4616 55835 594
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
matt-savvy
Is there a word for the ~> symbol used in Version strings? Do you also just call it a Squiggle Arrow™ ?!
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement