52 Followers
154 Following
74 Posts
Web developer. Software engineer. Loves programming in Ruby, JavaScript, and on Rails. Believes in the Web and FOSS. Occasional blogger and triathlete. Recovering former middle school teacher. Full-time Dad.
websitehttps://rossta.net
twitterrossta
githubrossta
To give you an idea of how quick I am to adopt new tech tools, I have started watching The Sopranos

I’m working on a new article to summarize what I think you need to know before choosing SQLite to back your Rails app.

Joy of Rails runs on SQLite. I’m happy with my choice but that doesn’t mean it’s right for everyone.

Are you considering SQLite? What do you want to know?

I feel like it’s only a matter of time before one of you all makes a pghero for sqlite
ActiveRecord::Relation#with—apparently yet-to-be-documented (as far as I know)—is for representing Common Table Expressions. Good for: "I want to reference a subquery by name elsewhere in my query for selecting/ordering/joining etc."
ActiveRecord::Relation#excluding can be used in place of `where.not(id: id)`. Good for: "I have a reference to this thing record but I want to query the same table for other things."

I’m alway learning new things about Rails.

Just today I discovered ActiveRecord’s "excluding" and "with"—I already have a use for both in the Joy of Rails related pages query!

@kjg No angst here and none intended. Internet communication is hard! Healthy debate is welcome. I’m usually wrong anyways, especially when it’s with my wife.

When it comes to prose, I find ordered content tends to have more value to the reader than the writer. Steps in a recipe or "how to install this code from source" are good examples. Maybe a counter example is Dave Letterman’s Top Ten but I find that use case less common in my experience.

@kjg Fair, but I don’t use Markdown because it’s easier to read but because it’s easier to edit and maintain that raw HTML.

Maintaining the correct order of numbers is objectively harder on the editor.

As for readability, does it matter the 6th item has a 6 next to it? Debatable. I can’t think of a time where I’ve cared about it. But I accept it matters to some.

I’m willing to bet there are plenty of markdown users who don’t know about "1 dot" and would be pleasantly surprised to hear.

I don’t know who needs to hear this but

1. Next time
1. You write
1. An ordered list
1. In markdown
1. Just use 1.

If you’re looking for even more information about Web Push, check out the Pushpad blog. Not only does Pushpad share a lot of related content, but they also own maintain the web-push Ruby gem.

https://pushpad.xyz/blog

Articles about web push notifications - Pushpad