5 ms·
Why do you think an all-in-one framework is an advantage? As soon as you want to switch something out you end up fighting the framework and the tutorials. Bette
by lmm 8y ago
Why do you think an all-in-one framework is an advantage? As soon as you want to switch something out you end up fighting the framework and the tutorials. Better to start with dedicated libraries that each do one thing - it's inevitably where you're going to end up.
(Not that I'd consider an untyped ecosystem in the first place, especially one as fond of "magic" (e.g. monkeypatching) as rails. I have sympathy for just getting something working as quickly as possible, but there comes a point where you're storing up too much trouble even for the short term)
- M_Bakhtiari 8y agoWhat makes you think Ruby is untyped?
- ealhad 8y agoI think they meant “dynamically typed”.
- joelbluminator 8y agoI think the types argument is bullshit but it's just my opinion. Do python or ruby devs really feel they are less productive than java devs because they have no types? What I see happening is languages like java becoming more dynamic (var etc) and languages like ruby/python getting better IDEs (auto completion will continue to improve).
- IMTDb 8y agoI don't know about ruby and python but in JS there a significant number of projects that aim at adding a type system on top of the launguage
- joelbluminator 8y agoI don't think it's such a huge trend, if it was Python wouldn't be one of the top 3 most popular languages in the world. Yes, there is typescript for Angular. Outside of that how often is it used? Pure JS is still used tons.
- scns 8y agoIt may not be a "huge trend", but those investing into static typing reap the rewads. Facebook rewrote messenger in ReasoML, bugs reported by users went from hundreds a year to less then ten. Fearless refactoring is another plus, the compiler will find everything you need to change to make the program run correctly.
- philwelch 8y agoPython 3 has type annotations and there are static type analyzers for it.
- UK-Al05 8y agoVar is hardly more dynamic. Type inference is comes from statically type functional languages.
- meijer 8y ago> Do python or ruby devs really feel they are less productive than java devs because they have no types? Yes, I do.
- joelbluminator 8y agoOK, it's a fair opinion to have. But that's all it is, an opinion. Also - what makes you stick to python/ruby then?
- strken 8y agoI'm absolutely terrified of refactoring in big python, ruby, or javascript codebases, because there's less chance that I'll be able to find all the side effects of changing something. Tests help, but maintaining high-enough test coverage over possible code paths can be harder and less useful than working with a type system and writing fewer tests.
- cutler 8y agoJava's var is only for type inference so nothing to do with dynamic typing.
- lmm 8y ago> What I see happening is languages like java becoming more dynamic (var etc) and languages like ruby/python getting better IDEs (auto completion will continue to improve). I agree that that's what's going to happen in the short term, but var doesn't mean becoming dynamic; type inference doesn't compromise soundness at all. I think it's going to be much easier for sound type systems to get good-enough inference (indeed Hindley–Milner already offers "perfect" inference: you don't need to write any explicit types if you don't want to) than for dynamic languages to retrofit soundness. And while one can live with a few unsound constructs as long as it's locally clear when unsoundness is happening, as soon as you have pervasive soundness issues with action-at-a-distance your type system becomes almost useless.
- wastedhours 8y ago> it's inevitably where you're going to end up If the project's successful. The chance that most of what we're building with Rails hits the required escape velocity to require something other than Rails is a "Nice Problem". For the vast majority of things people are building for the web, "CRUD+Auth+Billing" is all that's needed, maybe with a few API hooks into something more novel running on different infra. If you then need it, then you can just build out a few more services with a few more API hooks, and then transition to a non-Rails stack as required. It's great if you have unlimited resources to spend the time setting up the perfect tech base for a project for if it does eventually require scaling above what, Basecamp for example, can handle - but that seems like wasted resources for a great deal of orgs that don't have that level of backing. Of course, if you truly need something novel, then it's a moot point, if you can't achieve what you need to with a stack, then just don't use it.
- lmm 8y ago> If the project's successful. The chance that most of what we're building with Rails hits the required escape velocity to require something other than Rails is a "Nice Problem". > For the vast majority of things people are building for the web, "CRUD+Auth+Billing" is all that's needed, maybe with a few API hooks into something more novel running on different infra. > If you then need it, then you can just build out a few more services with a few more API hooks, and then transition to a non-Rails stack as required. True as far as it goes. But if we're just talking about a prototype for validating product/market fit, with the intent to transition to a more maintainable stack as and when that becomes necessary, what's the problem with "list of 30 random npm packages" as a starting point?
- bpicolo 8y ago> Why do you think an all-in-one framework is an advantage? Because it has allowed the community to develop a whole lot of well-integrated, batteries-included libraries that span the from the model layer to the frontend.
- philwelch 8y agoI hate to break it to you, but Rails doesn’t span the frontend. Hell, the frontend isn’t even written in the same language.
- bpicolo 8y agoOf course it does. Not in SPA-javascript, but there's a ton of support for erb views: https://guides.rubyonrails.org/action_view_overview.html https://guides.rubyonrails.org/action_view_overview.html
- philwelch 8y agoI’m aware of this; I did Rails development for like five years. Server-side HTML templating isn’t a complete “batteries included” frontend solution anymore. In fact, it’s usually the first part that gets thrown away.