Skip to content

catberry frontend #78

Open
Open

Description

@ForNeVeR

There is an ongoing idea to use Catberry for frontend part of our application. We need someone who will research possible ways of integrating it.

Here is the proposed picture of our architecture:
image

Activity

  1. self-assigned this
    on Mar 4, 2015
  2. rexim commented on May 4, 2015

    @rexim
    Member

    Related to #112

  3. added this to the Dropping Play framework milestone on May 4, 2015
  4. rexim commented on May 4, 2015

    @rexim
    Member

    @ForNeVeR so what are we going to use as a client side language? Scala.js again?

  5. ForNeVeR commented on May 4, 2015

    @ForNeVeR
    MemberAuthor

    Well, at a first look it seems that the Catberry application consists of a bunch of various nodejs-like modules that will be rendered by server (and somehow packed for client). Also there is a small piece of server code that serves all the components.

    We can choose any technology we like to implement this, but there may be some problems. I'll introduce you the most realistic and painless options I see.

    1. JavaScript. Fuck that idea, I will never kindly use it.

    2. ES6. That's more interesting but it is the same old JavaScript with some improvements. Node.js today don't support it but we can use a translator to compile ES6 to node-supported ES5. IMHO it can be used bit only as last resort when all other options fails.

    3. Scala.js. It is interesting option when you want to implement some really complex algorithms. In all other cases I think it could be too overengineered. Is has a big overhead comparing to native JS. Also there is a problem with debug - generated code is very long and trust me, you will not find even a piece of your written code in that gigantic generated JS bundle.

      And as we want to deploy and debug server code too (maybe even in some weird nodejs environments) this becomes a problem for us.

    4. CoffeeScript. Mr @Svoloch would like it but personally I can see only little improvements over native JS. But at a good side it generated clean and debuggable code. I think currently it could even be preferred over ES6.

    5. TypeScript. I really like that and see no problems with writing code in it. It has strict enough type system and the generated code is also very clean and can be easily debugged.

    6. Purescript. As a last and funny option, I propose using of a Haskell-inspired Purescript language. It is nice but fuck the hell if I know how we will write our application with it. We may try though if you feel funny mood.

    Personally I'd choose number 5 but I think that I'm a little biased here so let's discuss them all.

  6. rexim commented on May 4, 2015

    @rexim
    Member

    @ForNeVeR thank you very much for such a great detailed review! I'm ok with TypeScript. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions