Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
saturnflyer
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
Polyfill-data gem adds the Ruby 3.2 Data class to lower Ruby versions
(github.com)
2 points
by
saturnflyer
4y ago
|
1 comments
2.
▲
by
saturnflyer
4y ago
I'm on a project that isn't yet on ruby 3.2 and wanted to use the new Data class. I implemented this to allow me to move to it easily. It does still have 1 failing test about redefining the initialize method with a block, but it w
3.
▲
Reading Ruby Metaprogramming Inside Devise
(saturnflyer.com)
2 points
by
saturnflyer
7y ago
|
0 comments
4.
▲
Fix it now
(saturnflyer.com)
1 points
by
saturnflyer
9y ago
|
0 comments
5.
▲
7 ways to evaluate Ruby gems, and 1 crazy idea
(saturnflyer.com)
1 points
by
saturnflyer
9y ago
|
0 comments
6.
▲
Why write code when more dependencies will do?
(saturnflyer.com)
2 points
by
saturnflyer
9y ago
|
0 comments
7.
▲
Building tools and building teams
(saturnflyer.com)
1 points
by
saturnflyer
9y ago
|
0 comments
8.
▲
Building a Ruby tool that's easy for your team to use
(saturnflyer.com)
2 points
by
saturnflyer
10y ago
|
0 comments
9.
▲
by
saturnflyer
11y ago
Interesting. What kind of stuff does this course have?
10.
▲
Ruby: the difference between instance_eval and instance_exec
(saturnflyer.com)
3 points
by
saturnflyer
11y ago
|
0 comments
11.
▲
by
saturnflyer
12y ago
Yes. Too often this is done even with complex procedures inside methods. A good DSL should be syntactic sugar for making things easy or at least provide some syntactic vinegar for doing non-recommended things (while still allowing them).
12.
▲
by
saturnflyer
12y ago
Ah. I see. That Ruby doesn't afford this can be somewhat annoying. A counter example is using "alias". It can accept bare words, symbols, or strings. If you really wanted to get around this you could use method_missing on the
13.
▲
by
saturnflyer
12y ago
This surprises me. Can you offer an example of those types of problems in some Ruby code?
14.
▲
by
saturnflyer
12y ago
Not yet. But you can signup for a 5-email crash course. It's being updated almost every day now as I add more content.
15.
▲
by
saturnflyer
12y ago
I'm the author. In fact, the first bit of advice I have in the book is: Don't. DSLs often involve metaprogramming, but they don't have to. I'm writing it to record the code practices that I have found useful in getting t
16.
▲
Ruby DSL Handbook
(clean-ruby.com)
84 points
by
saturnflyer
12y ago
|
29 comments
17.
▲
Ruby Forwardable deep dive
(saturnflyer.com)
1 points
by
saturnflyer
12y ago
|
0 comments
18.
▲
Eastward Ho a Clear Path Through Ruby with OO
(confreaks.com)
1 points
by
saturnflyer
12y ago
|
0 comments
19.
▲
Forwarding Messages with Tell, Don't Ask
(saturnflyer.com)
2 points
by
saturnflyer
12y ago
|
0 comments
20.
▲
Delegation Is Everything And Inheritance Does Not Exist
(saturnflyer.com)
2 points
by
saturnflyer
13y ago
|
0 comments
21.
▲
How abstractions encourage good thinking
(saturnflyer.com)
3 points
by
saturnflyer
13y ago
|
0 comments
22.
▲
Easy Metaprogramming For Making Your Code Habitable
(saturnflyer.com)
34 points
by
saturnflyer
13y ago
|
1 comments
23.
▲
What to code (in Ruby) when you know what you want
(saturnflyer.com)
4 points
by
saturnflyer
13y ago
|
0 comments
24.
▲
by
saturnflyer
13y ago
Thanks for some fantastic feedback. I haven't read the worrydream link yet, but will check it out.
25.
▲
by
saturnflyer
13y ago
thanks! I'd love to see what you do
26.
▲
How to make your code imply responsibilities
(saturnflyer.com)
38 points
by
saturnflyer
13y ago
|
9 comments
27.
▲
How to work with presenters and collections of objects in Ruby
(saturnflyer.com)
1 points
by
saturnflyer
13y ago
|
0 comments
28.
▲
Finding conventions in Ruby code and handling display of dangerous data
(saturnflyer.com)
1 points
by
saturnflyer
13y ago
|
0 comments
29.
▲
The Easiest Way To Handle Displaying Bad Data in Ruby
(saturnflyer.com)
1 points
by
saturnflyer
13y ago
|
0 comments
30.
▲
Temporarily add behavior to Ruby objects with Casting
(github.com)
1 points
by
saturnflyer
13y ago
|
0 comments
More ›