4 ms·
What drew you to Crystal? If you'll forgive the snark, you've moved from one obscure language, to an even more obscure language that even fewer developers know
by MaxBarraclough 8y ago
What drew you to Crystal?
If you'll forgive the snark, you've moved from one obscure language, to an even more obscure language that even fewer developers know.
What is it about Crystal that outweighs the very boring practical downsides of production use of obscure and immature languages?
- nlh 8y agoI think many tens-of-thousands of developers would not agree that Ruby is obscure.
- rhencke 8y agoHow is Ruby an obscure language...? Their developers are already proficient in Ruby. Crystal is a very, very close cousin of Ruby, syntactically and structurally. This isn't like jumping from Java to Haskell.
- MaxBarraclough 8y agoI didn't know it was that similar. Neat idea for a language. The 'Boo' language does the same for Python.
- AsyncAwait 8y agoI'd say Nim is for Python what Crystal is for Ruby.
- MaxBarraclough 8y agoOn closer inspection I agree - hadn't realised Boo uses the Common Language Infrastructure.
- RX14 8y agoProbably because they loved the language. Humans are humans, and not everything is made with a rational financial decision. If you use the language, and like ruby and static typing, you'll find that there's a lot to love.
- MaxBarraclough 8y agoI see your point, but I sympathise with it less and less as time goes on. Programming languages are just tools. Software development should strive to be a proper, rational, engineering discipline. Humans aren't robots, but one's choice of development tools is steered by real forces, both technical and business. I don't see that whim, unconstrained by such forces, has any place in the decision. Same goes for curiosity. If it were my decision to choose a language to use in production, I'd want to go with a safe boring choice like Python/Java. Mature and stable on lots of platforms, easy to hire for, plenty of libraries and tooling. Taking a risk is sometimes the right thing to do, but I don't see choice of programming language as being one of those times. It's not that I don't like neat languages like Crystal - I really do - and I'm certainly not trying to put them down. I just wouldn't want to try to argue to management that using it is in the company's best interest.
- RX14 8y agoIt's always a tradeoff between having fun and accepted practice, and I'm glad for the brave souls who do use Crystal in production. After all, every mature language was once someone's toy, and you can never get from one to the other without many successive firsts. I'm not here to recommend people use it in production, but I can understand the mindset of people who do.
- spraak 8y ago> Software development should strive to be a proper, rational, engineering discipline. Well, to use an analogy from civil engineering, I don't think choosing a programming language is always as critical as which type of concrete you choose and how it's reinforced. While it's true you wouldn't choose just any language, there is more room for preference here. Especially because you can switch languages for a project, but practically can't switch the material used in the foundation of a building. > I just wouldn't want to try to argue to management that using it is in the company's best interest. In some companies you don't need to argue with management about that decision. Also, a language being less popular or obscure doesn't mean you can't evaluate it's stability and feel comfortable enough with where it's at to use it. I'm glad people do because otherwise we wouldn't even see any language as popular as it is.
- deleted 8y ago[deleted]
- sam0x17 8y agoIn silicon valley and among most of the startup community, Ruby still dominates the landscape, even when compared with Node.js, Python, etc. There's plenty of talk of companies re-writing their infrastructure in node, but why would you do that when you can have Rails and/or Crystal? Furthermore, if you ever need something from NPM, you can just throw it in a Google Cloud Function or in Lambda. https://medium.com/@yoelblum_45935/demand-for-ruby-on-rails-is-still-huge-ea4434926c57 https://medium.com/@yoelblum_45935/demand-for-ruby-on-rails-...
- nicoburns 8y agoIt's interesting that everyone's still using rails in silicon valley. Here in the UK, Laravel (PHP) and Django (python) are both more popular than Rails for new projects. But I hear that PHP isn't popular at all in the US?
- sam0x17 8y agoPHP in the U.S., especially in the startup world, is seen as "oh, you develop in third world countries". That's the perception these days unfortunately. That said, I was an avid PHP developer in the U.S. about 10-15 years ago and I always liked the language. There's just no one learning PHP anymore since all the kids just learn js, and no one trying out "hipster" languages like ruby/crystal/go/python/elixr/d/nim/rust/etc is going to try crusty old PHP. I will say though that PHP, without any frameworks, is probably my favorite thing to develop a simple standalone site specifically because it lets you break all conventions and just output some damn content possibly with some simple logic involved and without using classes/mvc/etc.
- coldtea 8y ago>What is it about Crystal that outweighs the very boring practical downsides of production use of obscure and immature languages? Tons of startups, and tons of billion dollar companies, run on Ruby / Rails. How is it "obscure"? Crystal sure. Then again, PG who created Hacker News used Common Lisp, which at the time had about the same developer pool as Crystal give or take (well, not really, but close enough, compared with industry favorite languages).