4 ms·
TypeScript. Rails is faster for building an MVP. But it's significantly worse than a project built with a typed language when it comes to extending and maintai
by EduardoBautista 4y ago
TypeScript.
Rails is faster for building an MVP. But it's significantly worse than a project built with a typed language when it comes to extending and maintaining.
I thought I had misconfigured Sentry (for error logging) because the type of errors that plague Rails, or any language that is not typed, just don't happen with a typed language (unknown method called on NilClass).
We can decide to make a column in the DB to no longer allow NULL values, and we are immediately notified by the TypeScript compiler about every line that needs to be updated.
- ch4s3 4y ago> Rails is faster for building an MVP. But it's significantly worse than a project built with a typed language when it comes to extending and maintaining. I'm not sure that the academic work on software engineering really bares this out. Th Static vs. Dynamic debate is far from settled and increasingly looks to me like a matter of preference.
- deleted 4y ago[deleted]
- princevegeta89 4y agoExactly. more than 5 years ago or so I used a lot of Rails (and have worked with Java/C++ before), but after switching to a typed language like Go on large projects I completely removed Rails from my future projects. The Ruby/Rails magic feels like its not worth it for long-term or even short-term maintenance.
- meekaaku 4y ago>make a column in the DB to no longer allow NULL values, and we are immediately notified by the TypeScript Can you elaborate on this? Is this using something like knex/objection or something else? Is there something that will do this if one is using mostly raw sql with knex?
- EduardoBautista 4y agoPrisma does the heavy lifting on our project: https://www.prisma.io https://www.prisma.io I don't have experience with Knex so I, unfortunately, don't have an answer to your question.
- Existenceblinks 4y agoI love type languages to the point Typscript is unacceptable. But Elixir/Phoenix has so many nice things to to point that an unsound static type is far inferior.