5 ms·
The author writes “I've also since learned that the way Japanese developers write Ruby is very different from the Ruby you'll typically see in Rails, or many ot
by schube 3y ago
The author writes “I've also since learned that the way Japanese developers write Ruby is very different from the Ruby you'll typically see in Rails, or many other popular Ruby gems.”
What would be some examples of “Japanese-style Ruby”? I can find some articles comparing Ruby to Japanese but I’d be interested in full code repositories that would fit this description to go and take a look. I can’t think of good search terms for that.
- wgj 3y agoThis is what they're referencing with that comment. I don't know that there's a "Japanese" style of Ruby, as much as there is a style that looks and reads more like systems code. https://github.com/ruby/ruby/tree/master/lib https://github.com/ruby/ruby/tree/master/lib
- zbentley 3y agoI'm not sure what "systems code" means; could you elaborate?
- wgj 3y agoThis is a pretty good description. "The primary distinguishing characteristic of systems programming when compared to application programming is that application programming aims to produce software which provides services to the user directly (e.g. word processor), whereas systems programming aims to produce software and software platforms which provide services to other software..." https://en.wikipedia.org/wiki/Systems_programming https://en.wikipedia.org/wiki/Systems_programming
- zbentley 3y agoReasonable, but I'm still not sure what makes code "systems code" or not, by that definition. Is it code that doesn't have a UI/display component mostly, as an observation that lots of Japanese Ruby programmers write code that's distant from the UI layer? Or something else?
- sethrin 3y agoApparently there's a lot of embedded Ruby in Japan https://engineering.appfolio.com/appfolio-engineering/2017/5/24/how-is-ruby-different-in-japan https://engineering.appfolio.com/appfolio-engineering/2017/5...
- kubectl_h 3y agoI think what the author is interpreting as Japanese style is often just code that was written 10-20+ years ago when conventional ruby just looked a bit different than it does now. Enumerable was less featureful, the use of `and` and `or` was more prevalent. More people wrote in "Seattle style" where they omit parentheses, etc. Contemporary ruby is less adventuresome and more homogenous in it's style, which I consider a good thing.