rux
sdoc
rux | sdoc | |
---|---|---|
9 | 21 | |
383 | 821 | |
- | 0.1% | |
5.8 | 8.7 | |
6 months ago | 10 days ago | |
Ruby | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rux
-
RubyJS-Vite
Thanks!
Both! I needed something like JSX, and I found Rux [1] but I had some issues with it, and then I found syntax_tree-haml [2] which gave me an AST that I could transform into Ruby. This is what the transformation looks like: https://gist.github.com/aalin/c0e4b0360a1f84d0283149fe4b2ce6...
I have always liked Haml because it's compact and easy to read.
[1] https://github.com/camertron/rux
[2] https://github.com/ruby-syntax-tree/syntax_tree-haml
- Have you been using ViewComponent. What advantages do you see in it?
-
Gnarly Learnings from March 2023
rux
- Launch HN: Pynecone (YC W23) – Web Apps in Pure Python
- Rux: A JSX-inspired way to render view components in Ruby
-
Don't make me think, or why I switched to Rails from JavaScript SPAs
Check out Rux which is «A jsx-inspired way to render view components in Ruby» [to make HTML on the server]. https://github.com/camertron/rux
sdoc
- Who has the best documentation you’ve seen or like in 2023
-
How to start?
Once you feel comfortable with both Ruby and Rails, try building a few simple apps on your own by reading the Rails Guides and browsing the Rails API whenever you're stuck.
-
Examples on https://api.rubyonrails.org
Hi. I'm a self-taught Ruby on Rails programmer. I have a question about the documentation at https://api.rubyonrails.org. On many of the pages, you'll see methods and their details. Below that, you'll often see examples using different options. This is where I have a question. An example might look like this:
-
Thoughts on a `.=` operator like `+=`?
If a method isn't documented in https://api.rubyonrails.org/ it shouldn't be used as we reserve the right to remove or change them at any point.
-
Ask HN: Easiest and cheapest full-stack frameworks that you love?
Rails still holds the top spot in getting things out the door in the shortest amount of time. So many example projects and tons of amazing libraries that are available. They absolutely have the best developer docs in the industry as far as I'm concerned.
https://guides.rubyonrails.org/
https://api.rubyonrails.org/
Phoenix/Liveview is a close second. I would personally use Phoenix/Liveview at this point because since I know that stack pretty well, but it is definitely not as easy as Rails to learn. However, once past the learning phase I think there's distinct advantages especially with Liveview.
Fly.io has a free hosting tier currently. You can also get some free servers through Oracle Cloud.
-
Any advice for a beginner?
https://api.rubyonrails.org is your best friend. Check the docs before googling. Instant access to the source of functions. ApiDock is shit but continuously gets to the top of google search results.
- Good tutorial that dumbs things way down?
-
Books Recommendation for Beginners
For something more in-depth, besides the Rails Guides that have been mentioned already, you could also use the Rails API docs as a reference.
-
Why does VSCode have no intellisense for Ruby on Rails (or am I missing something?)
Yeah visit guides.rubyonrails.org if you want to see how to do a particular thing like validations and stuff and use this website https://api.rubyonrails.org/ for seeing method definitions their options etc.. These two websites pretty much conver everything. I specially use the second on pretty frequently. Also I think sublime text is better for ruby on rails than vs code but thats personal preference. The ruby doc website is pretty good to for documentation on rubies standard classes. Like if you are looking for some method to do something for a string you can just search string ruby and this comes up first, it contains all public methods for these classes and is pretty useful.
-
Is learning ruby on rails in 2022 worth it?
If you mean the Rails API Documentation, I mainly use it when I use a method I'm not familiar with (eg trying to adapt a StackOverflow suggestion).
What are some alternatives?
openapi-typescript-codegen - NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
Knock - Seamless JWT authentication for Rails API
SailsJS - Realtime MVC Framework for Node.js
graphql - Ruby implementation of GraphQL
Thor - Thor is a toolkit for building powerful command-line interfaces.
super-bombinhas - A 2D platformer written in Ruby.
Capybara - Acceptance test framework for web applications
solargraph - A Ruby language server.
phlex - A framework for building object-oriented views in Ruby.
ruby - Exercism exercises in Ruby.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
meteor-mysql - Reactive MySQL for Meteor