Skip to content

silly less / coffeescript deps #766

Closed

Description

@tj

pretty brutal that you can't build the thing without these executables... please consider removing these dependencies, it's nothing but annoying

Activity

  1. tj commented on May 7, 2013

    @tj
    Author

    handlebars too apparently

  2. tj commented on May 7, 2013

    @tj
    Author

    ew nevermind the entire driver is coffeescript

  3. mglukhovsky commented on May 7, 2013

    @mglukhovsky
    Member

    @visionmedia, we rely on LESS and CoffeeScript for both the web UI and the JS driver-- it's proven to be useful in our development process.

    However, we provide a source distribution with all these assets precompiled specifically because on some platforms these tools behave unpredictably. It's detailed in our build instructions: http://rethinkdb.com/docs/build/

    You can always find the latest source builds here: http://download.rethinkdb.com/dist/

  4. tj commented on May 7, 2013

    @tj
    Author

    I don't use things I can't read / contribute to, I'd seriously consider removing at least the coffeescript because that's something people will want to contribute to more so than the CSS.

  5. mglukhovsky commented on May 7, 2013

    @mglukhovsky
    Member

    I appreciate your comments on our use of CoffeeScript. We've found it hasn't been a deterrent to contributions, but your point is well-taken-- you're welcome to look at the compiled JS output from the latest build package-- the output is located at drivers/javascript/build/rethinkdb.js.

    The compiled version is well-documented and readable-- check it out!

  6. tj commented on May 7, 2013

    @tj
    Author

    the rest looks sweet though, just a little disappointing to run across that. I think build steps are pretty important personally, if it's not reasonably smooth you're just opting-in to a big black box that you have no hope of contributing to. Something to think about though! cheers

  7. defunctzombie commented on May 7, 2013

    @defunctzombie

    The issue isn't that you use coffeescript. It is more that you are claiming to have a "javascript" driver/module but it isn't cause you use coffescript (which is a separate language). To me, this is confusing for anyone but the initiated. I can crosspile python to js, but that doesn't mean I am publishing js modules like that :/

    By all means, continue to use whatever you love and keep making cool stuff tho!!

  8. jdoliner commented on May 7, 2013

    @jdoliner
    Contributor

    Hmm, this actually makes some sense to me. How hard would it be to make the driver be pure javascript? Could we just take the compiled coffee script and start editing that by hand?

  9. neumino commented on May 7, 2013

    @neumino
    Member

    Or we can just say that we have a node driver.

  10. kenperkins commented on May 7, 2013

    @kenperkins

    I take issue with this comment:

    We've found it hasn't been a deterrent to contributions

    How do you know?

    Edit: I ask because I had this same dilemma presented to me a number of times; and every time, the impact to potential collaborators outweighed the benefits to the development process.

  11. ricardobeat commented on May 8, 2013

    @ricardobeat

    @kenperkins because they mantain the project and are happy with the level of contributions?

    IMO there are more important things to worry about right now than back-porting the node driver to js, like the ~250 open issues, optimizing performance or supporting secondary indexes :)

  12. coffeemug commented on May 8, 2013

    @coffeemug
    Contributor

    Hi all, I'm the one who nudged @wmrowan to use CoffeeScript to write the driver. I'm his boss, so the responsibility is mine.

    Firstly, I was a little hurt to find that folks made disparaging comments and then edited them when this issue got twitter attention. Nothing makes the team here happier than knowing that people are taking the time out of their day to play with Rethink. We always welcome criticism, and we try and take full responsibility for all technical decisions. However, we really don't appreciate finding curses in our inbox. Everyone is in this together to make technology a little bit better -- could we please keep things civil?

    As to using coffee for the driver, it makes our development process much easier but I can see how it can be confusing to the community. I'm going to reopen this issue and do the following:

    1. Make build instructions without extended dependencies (less, handlebars, etc.) described by @mglukhovsky above (silly less / coffeescript deps #766 (comment)) much more prominent on the build page.
    2. Revise the wording on the site for the JS driver to make it clear that it's written in CoffeeScript.

    In addition, we'll see if we can change the build process to build Rethink without the web UI if any of the dependencies (handlebars, etc.) are missing and Rethink wasn't downloaded via a source distribution. This should be pretty easy, but we have to discuss this a bit first.

    Thanks to everyone for your feedback -- please keep it coming!

  13. heapwolf commented on May 8, 2013

    @heapwolf

    i'd be excited to try this if it was just written with javascript :)

  14. 17 remaining items

  15. danielmewes commented on Jan 19, 2015

    @danielmewes
    Member

    @joaojeronimo regarding putting drivers in a separate repository, please see #1740

  16. niieani commented on Nov 18, 2015

    @niieani

    👍 for move to ES6 or to rethinkdbdash. TypeScript could be even more awesome, since that would offer autocompletion just like the one in the Web UI, but in our IDEs.

  17. niieani commented on Nov 24, 2016

    @niieani

    Would the rethinkdb team be interested in a PR that converts the current CoffeeScript driver to TypeScript / ES201x?

  18. joaojeronimo commented on Nov 25, 2016

    @joaojeronimo

    Please don't do typescript, the point of this PR is to have the rethinkdb driver in a common language for everyone that you don't have to transpile and more people understand/write/work with than any other language, writing the driver in typescript is just as bad as coffeescript except with a different syntax and type safety at compile time.

  19. niieani commented on Nov 25, 2016

    @niieani

    @joaojeronimo For backwards compatibility you'd need to transpile modern-style JS to ES5 anyway, so that's not really saving any steps.

    TS is simply JS with optional typings, it's not a different syntax, unlike CoffeeScript.

    The upside of TypeScript (aside from type safety and better maintainability) is that, if at any time in the future the team decides to ditch TypeScript and switch to pure JavaScript, they can strip the type declarations using one simple command (tsc -p . --target esnext). Et voilà, you're back to using pure JS!

    It's not possible to do the same with CoffeeScript, since CS includes many features that JS simply does not have, and the code transpiled by CS is filled with overly verbose, convoluted and hard-to-read JS with extra helper methods.

  20. joaojeronimo commented on Nov 25, 2016

    @joaojeronimo

    Well this is not about to turn into a JS vs TS conversation. My point is more people write/understand Javascript than both typescript and coffeescript and probably all the AltJS languages combined, if you want to have more people willing to contribute to a community project then you go with Javascript.

    Your point about typescript compiling to JS is as valid as if it were with coffeescript, typescript also brings non JS things to the table like async/await and others.

  21. niieani commented on Nov 25, 2016

    @niieani

    I'd like to leave this decision to the rethinkdb team -- rather than wasting time discussing the merits of one over the other -- I'm happy to help with either a TS or a ESnext conversion. Ultimately they'll be working with it the most, so they've gotta be comfortable with the language choice.

    I proposed TS as the better alternative, since the team is in the process of converting horizon's client to TypeScript (there's a WIP PR by @deontologician), so it seemed natural that the rethinkdb driver would move to TypeScript too.

    @joaojeronimo async/await is not TypeScript. It is a stage-3 proposal that will ship as official JS, most likely in the ES2017 standard, and most of the major browsers already have implementations ready, in fact Chrome ships with await/async enabled by default.

    While it might sound contradictory, contributing to a TS codebase is much easier than to a JS one, because of things like self-documentation through types and autocompletion. You can dive into the code and understand it much quicker than a raw JS codebase.

    Plus, it's easy to refrain from using any TS-specific features in the code (actually, the only TS-specific feature are public/private fields in class constructors, the rest is all standard JS + some stage-3 ECMA proposals).

    I'm not going to speak about TS vs JS anymore in this topic, since many things were said about that on the internet and it just seems like a pointless flame war -- also -- there are 19 participants to this topic, so lets respect their time and their email inboxes. 🐧

  22. ricardobeat commented on Aug 23, 2017

    @ricardobeat

    While it might look like foresight in retrospect, the general attitude towards CoffeeScript as seen here, likely helped its early demise.

    I still feel like the years when I wrote CS full time (2010-2013) were one of my most productive periods, and can't help but grin at the sight of 'pretty brutal that you can't build this without these executables.. all these dependencies' considering where we are today. RIP coffeescript :)

    Close this one?

  23. neumino commented on Aug 27, 2017

    @neumino
    Member

    This is a very old thread, please open a new one if you want to discuss rewriting the interface.

  24. locked and limited conversation to collaborators on Aug 27, 2017
  25. srh commented on Dec 24, 2017

    @srh
    Contributor

    I might get rid of the coffeescript dep. If we're going to open a new one I'll... close this one.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions