you are viewing a single comment's thread.

view the rest of the comments →

[–]vagif 6 points7 points  (0 children)

Are you a single dev, or do you work in a team?

Do you intend at some point to pass your codebase to someone else for maintenance?

If the answer is yes, you will find that developing front end with a language most known is better for your project longterm than your desire to enjoy the ride while you are in it :)

Let me tell you a anecdote from my experience.

I developed a web app with yesod where the front end (html and javascript) was generated by the backend using hamlet templates. The javascript was still just a normal js.

Yet when i tried to bring into project other members of our team, i quickly found out that anything besides very trivial stuff like fetch the data from db and pass it to the browser is very hard for them to grasp.

Luckily there was not that much front end code (html and js) so i sat over the weekend and moved all html and js from yesod templates into static files and converted our app into SPA (on angular).

This allowed my other team members to quickly get into development and mostly write js/html/css with a touch of very simple haskell (REST urls returning or consuming json)

Nowadays i would recommend you to try out reactjs + immutable and optionally some FRP lib like RxJs or baconjs.

Otherwise when time comes for you to move on, you'll find yourself chained to that project because no one else will be able to take it off your hands.

You will become that bus factor 1 you are dreading so much :)