4 ms·
Metaprogramming is an important part of ruby, so method_missing stays.
by nurettin 6y ago
Metaprogramming is an important part of ruby, so method_missing stays.
- stevebmark 6y agoNo, metaprogramming is a stain on software engineering that all ecosystems are moving away from. Except Ruby.
- cknoxrun 6y agoThis comment sounds so joyless. The programming language ecosystem allows for all sorts of approaches, some many folks love passionately, and some you may not like. However, your comment seems to suggest a whole swatch of software engineers are simply wrong/ignorant because they enjoy one of these paradigms that you don't. Burned or not in the past, I can't help seeing your comment as a form of anti-intellectualism.
- stevebmark 6y agoPlenty of people also probably loved GOTO
- djur 6y agoWhat evidence do you have of "ecosystems" moving away from metaprogramming? Last I checked, it was just as popular in C++ as it's ever been, and a number of high-profile new languages (Rust, Elixir, Nim) have made it a major selling point.
- cutler 6y agoDon't forget Clojure. Lisp wouldn't be lisp without meta programming/macros. Ruby has strong lisp roots and Ruby meta programming is what makes Rails so magical. Yes, we love magic in Ruby.
- smabie 6y agoNot really, almost all new languages support macros (Julia, Nim, etc).
- nurettin 6y agoThere is no other way to avoid code repetition, it gets you closer to declarative syntax and pretty much every language offers it. Ruby does a little bit more.
- jimbokun 6y agoI take it you have never seen the many ways annotations are abused in Java frameworks like Spring?
- claudiug 6y agobased on what? if this is a feel, the you are a liar. go rust yourself
- dang 6y agoPlease don't do programming flamewar on HN. It leads to much worse threads. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html