Lurker News
What technologies have you invested time in learning that you are going to keep using/experimenting/learning about in the next year?

I'm a professional Android engineer, and as for me: I learned Kotlin and use it at work every day, and so far I like it a lot. I also learned a little bit of iOS development with Swift. I also experimented with Flutter developing non-trivial "Hello world" apps, and I feel that it reduces a lot of friction that a lot of native mobile developers encounter.
What's your favorite tech in 2018?

Comments (601) 304 threads

Show all comments

Showing thread 28 of 304

sam0x172 replies#
2018 was the year of Crystal lang for me. I have now all but replaced Ruby in my workflow with Crystal. I also learned Rust, but abandoned this effort as I found it took me 6x longer to get anything done, which is a shame because I love everything Rust stands for.
kendallpark1 reply#
What types of things have you replaced with Crystal? What I'd love to hear your thoughts on the language.
sam0x172 replies#
Gladly. I authored the gcf.cr tool (https://github.com/sam0x17/gcf.cr) to replace a number of lambda functions with crystal-based cloud functions for two startups I write code for. I also replaced our rather bloated rails app with a lean SPA (in vanilla js plus jquery, because I can't stand react) backed by a crystal-based API server. I also do a lot of image processing in crystal (I need to make some of it open source but haven't got around to it), and Google Cloud Functions has been fantastic for that.

As far as the language itself goes, I have tried Rust, Nim, Go, and D, and I find crystal vastly preferable to all of them, probably because I have a ruby and C/C++ background. I just wish windows support and parallelism would get finished already as I have some cross-platform desktop app aspirations that I would love to fulfill in crystal rather than something horrible and ugly like Electron/node.
I am also working on a crystal-like language (with a crystal-based LALR(1) compiler) called Nojs (or just No) that compiles to javascript and has restrictions that make static analysis easy enough that you can include exactly the code needed and nothing more (e.g. don't include unreachable code) for whatever web page you are on, instead of importing entire libraries everywhere. This is really great because the dynamic nature of js normally makes this impossible as it is impossible to tell whether you are about to eval something into existence, etc, or call a method based directly off the value of a string... I am also using crystal-style require statements as I am not a fan of Node.js's module setup -- I'd rather have a global namespace to pollute and monkey-patch when I want to, with the option of using modules like in crystal/ruby, and the ability to require anywhere and have it literally import the required code at that point in the file. I don't have it on a public github yet but stay tuned.

kendallpark1 reply#
Great to see Crystal in production! I'm a Rubyist and rooting for Crystal's success.

Do you use any frameworks with Crystal or has it mostly been vanilla stuff? How would you gauge the maturity of the dev environment?

Continue this thread — 1 reply

JoshuaScript1 reply#
I'm curious if there's anything in particular you prefer in Crystal over Nim. I'm considering both right now.

Continue this thread — 1 reply

pzixel#
Yep, there is a great picture of how it looks like: https://imgur.com/sj92dyW

I faced it myself. It took me a year to being able to write a simple snippet (e.g. reverse UTF8 string) without getting compile-time errors. Now I'm a bit less productive then in C# with writing the code, but I'm much more confident about it.