ladco

ladco

Should I use Java or Phoenix for my startup?

Hi,

I have proficiency in Java. I came to know about elixir and phoenix. I liked language and got pretty excited. I need to build a REST based backend server for my startup. I was thinking of using phoenix but as I started rethinking in functional way is getting difficult. Most of the time I start thinking in imperative way of solving.

This is hampering progress on my work. Anybody, who was in the same boat, what did you do. Any help/comments is appreciated.

Most Liked

lukerandall

lukerandall

I suggest you examine what you’re looking for from your startup. Is it to learn new languages & programming paradigms and to have fun, or to validate a business idea?

If it’s the former, great. Keep going with Elixir, ask questions when you get stuck and have fun. If the latter, I suspect using a language you’re not proficient with is a mistake. You’re validating an idea, odds are you’re going to throw away or rewrite the code you’re currently writing. Use the language that you’re most productive in, so you can get to that stage sooner.

easco

easco

I will echo what @lukerandall said. “Startup” implies that you have money - perhaps your livelihood, on the line. In that case go with what you know.

Now to your point of retooling your thinking. Making the move from the Object Oriented paradigm to the functional paradigm is difficult. For the folks I know who have worked through it, there is not really any special trick. It takes practice, plain and simple.

What worked well for me was working my way through a lot of small problems - using something like exercism (http://exercism.io). With the way functions compose it seemed to work well for me to try little things and then build them together into bigger constructs. I also spent time using Functional Paradigms in applications that were otherwise Object Oriented (Swift and Objective-C in my case). After a while you get a good feel for when a problem is particularly suited to the Functional Paradigm which helps.

febeling

febeling

Definitely avoid transitioning from OO programmer to functional programmer at the same time as you transition from engineer to entrepreneur. Both are quite challenging endeavours, which you’re better off tackling one after the other.

Last Post!

balas

balas

First of all Java is becoming is functional. I dumped Java 9 years ago for groovy and grails for its functional flavour and meta programming capabilities resulting in less verbose and more readable code (Convincing customers that they get Java byte code that will run their Tomcat/JBoss servers). I am using Elixir and Phoenix now because of the same reasons. All our new products are being written using the power of Elixir OTP. In a way declarative programming is less confusing and more natural than Imperative programming.

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement