You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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!
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
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!!
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?
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.
@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 :)
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:
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!
👍 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.
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.
@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.
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.
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. 🐧
Reacted by Lars Holznagel, Silas Rech, Nathaniel Kofalt and Mo
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 :)
Activity
tj commentedon May 7, 2013
handlebars too apparently
tj commentedon May 7, 2013
ew nevermind the entire driver is coffeescript
mglukhovsky commentedon May 7, 2013
@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/
tj commentedon May 7, 2013
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.
mglukhovsky commentedon May 7, 2013
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!
tj commentedon May 7, 2013
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
defunctzombie commentedon May 7, 2013
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!!
jdoliner commentedon May 7, 2013
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?
neumino commentedon May 7, 2013
Or we can just say that we have a node driver.
kenperkins commentedon May 7, 2013
I take issue with this comment:
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.
ricardobeat commentedon May 8, 2013
@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 :)
coffeemug commentedon May 8, 2013
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:
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!
heapwolf commentedon May 8, 2013
i'd be excited to try this if it was just written with javascript :)
17 remaining items
danielmewes commentedon Jan 19, 2015
@joaojeronimo regarding putting drivers in a separate repository, please see #1740
niieani commentedon Nov 18, 2015
👍 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.niieani commentedon Nov 24, 2016
Would the
rethinkdbteam be interested in a PR that converts the current CoffeeScript driver to TypeScript / ES201x?joaojeronimo commentedon Nov 25, 2016
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.
niieani commentedon Nov 25, 2016
@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.
joaojeronimo commentedon Nov 25, 2016
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.
niieani commentedon Nov 25, 2016
I'd like to leave this decision to the
rethinkdbteam -- 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 therethinkdbdriver 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/privatefields 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. 🐧
viridia commentedon Aug 6, 2017
https://trends.google.com/trends/explore?date=today%205-y&q=TypeScript,CoffeeScript,%2Fm%2F0h52xr1
joaojeronimo commentedon Aug 7, 2017
https://trends.google.com/trends/explore?date=today%205-y&q=TypeScript,CoffeeScript,%2Fm%2F0h52xr1,javascript
ricardobeat commentedon Aug 23, 2017
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?
neumino commentedon Aug 27, 2017
This is a very old thread, please open a new one if you want to discuss rewriting the interface.
srh commentedon Dec 24, 2017
I might get rid of the coffeescript dep. If we're going to open a new one I'll... close this one.