News for hackers. Stuff that matters.
Re:Asqi: A codebase explorer designed to help navigate and u... by Nuzzerino on Friday May 31, 2024 @06:11AM (#40533207)
Ruby with sorbet would be cool, and C#
[dead]
Re:Asqi: A codebase explorer designed to help navigate and u... by Nuzzerino on Sunday June 02, 2024 @07:31AM (#40553233)
> I think the idea is that Asqi should treat `sig {}` sort of like a comment: prefix metadata attached to `def main`, rather than as an unrelated imperative call (whereas `attr_reader` would not have this behavior). Do you know whether Sorbet continues to work if you alias `sig` and any of its other definitions? For example, can I do this?

No, it doesn't work if you alias

[dead]
Re:Asqi: A codebase explorer designed to help navigate and u... by Nuzzerino on Sunday June 02, 2024 @05:12PM (#40557236)
That is very appreciated! Sorbet is shamefully underrated. While there are some weaknesses in the tool (which are fixable), the criticisms it typically gets from the community are unwarranted/unfair IMO. For example, I've heard that it makes the code too verbose. But in my experience, inserting T.cast or T.unsafe is more of a shortcut and often a code smell, and lately since becoming more fluent with it, I'm rarely using casts anymore (though its unavoidable sometimes if you want to avoid T.untyped usages).

I think it has a solid foundation and puts Ruby at the top of my list of good languages if coupled together. It is very performant compared to other typed analysis tools in my opinion.

Please join the Slack community and ask questions if you have any. I'm not part of the Sorbet project or the companies that sponsor it, just an avid enthusiast. https://sorbet.org/en/community